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

mqtt

Package Overview
Dependencies
Maintainers
7
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mqtt - npm Package Compare versions

Comparing version 5.10.0 to 5.10.1

4

build/lib/connect/ws.js

@@ -184,6 +184,8 @@ "use strict";

}
function onMessage(event) {
async function onMessage(event) {
let { data } = event;
if (data instanceof ArrayBuffer)
data = buffer_1.Buffer.from(data);
else if (data instanceof Blob)
data = buffer_1.Buffer.from(await new Response(data).arrayBuffer());
else

@@ -190,0 +192,0 @@ data = buffer_1.Buffer.from(data, 'utf8');

{
"name": "mqtt",
"description": "A library for the MQTT protocol",
"version": "5.10.0",
"version": "5.10.1",
"contributors": [

@@ -6,0 +6,0 @@ "Adam Rudd <adamvrr@gmail.com>",

@@ -259,5 +259,7 @@ import { StreamBuilder } from '../shared'

*/
function onMessage(event: MessageEvent) {
async function onMessage(event: MessageEvent) {
let { data } = event
if (data instanceof ArrayBuffer) data = Buffer.from(data)
else if (data instanceof Blob)
data = Buffer.from(await new Response(data).arrayBuffer())
else data = Buffer.from(data as string, 'utf8')

@@ -264,0 +266,0 @@ if (proxy && !proxy.destroyed) {

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 too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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