New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mercuryworkshop/bare-mux

Package Overview
Dependencies
Maintainers
5
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mercuryworkshop/bare-mux - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

12

dist/index.js

@@ -101,3 +101,3 @@ import { v4 } from 'uuid';

//@ts-expect-error not installing node types for this one thing
self.BCC_VERSION = "1.0.8";
self.BCC_VERSION = "1.0.9";
console.debug("BARE_MUX_VERSION: " + self.BCC_VERSION);

@@ -183,3 +183,3 @@ function initTransport(name, config) {

// get the unhooked value
const getRealReadyState = Object.getOwnPropertyDescriptor(WebSocket.prototype, 'readyState').get;
Object.getOwnPropertyDescriptor(WebSocket.prototype, 'readyState').get;
const wsProtocols = ['ws:', 'wss:'];

@@ -280,9 +280,3 @@ const statusEmpty = [101, 204, 205, 304];

// this value doesn't change when it's CLOSING or CLOSED etc
const getReadyState = () => {
const realReadyState = getRealReadyState.call(socket);
// readyState should only be faked when the real readyState is OPEN
return realReadyState === WebSocketFields.OPEN
? fakeReadyState
: realReadyState;
};
const getReadyState = () => fakeReadyState;
// we have to hook .readyState ourselves

@@ -289,0 +283,0 @@ Object.defineProperty(socket, 'readyState', {

{
"name": "@mercuryworkshop/bare-mux",
"version": "1.0.8",
"version": "1.0.9",
"description": "",

@@ -5,0 +5,0 @@ "type": "module",

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