async-listener
Advanced tools
+29
-0
@@ -33,2 +33,31 @@ 'use strict'; | ||
| var net = require('net'); | ||
| // a polyfill in our polyfill etc so forth -- taken from node master on 2013/10/30 | ||
| if (!net._normalizeConnectArgs) { | ||
| net._normalizeConnectArgs = function (args) { | ||
| var options = {}; | ||
| function toNumber(x) { return (x = Number(x)) >= 0 ? x : false; } | ||
| if (typeof args[0] === 'object' && args[0] !== null) { | ||
| // connect(options, [cb]) | ||
| options = args[0]; | ||
| } | ||
| else if (typeof args[0] === 'string' && toNumber(args[0]) === false) { | ||
| // connect(path, [cb]); | ||
| options.path = args[0]; | ||
| } | ||
| else { | ||
| // connect(port, [host], [cb]) | ||
| options.port = args[0]; | ||
| if (typeof args[1] === 'string') { | ||
| options.host = args[1]; | ||
| } | ||
| } | ||
| var cb = args[args.length - 1]; | ||
| return typeof cb === 'function' ? [options, cb] : [options]; | ||
| }; | ||
| } | ||
| wrap(net.Server.prototype, '_listen2', function (original) { | ||
@@ -35,0 +64,0 @@ return function () { |
+1
-1
| { | ||
| "name": "async-listener", | ||
| "version": "0.4.2", | ||
| "version": "0.4.3", | ||
| "description": "Polyfill exporting trevnorris's 0.11+ asyncListener API.", | ||
@@ -5,0 +5,0 @@ "author": "Forrest L Norvell <ogd@aoaioxxysz.net>", |
+2
-0
@@ -0,1 +1,3 @@ | ||
| [](https://nodei.co/npm/async-listener/) | ||
| # process.addAsyncListener polyfill | ||
@@ -2,0 +4,0 @@ |
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
72384
1.28%2104
1.15%58
3.57%