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

superwstest

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superwstest - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

14

build/superwstest.js

@@ -8,8 +8,2 @@ 'use strict';

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var util__default = /*#__PURE__*/_interopDefaultLegacy(util);
var WebSocket__default = /*#__PURE__*/_interopDefaultLegacy(WebSocket);
var https__default = /*#__PURE__*/_interopDefaultLegacy(https);
function remove(list, item) {

@@ -175,3 +169,3 @@ const p = list.indexOf(item);

}
} else if (!util__default["default"].isDeepStrictEqual(received, check)) {
} else if (!util.isDeepStrictEqual(received, check)) {
throw new Error(`Expected message ${stringify(check)}, got ${stringify(received)}`);

@@ -245,3 +239,3 @@ }

function isOpen(ws) {
return ws.readyState === WebSocket__default["default"].CONNECTING || ws.readyState === WebSocket__default["default"].OPEN;
return ws.readyState === WebSocket.CONNECTING || ws.readyState === WebSocket.OPEN;
}

@@ -277,3 +271,3 @@

const initPromise = (resolve, reject) => {
const ws = new WebSocket__default["default"](url, protocols, opts);
const ws = new WebSocket(url, protocols, opts);
config.clientSockets.add(ws);

@@ -447,3 +441,3 @@ const originalClose = ws.close.bind(ws);

}
return server instanceof https__default["default"].Server ? 'https' : 'http';
return server instanceof https.Server ? 'https' : 'http';
}

@@ -450,0 +444,0 @@

{
"name": "superwstest",
"version": "2.0.3",
"version": "2.0.4",
"description": "supertest with added WebSocket capabilities",

@@ -16,3 +16,3 @@ "files": [

"format": "prettier --write .",
"test": "lean-test test --parallel-suites && rollup --config rollup.config.js && test/run-package.sh && prettier --check ."
"test": "lean-test test --parallel-suites && rollup --config rollup.config.mjs && test/run-package.sh && prettier --check ."
},

@@ -39,3 +39,3 @@ "repository": {

"dependencies": {
"@types/supertest": "<7",
"@types/supertest": "*",
"@types/ws": "7.x || 8.x",

@@ -54,5 +54,5 @@ "ws": "7.x || 8.x"

"lean-test": "2.x",
"prettier": "2.6.2",
"rollup": "2.x"
"prettier": "3.3.2",
"rollup": "4.x"
}
}
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