File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { notify } from './src'
2+
3+ notify ( { message : 'test' } )
Original file line number Diff line number Diff line change 2424 "node" : " >=8.0.0"
2525 },
2626 "files" : [
27+ " /assets" ,
2728 " /lib"
2829 ],
2930 "homepage" : " https://github.com/heroku/heroku-cli-notifications" ,
Original file line number Diff line number Diff line change 11import * as NodeNotifier from 'node-notifier'
2+ import * as path from 'path'
23
34export interface Notification extends NodeNotifier . Notification {
45 force ?: boolean
56}
67
78export 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 )
9+ if ( ! notification . force && [ '0' , 'false' ] . includes ( process . env . HEROKU_NOTIFICATIONS ! ) ) return
10+ return NodeNotifier . notify ( {
11+ icon : path . join ( __dirname , '../assets/heroku.png' ) ,
12+ ...notification ,
13+ } as Notification , callback )
1014}
You can’t perform that action at this time.
0 commit comments