You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+6
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# Changelog
2
2
3
+
### `v8.0.0`
4
+
5
+
Breaking changes:
6
+
7
+
- Expire time for notify-send is made to match macOS and Windows with default time of 10 seconds. The API is changed to take seconds as input and converting it to milliseconds before passing it on to notify-send. See [#341](https://github.com/mikaelbr/node-notifier/pull/341).
Copy file name to clipboardexpand all lines: README.md
+9-7
Original file line number
Diff line number
Diff line change
@@ -70,16 +70,16 @@ notifier.notify(
70
70
sound:true, // Only Notification Center or Windows Toasters
71
71
wait:true// Wait with callback, until user action is taken against notification, does not apply to Windows Toasters as they always wait or notify-send as it does not support the wait option
// Triggers if `wait: true` and notification closes
84
84
});
85
85
```
@@ -179,7 +179,7 @@ notifier.notify(
179
179
dropdownLabel:undefined, // String. Label to be used if multiple actions
180
180
reply:false// Boolean. If notification should take input. Value passed as third argument in callback and event emitter.
181
181
},
182
-
function(error, response, metadata) {
182
+
function(error, response, metadata) {
183
183
console.log(response, metadata);
184
184
}
185
185
);
@@ -278,7 +278,7 @@ notifier.notify(
278
278
remove:undefined, // Number. Refer to previously created notification to close.
279
279
install:undefined// String (path, application, app id). Creates a shortcut <path> in the start menu which point to the executable <application>, appID used for the notifications.
280
280
},
281
-
function(error, response) {
281
+
function(error, response) {
282
282
console.log(response);
283
283
}
284
284
);
@@ -333,7 +333,7 @@ notifier.notify(
333
333
wait:false, // Wait for User Action against Notification
334
334
type:'info'// The notification type : info | warn | error
335
335
},
336
-
function(error, response) {
336
+
function(error, response) {
337
337
console.log(response);
338
338
}
339
339
);
@@ -355,10 +355,12 @@ notifier.notify({
355
355
message:'Hello World',
356
356
icon:__dirname+'/coulson.jpg',
357
357
358
+
wait:false, // Defaults no exipre time set. If true expire time of 5 seconds is used
359
+
timeout:10, // Alias for expire-time, time etc. Time before notify-send expires. Defaults to 10 seconds.
0 commit comments