Comparing version 5.5.3 to 5.5.4
@@ -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 = {}; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1838765
32095