mqtt 5.7.1 → 5.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mqtt.js CHANGED
@@ -12634,7 +12634,7 @@ var mqtt = (() => {
12634
12634
  // package-json:../../package.json
12635
12635
  var require_package = __commonJS({
12636
12636
  "package-json:../../package.json"(exports5, module) {
12637
- module.exports = { version: "5.7.1" };
12637
+ module.exports = { version: "5.7.3" };
12638
12638
  }
12639
12639
  });
12640
12640
 
@@ -21398,7 +21398,7 @@ var mqtt = (() => {
21398
21398
  }
21399
21399
  }
21400
21400
  function connect(brokerUrl, opts) {
21401
- var _a, _b, _c;
21401
+ var _a, _b, _c, _d;
21402
21402
  debug("connecting to an MQTT broker...");
21403
21403
  if (typeof brokerUrl === "object" && !opts) {
21404
21404
  opts = brokerUrl;
@@ -21425,7 +21425,7 @@ var mqtt = (() => {
21425
21425
  opts.unixSocket = opts.unixSocket || ((_b = opts.protocol) === null || _b === void 0 ? void 0 : _b.includes("+unix"));
21426
21426
  if (opts.unixSocket) {
21427
21427
  opts.protocol = opts.protocol.replace("+unix", "");
21428
- } else if (!((_c = opts.protocol) === null || _c === void 0 ? void 0 : _c.startsWith("ws"))) {
21428
+ } else if (!((_c = opts.protocol) === null || _c === void 0 ? void 0 : _c.startsWith("ws")) && !((_d = opts.protocol) === null || _d === void 0 ? void 0 : _d.startsWith("wx"))) {
21429
21429
  delete opts.path;
21430
21430
  }
21431
21431
  parseAuthOptions(opts);