add deps for js angular1.8

This commit is contained in:
Tykayn 2025-02-14 14:17:23 +01:00 committed by tykayn
parent 8e2da4f159
commit b373892ddc
3800 changed files with 125627 additions and 40 deletions

View 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);
});
};