From e33d7952a3d7a7a9007c9e1aaabe1e075173177a Mon Sep 17 00:00:00 2001 From: Mike Jancar Date: Fri, 10 Jan 2025 15:56:51 +0000 Subject: [PATCH] chore: update display-notification to v3 --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d15401a..f9846fb 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,6 @@ const path = require('path'); const process = require('process'); const util = require('util'); const { Buffer } = require('buffer'); -const displayNotification = require('display-notification'); const getPort = require('get-port'); const nodemailer = require('nodemailer'); const open = require('open'); @@ -89,6 +88,7 @@ const previewEmail = async (message, options) => { // `xcrun simctl openurl booted ${url}` // if (isMacOS && !isCI && options.openSimulator) { + const { displayNotification } = await import('display-notification'); try { // const simulator = childProcess.spawn('open', ['-a', 'Simulator']); diff --git a/package.json b/package.json index 78188d9..11b380d 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ ], "dependencies": { "ci-info": "^3.8.0", - "display-notification": "2.0.0", + "display-notification": "^3.0.0", "fixpack": "^4.0.0", "get-port": "5.1.1", "mailparser": "^3.7.1",