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.5.3 to 5.5.4

3

build/lib/connect/index.js

@@ -11,2 +11,5 @@ "use strict";

const is_browser_1 = __importDefault(require("../is-browser"));
if (typeof (process === null || process === void 0 ? void 0 : process.nextTick) !== 'function') {
process.nextTick = setImmediate;
}
const debug = (0, debug_1.default)('mqttjs');

@@ -13,0 +16,0 @@ const protocols = {};

4

build/lib/connect/tcp.js

@@ -12,8 +12,8 @@ "use strict";

opts.hostname = opts.hostname || opts.host || 'localhost';
const { port } = opts;
const { port, path } = opts;
const host = opts.hostname;
debug('port %d and host %s', port, host);
return net_1.default.createConnection(port, host);
return net_1.default.createConnection({ port, host, path });
};
exports.default = buildStream;
//# sourceMappingURL=tcp.js.map
{
"name": "mqtt",
"description": "A library for the MQTT protocol",
"version": "5.5.3",
"version": "5.5.4",
"contributors": [

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

@@ -12,2 +12,7 @@ /* eslint-disable @typescript-eslint/no-var-requires */

// Handling the process.nextTick is not a function error in react-native applications.
if (typeof process?.nextTick !== 'function') {
process.nextTick = setImmediate
}
const debug = _debug('mqttjs')

@@ -14,0 +19,0 @@

@@ -16,9 +16,9 @@ import { StreamBuilder } from '../shared'

const { port } = opts
const { port, path } = opts
const host = opts.hostname
debug('port %d and host %s', port, host)
return net.createConnection(port, host)
return net.createConnection({ port, host, path })
}
export default buildStream

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

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