We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc811f5 commit 93fd098Copy full SHA for 93fd098
1 file changed
src/index.ts
@@ -1,6 +1,10 @@
1
import * as NodeNotifier from 'node-notifier'
2
3
-export function notify(notification?: NodeNotifier.Notification, callback?: NodeNotifier.NotificationCallback) {
4
- if (['0', 'false'].includes(process.env.HEROKU_NOTIFICATIONS!)) return
+export interface Notification extends NodeNotifier.Notification {
+ force?: boolean
5
+}
6
+
7
+export function notify(notification: Notification = {}, callback?: NodeNotifier.NotificationCallback) {
8
+ if (!notification.force || ['0', 'false'].includes(process.env.HEROKU_NOTIFICATIONS!)) return
9
return NodeNotifier.notify(notification, callback)
10
}
0 commit comments