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

mqtt-packet

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mqtt-packet - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

packet.js

2

package.json
{
"name": "mqtt-packet",
"version": "3.0.0",
"version": "3.1.0",
"description": "Parse and generate MQTT packets like a breeze",

@@ -5,0 +5,0 @@ "main": "mqtt.js",

@@ -5,2 +5,3 @@

, EE = require('events').EventEmitter
, Packet = require('./packet')
, constants = require('./constants')

@@ -33,5 +34,3 @@

this.packet = {
length: -1
}
this.packet = new Packet()

@@ -38,0 +37,0 @@ return true

@@ -14,2 +14,6 @@

parser.on('packet', function(packet) {
if (packet.cmd !== 'publish') {
delete packet.topic
delete packet.payload
}
t.deepEqual(packet, expected, 'expected packet')

@@ -34,2 +38,6 @@ })

parser.on('packet', function(packet) {
if (packet.cmd !== 'publish') {
delete packet.topic
delete packet.payload
}
t.deepEqual(packet, expected, 'expected packet')

@@ -36,0 +44,0 @@ })

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