superwstest
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -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" | ||
} | ||
} |
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
53275
976
Updated@types/supertest@*