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

@relaycorp/ws-mock

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@relaycorp/ws-mock - npm Package Compare versions

Comparing version 1.4.5 to 1.4.6

5

build/main/lib/MockServerAction.d.ts

@@ -27,1 +27,6 @@ import { Data } from 'ws';

}
export declare class EmitClientErrorAction extends MockServerAction {
protected readonly error: Error;
constructor(error: Error);
run(mockServer: MockServer): Promise<void>;
}

12

build/main/lib/MockServerAction.js
"use strict";
// tslint:disable:max-classes-per-file
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReceiveMessageAction = exports.SendMessageAction = exports.CloseConnectionAction = exports.AcceptConnectionAction = exports.MockServerAction = void 0;
exports.EmitClientErrorAction = exports.ReceiveMessageAction = exports.SendMessageAction = exports.CloseConnectionAction = exports.AcceptConnectionAction = exports.MockServerAction = void 0;
class MockServerAction {

@@ -67,2 +67,12 @@ constructor() {

exports.ReceiveMessageAction = ReceiveMessageAction;
class EmitClientErrorAction extends MockServerAction {
constructor(error) {
super();
this.error = error;
}
async run(mockServer) {
await mockServer.abort(this.error);
}
}
exports.EmitClientErrorAction = EmitClientErrorAction;
function waitForSetImmediate() {

@@ -69,0 +79,0 @@ return new Promise((resolve) => setImmediate(resolve));

@@ -27,1 +27,6 @@ import { Data } from 'ws';

}
export declare class EmitClientErrorAction extends MockServerAction {
protected readonly error: Error;
constructor(error: Error);
run(mockServer: MockServer): Promise<void>;
}

@@ -59,2 +59,11 @@ // tslint:disable:max-classes-per-file

}
export class EmitClientErrorAction extends MockServerAction {
constructor(error) {
super();
this.error = error;
}
async run(mockServer) {
await mockServer.abort(this.error);
}
}
function waitForSetImmediate() {

@@ -61,0 +70,0 @@ return new Promise((resolve) => setImmediate(resolve));

2

package.json
{
"name": "@relaycorp/ws-mock",
"version": "1.4.5",
"version": "1.4.6",
"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

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