UNPKG

550 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const NodeNotifier = require("node-notifier");
4const path = require("path");
5function notify(notification = {}, callback) {
6 if (!notification.force && ['0', 'false'].includes(process.env.HEROKU_NOTIFICATIONS))
7 return;
8 return NodeNotifier.notify(Object.assign({ title: 'Heroku CLI', icon: path.join(__dirname, '../assets/heroku.png'), appName: 'Microsoft.Windows.ShellExperienceHost_cw5n1h2txyewy!App' }, notification), callback);
9}
10exports.notify = notify;