New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

websocket-as-promised

Package Overview
Dependencies
Maintainers
0
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

websocket-as-promised - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

5

package.json
{
"name": "websocket-as-promised",
"version": "2.1.0",
"version": "3.0.0",
"description": "A WebSocket client library providing Promise-based API for connecting, disconnecting and messaging with server",

@@ -14,3 +14,3 @@ "author": {

"engines": {
"node": ">=6"
"node": ">=10"
},

@@ -43,3 +43,2 @@ "main": "src/index.js",

"promise-controller": "^1.0.0",
"promise.prototype.finally": "^3.1.2",
"promised-map": "^1.0.0"

@@ -46,0 +45,0 @@ },

3

src/requests.js

@@ -7,3 +7,2 @@ /**

const PromiseController = require('promise-controller');
const promiseFinally = require('promise.prototype.finally');

@@ -51,3 +50,3 @@ module.exports = class Requests {

this._items.set(requestId, request);
return promiseFinally(request.call(fn), () => this._deleteRequest(requestId, request));
return request.call(fn).finally(() => this._deleteRequest(requestId, request));
}

@@ -54,0 +53,0 @@

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