mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-06-20 01:44:42 +02:00
add deps for js angular1.8
This commit is contained in:
parent
8e2da4f159
commit
b373892ddc
3800 changed files with 125627 additions and 40 deletions
24
.yarn/unplugged/node-notifier-npm-9.0.1-8dc13c2efd/node_modules/node-notifier/lib/checkGrowl.js
generated
vendored
Normal file
24
.yarn/unplugged/node-notifier-npm-9.0.1-8dc13c2efd/node_modules/node-notifier/lib/checkGrowl.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
var net = require('net');
|
||||
|
||||
var hasGrowl = false;
|
||||
module.exports = function(growlConfig, cb) {
|
||||
if (typeof cb === 'undefined') {
|
||||
cb = growlConfig;
|
||||
growlConfig = {};
|
||||
}
|
||||
if (hasGrowl) return cb(null, hasGrowl);
|
||||
var port = growlConfig.port || 23053;
|
||||
var host = growlConfig.host || 'localhost';
|
||||
var socket = net.connect(port, host);
|
||||
socket.setTimeout(100);
|
||||
|
||||
socket.once('connect', function() {
|
||||
socket.end();
|
||||
cb(null, true);
|
||||
});
|
||||
|
||||
socket.once('error', function() {
|
||||
socket.end();
|
||||
cb(null, false);
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue