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 2.5.2 to 3.0.0

4

build/main/lib/MockServer.d.ts

@@ -1,8 +0,8 @@

import WebSocket from 'ws';
import { MockPeer } from './MockPeer';
import { MockServerAction } from './MockServerAction';
import { MockWebSocket } from './MockWebSocket';
export declare class MockServer extends MockPeer {
get mockClientWebSocket(): WebSocket;
get client(): MockWebSocket;
runActions(...actions: readonly MockServerAction[]): Promise<void>;
acceptConnection(): Promise<void>;
}

@@ -6,3 +6,3 @@ "use strict";

class MockServer extends MockPeer_1.MockPeer {
get mockClientWebSocket() {
get client() {
return this.peerWebSocket;

@@ -9,0 +9,0 @@ }

@@ -1,8 +0,8 @@

import WebSocket from 'ws';
import { MockPeer } from './MockPeer';
import { MockServerAction } from './MockServerAction';
import { MockWebSocket } from './MockWebSocket';
export declare class MockServer extends MockPeer {
get mockClientWebSocket(): WebSocket;
get client(): MockWebSocket;
runActions(...actions: readonly MockServerAction[]): Promise<void>;
acceptConnection(): Promise<void>;
}
import { MockPeer } from './MockPeer';
export class MockServer extends MockPeer {
get mockClientWebSocket() {
get client() {
return this.peerWebSocket;

@@ -5,0 +5,0 @@ }

{
"name": "@relaycorp/ws-mock",
"version": "2.5.2",
"version": "3.0.0",
"author": {

@@ -5,0 +5,0 @@ "email": "no-reply@relaycorp.tech",

@@ -38,3 +38,3 @@ # @relaycorp/ws-mock

__esModule: true,
default: jest.fn().mockImplementation(() => mockServer.mockClientWebSocket),
default: jest.fn().mockImplementation(() => mockServer.client),
}));

@@ -41,0 +41,0 @@

Sorry, the diff of this file is not supported yet

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