Socket
Socket
Sign inDemoInstall

mqtt

Package Overview
Dependencies
Maintainers
7
Versions
202
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 4.3.7 to 4.3.8

12

lib/client.js

@@ -35,11 +35,3 @@ 'use strict'

const socketErrors = [
'ECONNREFUSED',
'EADDRINUSE',
'ECONNRESET',
'ENOTFOUND'
]
// Other Socket Errors: EADDRINUSE, ECONNRESET, ENOTFOUND.
const errors = {

@@ -458,3 +450,5 @@ 0: '',

debug('streamErrorHandler :: error', error.message)
if (socketErrors.includes(error.code)) {
// error.code will only be set on NodeJS env, browse don't allow to detect erros on sockets
// also emitting errors on browser seems to create issues
if (error.code) {
// handle error

@@ -461,0 +455,0 @@ debug('streamErrorHandler :: emitting error')

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

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

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