Comparing version 5.11.2 to 5.11.3
{ | ||
"name": "nyks", | ||
"version": "5.11.2", | ||
"version": "5.11.3", | ||
"description": "nodejs exupery style", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -20,5 +20,17 @@ "use strict"; | ||
stream.once('data', resolve); | ||
stream.once('end', resolve); | ||
stream.on('error', reject); | ||
let onData = function (result) { cleanup(); resolve(result); }; | ||
let onEnd = function () { cleanup(); resolve(null); }; | ||
let onError = function (err) { cleanup(); reject(err); }; | ||
stream.once('data', onData); | ||
stream.once('end', onEnd); | ||
stream.once('error', onError); | ||
let cleanup = function() { | ||
stream.removeListener('data', onData); | ||
stream.removeListener('error', onError); | ||
stream.removeListener('end', onEnd); | ||
}; | ||
return stream; | ||
@@ -25,0 +37,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66996
1748