Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

usockets

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

usockets - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

6

browser.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc