mqtt 5.14.0 → 5.14.1
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/build/lib/connect/ws.js +1 -1
- package/build/lib/connect/ws.js.map +1 -1
- package/build/lib/is-browser.d.ts +3 -0
- package/build/lib/is-browser.js +2 -1
- package/build/lib/is-browser.js.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/dist/mqtt.esm.js +3 -3
- package/dist/mqtt.js +3 -3
- package/dist/mqtt.min.js +3 -3
- package/package.json +1 -1
package/dist/mqtt.js
CHANGED
|
@@ -11968,7 +11968,7 @@ var mqtt = (() => {
|
|
|
11968
11968
|
// package-json:../../package.json
|
|
11969
11969
|
var require_package = __commonJS({
|
|
11970
11970
|
"package-json:../../package.json"(exports8, module) {
|
|
11971
|
-
module.exports = { version: "5.14.
|
|
11971
|
+
module.exports = { version: "5.14.1" };
|
|
11972
11972
|
}
|
|
11973
11973
|
});
|
|
11974
11974
|
|
|
@@ -17707,7 +17707,7 @@ var mqtt = (() => {
|
|
|
17707
17707
|
}
|
|
17708
17708
|
return false;
|
|
17709
17709
|
};
|
|
17710
|
-
var isWebWorkerEnv = () => Boolean(typeof self === "object" && self?.constructor?.name?.includes("WorkerGlobalScope"));
|
|
17710
|
+
var isWebWorkerEnv = () => Boolean(typeof self === "object" && self?.constructor?.name?.includes("WorkerGlobalScope") && typeof Deno === "undefined");
|
|
17711
17711
|
var isReactNativeEnv = () => typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
17712
17712
|
var isBrowser = isStandardBrowserEnv() || isWebWorkerEnv() || isReactNativeEnv();
|
|
17713
17713
|
exports8.isWebWorker = isWebWorkerEnv();
|
|
@@ -23126,7 +23126,7 @@ var mqtt = (() => {
|
|
|
23126
23126
|
stream.destroy(error);
|
|
23127
23127
|
}
|
|
23128
23128
|
async function onMessage(event) {
|
|
23129
|
-
if (!proxy || proxy.
|
|
23129
|
+
if (!proxy || !proxy.readable || !proxy.writable) {
|
|
23130
23130
|
return;
|
|
23131
23131
|
}
|
|
23132
23132
|
let { data } = event;
|