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

agnostic-ws

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agnostic-ws - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

4

dist/node.js

@@ -60,3 +60,3 @@ import {

this.ws.onmessage = (evt) => {
if (!(evt.data instanceof Buffer) && !(evt.data instanceof Uint8Array)) {
if (!(evt.data instanceof Buffer) && !(evt.data instanceof ArrayBuffer)) {
throw new Error("Expected data to be a BufferLike");

@@ -67,3 +67,3 @@ }

type: "message",
data: evt.data
data: new Uint8Array(evt.data)
};

@@ -70,0 +70,0 @@ this.onmessage?.(syntheticEvent);

{
"name": "agnostic-ws",
"version": "0.1.2",
"version": "0.1.3",
"type": "module",

@@ -5,0 +5,0 @@ "description": "runtime-agnostic websocekts",

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