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.0.2 to 2.0.3

5

build/main/lib/MockWebSocket.js

@@ -69,5 +69,3 @@ "use strict";

read(_size) {
connection.once('message', (message) => {
duplex.push(message);
});
// Do nothing. We're already recording incoming messages.
},

@@ -79,2 +77,3 @@ write(chunk, _encoding, callback) {

});
this.on('message', (message) => duplex.push(message));
this.on('close', () => duplex.push(null));

@@ -81,0 +80,0 @@ this.on('error', (error) => duplex.destroy(error));

@@ -63,5 +63,3 @@ import { EventEmitter } from 'events';

read(_size) {
connection.once('message', (message) => {
duplex.push(message);
});
// Do nothing. We're already recording incoming messages.
},

@@ -73,2 +71,3 @@ write(chunk, _encoding, callback) {

});
this.on('message', (message) => duplex.push(message));
this.on('close', () => duplex.push(null));

@@ -75,0 +74,0 @@ this.on('error', (error) => duplex.destroy(error));

4

package.json
{
"name": "@relaycorp/ws-mock",
"version": "2.0.2",
"version": "2.0.3",
"author": {

@@ -44,3 +44,3 @@ "email": "no-reply@relaycorp.tech",

"npm-run-all": "^4.1.5",
"prettier": "^2.3.1",
"prettier": "^2.3.2",
"ts-node": "^10.0.0",

@@ -47,0 +47,0 @@ "tslint": "^5.20.1",

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