@relaycorp/ws-mock
Advanced tools
Comparing version 5.2.1 to 5.2.2
@@ -69,3 +69,3 @@ "use strict"; | ||
ping(data) { | ||
const finalData = data !== null && data !== void 0 ? data : Buffer.from(Math.random().toString()); | ||
const finalData = data ?? Buffer.from(Math.random().toString()); | ||
this.peerWebSocket.emit('ping', finalData); | ||
@@ -72,0 +72,0 @@ return finalData; |
@@ -17,3 +17,3 @@ "use strict"; | ||
await new Promise(setImmediate); | ||
await (serverImplementation === null || serverImplementation === void 0 ? void 0 : serverImplementation()); | ||
await serverImplementation?.(); | ||
// Allow more time for the client to process the latest actions from the server | ||
@@ -20,0 +20,0 @@ await new Promise(setImmediate); |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { EventEmitter } from 'events'; | ||
@@ -3,0 +5,0 @@ import { Duplex } from 'stream'; |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { EventEmitter } from 'events'; | ||
@@ -3,0 +5,0 @@ import { Duplex } from 'stream'; |
{ | ||
"name": "@relaycorp/ws-mock", | ||
"version": "5.2.1", | ||
"version": "5.2.2", | ||
"author": { | ||
@@ -42,11 +42,11 @@ "email": "no-reply@relaycorp.tech", | ||
"devDependencies": { | ||
"@relaycorp/shared-config": "^1.7.0", | ||
"@relaycorp/shared-config": "^1.8.0", | ||
"@types/ws": "^8.5.3", | ||
"del-cli": "^4.0.1", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.6.2", | ||
"prettier": "^2.7.1", | ||
"ts-node": "^10.8.1", | ||
"tslint": "^5.20.1", | ||
"typedoc": "^0.22.17", | ||
"typescript": "^4.5.5" | ||
"typescript": "^4.7.4" | ||
}, | ||
@@ -53,0 +53,0 @@ "prettier": "@relaycorp/shared-config/.prettierrc.json", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
992
60702