Comparing version 5.6.1 to 5.6.2
@@ -56,3 +56,9 @@ "use strict"; | ||
} | ||
opts = Object.assign(Object.assign({}, parsed), opts); | ||
opts = Object.assign({ | ||
port: parsed.port, | ||
host: parsed.hostname, | ||
protocol: parsed.protocol, | ||
query: parsed.query, | ||
auth: parsed.auth, | ||
}, opts); | ||
if (opts.protocol === null) { | ||
@@ -59,0 +65,0 @@ throw new Error('Missing protocol'); |
{ | ||
"name": "mqtt", | ||
"description": "A library for the MQTT protocol", | ||
"version": "5.6.1", | ||
"version": "5.6.2", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Adam Rudd <adamvrr@gmail.com>", |
@@ -83,3 +83,12 @@ /* eslint-disable @typescript-eslint/no-var-requires */ | ||
opts = { ...parsed, ...opts } as IClientOptions | ||
opts = { | ||
...{ | ||
port: parsed.port, | ||
host: parsed.hostname, | ||
protocol: parsed.protocol, | ||
query: parsed.query, | ||
auth: parsed.auth, | ||
}, | ||
...opts, | ||
} as IClientOptions | ||
@@ -86,0 +95,0 @@ if (opts.protocol === null) { |
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
1848193
32247