Comparing version 0.0.4 to 0.0.5
@@ -18,5 +18,5 @@ | ||
return new Promise(function(resolve, reject) { | ||
return this.emit(event, payload, function(...args) { | ||
if (args[0]) return reject(new Error(args[0])); | ||
return resolve.apply(null, args); | ||
return this.emit(event, payload, function() { | ||
if (arguments[0]) return reject(new Error(arguments[0])); | ||
return resolve.apply(null, arguments); | ||
}); | ||
@@ -23,0 +23,0 @@ }.bind(this)); |
@@ -18,5 +18,5 @@ | ||
return new Promise(function (resolve, reject) { | ||
return this.emit(event, payload, function (...args) { | ||
if (args[0]) return reject(new Error(args[0])); | ||
return resolve.apply(null, args); | ||
return this.emit(event, payload, function () { | ||
if (arguments[0]) return reject(new Error(arguments[0])); | ||
return resolve.apply(null, arguments); | ||
}); | ||
@@ -23,0 +23,0 @@ }.bind(this)); |
{ | ||
"name": "usockets", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Universal socket.io wrapper with promise and request/response support", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
10761