@relaycorp/ws-mock
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -37,2 +37,5 @@ "use strict"; | ||
close(code, reason) { | ||
if (this.ownCloseFrame) { | ||
throw new Error('Connection closure was already initiated'); | ||
} | ||
// tslint:disable-next-line:no-object-mutation | ||
@@ -39,0 +42,0 @@ this.ownCloseFrame = { code, reason }; |
@@ -34,2 +34,5 @@ import { EventEmitter } from 'events'; | ||
close(code, reason) { | ||
if (this.ownCloseFrame) { | ||
throw new Error('Connection closure was already initiated'); | ||
} | ||
// tslint:disable-next-line:no-object-mutation | ||
@@ -36,0 +39,0 @@ this.ownCloseFrame = { code, reason }; |
{ | ||
"name": "@relaycorp/ws-mock", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "email": "no-reply@relaycorp.tech", |
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
45919
724