@relaycorp/ws-mock
Advanced tools
Comparing version 4.2.0 to 5.0.0
@@ -0,4 +1,5 @@ | ||
/// <reference types="node" /> | ||
export interface CloseFrame { | ||
readonly code?: number; | ||
readonly reason?: string; | ||
readonly reason?: Buffer; | ||
} |
@@ -13,3 +13,3 @@ /// <reference types="node" /> | ||
protected get didICloseConnection(): boolean; | ||
close(code?: number, reason?: string): void; | ||
close(code?: number, reason?: Buffer): void; | ||
abort(error: Error): void; | ||
@@ -16,0 +16,0 @@ send(message: WSData): Promise<void>; |
@@ -106,3 +106,3 @@ "use strict"; | ||
} | ||
return Buffer.isBuffer(message) ? buffer_to_arraybuffer_1.default(message) : message; | ||
return Buffer.isBuffer(message) ? (0, buffer_to_arraybuffer_1.default)(message) : message; | ||
} | ||
@@ -109,0 +109,0 @@ requireConnectionStillOpen() { |
@@ -30,3 +30,3 @@ /// <reference types="node" /> | ||
pong(data?: WSData, mask?: boolean, cb?: (err?: Error) => void): void; | ||
close(code?: number, reason?: string): void; | ||
close(code?: number, reason?: Buffer): void; | ||
terminate(): void; | ||
@@ -33,0 +33,0 @@ get wasTerminated(): boolean; |
@@ -0,4 +1,5 @@ | ||
/// <reference types="node" /> | ||
export interface CloseFrame { | ||
readonly code?: number; | ||
readonly reason?: string; | ||
readonly reason?: Buffer; | ||
} |
@@ -13,3 +13,3 @@ /// <reference types="node" /> | ||
protected get didICloseConnection(): boolean; | ||
close(code?: number, reason?: string): void; | ||
close(code?: number, reason?: Buffer): void; | ||
abort(error: Error): void; | ||
@@ -16,0 +16,0 @@ send(message: WSData): Promise<void>; |
@@ -30,3 +30,3 @@ /// <reference types="node" /> | ||
pong(data?: WSData, mask?: boolean, cb?: (err?: Error) => void): void; | ||
close(code?: number, reason?: string): void; | ||
close(code?: number, reason?: Buffer): void; | ||
terminate(): void; | ||
@@ -33,0 +33,0 @@ get wasTerminated(): boolean; |
{ | ||
"name": "@relaycorp/ws-mock", | ||
"version": "4.2.0", | ||
"version": "5.0.0", | ||
"author": { | ||
@@ -25,2 +25,4 @@ "email": "no-reply@relaycorp.tech", | ||
"static-checks:prettier": "prettier \"src/**/*.ts\" --list-different", | ||
"test:ci:unit": "exit 0", | ||
"test:integration": "exit 0", | ||
"cov": "run-s build test:unit && opn coverage/lcov-report/index.html", | ||
@@ -41,11 +43,11 @@ "doc-api": "typedoc src/index.ts --out build/docs/api", | ||
"devDependencies": { | ||
"@relaycorp/shared-config": "^1.6.0", | ||
"@types/ws": "^7.4.7", | ||
"@relaycorp/shared-config": "^1.6.1", | ||
"@types/ws": "^8.5.3", | ||
"del-cli": "^4.0.1", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.3.2", | ||
"ts-node": "^10.2.0", | ||
"prettier": "^2.5.1", | ||
"ts-node": "^10.7.0", | ||
"tslint": "^5.20.1", | ||
"typedoc": "^0.21.5", | ||
"typescript": "^4.3.5" | ||
"typedoc": "^0.22.10", | ||
"typescript": "^4.5.5" | ||
}, | ||
@@ -52,0 +54,0 @@ "prettier": "@relaycorp/shared-config/.prettierrc.json", |
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
60224
980