mqtt 5.3.5 → 5.4.0
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/README.md +6 -6
- package/build/lib/PingTimer.d.ts +0 -2
- package/build/lib/PingTimer.js +5 -30
- package/build/lib/PingTimer.js.map +1 -1
- package/build/lib/client.js +10 -0
- package/build/lib/client.js.map +1 -1
- package/build/lib/timers.d.ts +6 -0
- package/build/lib/timers.js +35 -0
- package/build/lib/timers.js.map +1 -0
- package/build/mqtt.d.ts +2 -1
- package/build/mqtt.js +3 -1
- package/build/mqtt.js.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/dist/mqtt.esm.js +5 -5
- package/dist/mqtt.js +190 -148
- package/dist/mqtt.min.js +5 -5
- package/package.json +3 -3
- package/src/lib/PingTimer.ts +3 -14
- package/src/lib/client.ts +14 -0
- package/src/lib/timers.ts +15 -0
- package/src/mqtt.ts +2 -0
package/dist/mqtt.js
CHANGED
|
@@ -24,9 +24,18 @@ var mqtt = (() => {
|
|
|
24
24
|
};
|
|
25
25
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
26
26
|
|
|
27
|
-
// node_modules/esbuild-plugin-polyfill-node/polyfills/
|
|
28
|
-
var
|
|
29
|
-
|
|
27
|
+
// node_modules/esbuild-plugin-polyfill-node/polyfills/navigator.js
|
|
28
|
+
var navigator;
|
|
29
|
+
var init_navigator = __esm({
|
|
30
|
+
"node_modules/esbuild-plugin-polyfill-node/polyfills/navigator.js"() {
|
|
31
|
+
navigator = {
|
|
32
|
+
deviceMemory: 8,
|
|
33
|
+
// Highest allowed value
|
|
34
|
+
hardwareConcurrency: 8,
|
|
35
|
+
// Fairly common default
|
|
36
|
+
language: "en-US"
|
|
37
|
+
// Most common default
|
|
38
|
+
};
|
|
30
39
|
}
|
|
31
40
|
});
|
|
32
41
|
|
|
@@ -201,9 +210,9 @@ var mqtt = (() => {
|
|
|
201
210
|
var queue, draining, currentQueue, queueIndex, title, arch, platform, env, argv, execArgv, version, versions, emitWarning, binding, umask, cwd, chdir, release, _rawDebug, moduleLoadList, domain, _exiting, config, reallyExit, _kill, cpuUsage, resourceUsage, memoryUsage, kill, exit, openStdin, allowedNodeEnvironmentFlags, features, _fatalExceptions, setUncaughtExceptionCaptureCallback, _tickCallback, _debugProcess, _debugEnd, _startProfilerIdleNotifier, _stopProfilerIdleNotifier, stdout, stderr, stdin, abort, pid, ppid, execPath, debugPort, argv0, _preload_modules, setSourceMapsEnabled, _performance, nowOffset, nanoPerSec, _maxListeners, _events, _eventsCount, addListener, once, off, removeListener, removeAllListeners, emit, prependListener, prependOnceListener, process;
|
|
202
211
|
var init_process = __esm({
|
|
203
212
|
"node_modules/@jspm/core/nodelibs/browser/process.js"() {
|
|
204
|
-
init_dirname();
|
|
205
213
|
init_buffer2();
|
|
206
214
|
init_process2();
|
|
215
|
+
init_navigator();
|
|
207
216
|
queue = [];
|
|
208
217
|
draining = false;
|
|
209
218
|
queueIndex = -1;
|
|
@@ -2228,9 +2237,9 @@ var mqtt = (() => {
|
|
|
2228
2237
|
var exports$3, _dewExec$2, exports$2, _dewExec$1, exports$1, _dewExec, exports, Buffer2, INSPECT_MAX_BYTES, kMaxLength;
|
|
2229
2238
|
var init_buffer = __esm({
|
|
2230
2239
|
"node_modules/@jspm/core/nodelibs/browser/buffer.js"() {
|
|
2231
|
-
init_dirname();
|
|
2232
2240
|
init_buffer2();
|
|
2233
2241
|
init_process2();
|
|
2242
|
+
init_navigator();
|
|
2234
2243
|
exports$3 = {};
|
|
2235
2244
|
_dewExec$2 = false;
|
|
2236
2245
|
exports$2 = {};
|
|
@@ -2259,9 +2268,9 @@ var mqtt = (() => {
|
|
|
2259
2268
|
var require_topic_alias_recv = __commonJS({
|
|
2260
2269
|
"build/lib/topic-alias-recv.js"(exports5) {
|
|
2261
2270
|
"use strict";
|
|
2262
|
-
init_dirname();
|
|
2263
2271
|
init_buffer2();
|
|
2264
2272
|
init_process2();
|
|
2273
|
+
init_navigator();
|
|
2265
2274
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
2266
2275
|
var TopicAliasRecv = class {
|
|
2267
2276
|
constructor(max) {
|
|
@@ -2291,9 +2300,9 @@ var mqtt = (() => {
|
|
|
2291
2300
|
var require_primordials = __commonJS({
|
|
2292
2301
|
"node_modules/readable-stream/lib/ours/primordials.js"(exports5, module) {
|
|
2293
2302
|
"use strict";
|
|
2294
|
-
init_dirname();
|
|
2295
2303
|
init_buffer2();
|
|
2296
2304
|
init_process2();
|
|
2305
|
+
init_navigator();
|
|
2297
2306
|
module.exports = {
|
|
2298
2307
|
ArrayIsArray(self2) {
|
|
2299
2308
|
return Array.isArray(self2);
|
|
@@ -2393,9 +2402,9 @@ var mqtt = (() => {
|
|
|
2393
2402
|
var require_util = __commonJS({
|
|
2394
2403
|
"node_modules/readable-stream/lib/ours/util.js"(exports5, module) {
|
|
2395
2404
|
"use strict";
|
|
2396
|
-
init_dirname();
|
|
2397
2405
|
init_buffer2();
|
|
2398
2406
|
init_process2();
|
|
2407
|
+
init_navigator();
|
|
2399
2408
|
var bufferModule = (init_buffer(), __toCommonJS(buffer_exports));
|
|
2400
2409
|
var AsyncFunction = Object.getPrototypeOf(async function() {
|
|
2401
2410
|
}).constructor;
|
|
@@ -2520,9 +2529,9 @@ var mqtt = (() => {
|
|
|
2520
2529
|
var require_browser = __commonJS({
|
|
2521
2530
|
"node_modules/abort-controller/browser.js"(exports5, module) {
|
|
2522
2531
|
"use strict";
|
|
2523
|
-
init_dirname();
|
|
2524
2532
|
init_buffer2();
|
|
2525
2533
|
init_process2();
|
|
2534
|
+
init_navigator();
|
|
2526
2535
|
var { AbortController, AbortSignal } = typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : (
|
|
2527
2536
|
/* otherwise */
|
|
2528
2537
|
void 0
|
|
@@ -2537,9 +2546,9 @@ var mqtt = (() => {
|
|
|
2537
2546
|
var require_errors = __commonJS({
|
|
2538
2547
|
"node_modules/readable-stream/lib/ours/errors.js"(exports5, module) {
|
|
2539
2548
|
"use strict";
|
|
2540
|
-
init_dirname();
|
|
2541
2549
|
init_buffer2();
|
|
2542
2550
|
init_process2();
|
|
2551
|
+
init_navigator();
|
|
2543
2552
|
var { format: format2, inspect, AggregateError: CustomAggregateError } = require_util();
|
|
2544
2553
|
var AggregateError = globalThis.AggregateError || CustomAggregateError;
|
|
2545
2554
|
var kIsNodeError = Symbol("kIsNodeError");
|
|
@@ -2856,9 +2865,9 @@ var mqtt = (() => {
|
|
|
2856
2865
|
var require_validators = __commonJS({
|
|
2857
2866
|
"node_modules/readable-stream/lib/internal/validators.js"(exports5, module) {
|
|
2858
2867
|
"use strict";
|
|
2859
|
-
init_dirname();
|
|
2860
2868
|
init_buffer2();
|
|
2861
2869
|
init_process2();
|
|
2870
|
+
init_navigator();
|
|
2862
2871
|
var {
|
|
2863
2872
|
ArrayIsArray,
|
|
2864
2873
|
ArrayPrototypeIncludes,
|
|
@@ -3119,9 +3128,9 @@ var mqtt = (() => {
|
|
|
3119
3128
|
// node_modules/process/browser.js
|
|
3120
3129
|
var require_browser2 = __commonJS({
|
|
3121
3130
|
"node_modules/process/browser.js"(exports5, module) {
|
|
3122
|
-
init_dirname();
|
|
3123
3131
|
init_buffer2();
|
|
3124
3132
|
init_process2();
|
|
3133
|
+
init_navigator();
|
|
3125
3134
|
var process3 = module.exports = {};
|
|
3126
3135
|
var cachedSetTimeout;
|
|
3127
3136
|
var cachedClearTimeout;
|
|
@@ -3285,9 +3294,9 @@ var mqtt = (() => {
|
|
|
3285
3294
|
var require_utils = __commonJS({
|
|
3286
3295
|
"node_modules/readable-stream/lib/internal/streams/utils.js"(exports5, module) {
|
|
3287
3296
|
"use strict";
|
|
3288
|
-
init_dirname();
|
|
3289
3297
|
init_buffer2();
|
|
3290
3298
|
init_process2();
|
|
3299
|
+
init_navigator();
|
|
3291
3300
|
var { Symbol: Symbol2, SymbolAsyncIterator, SymbolIterator, SymbolFor } = require_primordials();
|
|
3292
3301
|
var kDestroyed = Symbol2("kDestroyed");
|
|
3293
3302
|
var kIsErrored = Symbol2("kIsErrored");
|
|
@@ -3518,9 +3527,9 @@ var mqtt = (() => {
|
|
|
3518
3527
|
// node_modules/readable-stream/lib/internal/streams/end-of-stream.js
|
|
3519
3528
|
var require_end_of_stream = __commonJS({
|
|
3520
3529
|
"node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports5, module) {
|
|
3521
|
-
init_dirname();
|
|
3522
3530
|
init_buffer2();
|
|
3523
3531
|
init_process2();
|
|
3532
|
+
init_navigator();
|
|
3524
3533
|
var process3 = require_browser2();
|
|
3525
3534
|
var { AbortError, codes } = require_errors();
|
|
3526
3535
|
var { ERR_INVALID_ARG_TYPE, ERR_STREAM_PREMATURE_CLOSE } = codes;
|
|
@@ -3773,9 +3782,9 @@ var mqtt = (() => {
|
|
|
3773
3782
|
var require_destroy = __commonJS({
|
|
3774
3783
|
"node_modules/readable-stream/lib/internal/streams/destroy.js"(exports5, module) {
|
|
3775
3784
|
"use strict";
|
|
3776
|
-
init_dirname();
|
|
3777
3785
|
init_buffer2();
|
|
3778
3786
|
init_process2();
|
|
3787
|
+
init_navigator();
|
|
3779
3788
|
var process3 = require_browser2();
|
|
3780
3789
|
var {
|
|
3781
3790
|
aggregateTwoErrors,
|
|
@@ -4097,9 +4106,9 @@ var mqtt = (() => {
|
|
|
4097
4106
|
var e, t, n, r, i, s, y;
|
|
4098
4107
|
var init_chunk_4bd36a8f = __esm({
|
|
4099
4108
|
"node_modules/@jspm/core/nodelibs/browser/chunk-4bd36a8f.js"() {
|
|
4100
|
-
init_dirname();
|
|
4101
4109
|
init_buffer2();
|
|
4102
4110
|
init_process2();
|
|
4111
|
+
init_navigator();
|
|
4103
4112
|
n = "object" == typeof Reflect ? Reflect : null;
|
|
4104
4113
|
r = n && "function" == typeof n.apply ? n.apply : function(e7, t6, n7) {
|
|
4105
4114
|
return Function.prototype.apply.call(e7, t6, n7);
|
|
@@ -4238,9 +4247,9 @@ var mqtt = (() => {
|
|
|
4238
4247
|
var EventEmitter, defaultMaxListeners, init, listenerCount, on2, once2;
|
|
4239
4248
|
var init_events = __esm({
|
|
4240
4249
|
"node_modules/@jspm/core/nodelibs/browser/events.js"() {
|
|
4241
|
-
init_dirname();
|
|
4242
4250
|
init_buffer2();
|
|
4243
4251
|
init_process2();
|
|
4252
|
+
init_navigator();
|
|
4244
4253
|
init_chunk_4bd36a8f();
|
|
4245
4254
|
init_chunk_4bd36a8f();
|
|
4246
4255
|
y.once = function(emitter, event) {
|
|
@@ -4338,9 +4347,9 @@ var mqtt = (() => {
|
|
|
4338
4347
|
var require_legacy = __commonJS({
|
|
4339
4348
|
"node_modules/readable-stream/lib/internal/streams/legacy.js"(exports5, module) {
|
|
4340
4349
|
"use strict";
|
|
4341
|
-
init_dirname();
|
|
4342
4350
|
init_buffer2();
|
|
4343
4351
|
init_process2();
|
|
4352
|
+
init_navigator();
|
|
4344
4353
|
var { ArrayIsArray, ObjectSetPrototypeOf } = require_primordials();
|
|
4345
4354
|
var { EventEmitter: EE } = (init_events(), __toCommonJS(events_exports));
|
|
4346
4355
|
function Stream(opts) {
|
|
@@ -4426,9 +4435,9 @@ var mqtt = (() => {
|
|
|
4426
4435
|
var require_add_abort_signal = __commonJS({
|
|
4427
4436
|
"node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(exports5, module) {
|
|
4428
4437
|
"use strict";
|
|
4429
|
-
init_dirname();
|
|
4430
4438
|
init_buffer2();
|
|
4431
4439
|
init_process2();
|
|
4440
|
+
init_navigator();
|
|
4432
4441
|
var { AbortError, codes } = require_errors();
|
|
4433
4442
|
var { isNodeStream, isWebStream, kControllerErrorFunction } = require_utils();
|
|
4434
4443
|
var eos = require_end_of_stream();
|
|
@@ -4477,9 +4486,9 @@ var mqtt = (() => {
|
|
|
4477
4486
|
var require_buffer_list = __commonJS({
|
|
4478
4487
|
"node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports5, module) {
|
|
4479
4488
|
"use strict";
|
|
4480
|
-
init_dirname();
|
|
4481
4489
|
init_buffer2();
|
|
4482
4490
|
init_process2();
|
|
4491
|
+
init_navigator();
|
|
4483
4492
|
var { StringPrototypeSlice, SymbolIterator, TypedArrayPrototypeSet, Uint8Array: Uint8Array2 } = require_primordials();
|
|
4484
4493
|
var { Buffer: Buffer3 } = (init_buffer(), __toCommonJS(buffer_exports));
|
|
4485
4494
|
var { inspect } = require_util();
|
|
@@ -4648,9 +4657,9 @@ var mqtt = (() => {
|
|
|
4648
4657
|
var require_state = __commonJS({
|
|
4649
4658
|
"node_modules/readable-stream/lib/internal/streams/state.js"(exports5, module) {
|
|
4650
4659
|
"use strict";
|
|
4651
|
-
init_dirname();
|
|
4652
4660
|
init_buffer2();
|
|
4653
4661
|
init_process2();
|
|
4662
|
+
init_navigator();
|
|
4654
4663
|
var { MathFloor, NumberIsInteger } = require_primordials();
|
|
4655
4664
|
var { ERR_INVALID_ARG_VALUE } = require_errors().codes;
|
|
4656
4665
|
function highWaterMarkFrom(options, isDuplex, duplexKey) {
|
|
@@ -5184,9 +5193,9 @@ var mqtt = (() => {
|
|
|
5184
5193
|
var r$1, t$1, e$2, n$2, o$2, a$1, h$1, a$1$1, e$1$1, n$1$1, i$1, o$1$1, j, Y, e2, n2, o2, u2, e$1, s2, i2;
|
|
5185
5194
|
var init_chunk_4ccc3a29 = __esm({
|
|
5186
5195
|
"node_modules/@jspm/core/nodelibs/browser/chunk-4ccc3a29.js"() {
|
|
5187
|
-
init_dirname();
|
|
5188
5196
|
init_buffer2();
|
|
5189
5197
|
init_process2();
|
|
5198
|
+
init_navigator();
|
|
5190
5199
|
for (r$1 = { byteLength: function(r7) {
|
|
5191
5200
|
var t6 = u$2(r7), e7 = t6[0], n7 = t6[1];
|
|
5192
5201
|
return 3 * (e7 + n7) / 4 - n7;
|
|
@@ -5681,9 +5690,9 @@ var mqtt = (() => {
|
|
|
5681
5690
|
var StringDecoder;
|
|
5682
5691
|
var init_string_decoder = __esm({
|
|
5683
5692
|
"node_modules/@jspm/core/nodelibs/browser/string_decoder.js"() {
|
|
5684
|
-
init_dirname();
|
|
5685
5693
|
init_buffer2();
|
|
5686
5694
|
init_process2();
|
|
5695
|
+
init_navigator();
|
|
5687
5696
|
init_chunk_4ccc3a29();
|
|
5688
5697
|
init_chunk_4ccc3a29();
|
|
5689
5698
|
StringDecoder = e$1.StringDecoder;
|
|
@@ -5694,9 +5703,9 @@ var mqtt = (() => {
|
|
|
5694
5703
|
var require_from = __commonJS({
|
|
5695
5704
|
"node_modules/readable-stream/lib/internal/streams/from.js"(exports5, module) {
|
|
5696
5705
|
"use strict";
|
|
5697
|
-
init_dirname();
|
|
5698
5706
|
init_buffer2();
|
|
5699
5707
|
init_process2();
|
|
5708
|
+
init_navigator();
|
|
5700
5709
|
var process3 = require_browser2();
|
|
5701
5710
|
var { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require_primordials();
|
|
5702
5711
|
var { Buffer: Buffer3 } = (init_buffer(), __toCommonJS(buffer_exports));
|
|
@@ -5791,9 +5800,9 @@ var mqtt = (() => {
|
|
|
5791
5800
|
// node_modules/readable-stream/lib/internal/streams/readable.js
|
|
5792
5801
|
var require_readable = __commonJS({
|
|
5793
5802
|
"node_modules/readable-stream/lib/internal/streams/readable.js"(exports5, module) {
|
|
5794
|
-
init_dirname();
|
|
5795
5803
|
init_buffer2();
|
|
5796
5804
|
init_process2();
|
|
5805
|
+
init_navigator();
|
|
5797
5806
|
var process3 = require_browser2();
|
|
5798
5807
|
var {
|
|
5799
5808
|
ArrayPrototypeIndexOf,
|
|
@@ -6746,9 +6755,9 @@ var mqtt = (() => {
|
|
|
6746
6755
|
// node_modules/readable-stream/lib/internal/streams/writable.js
|
|
6747
6756
|
var require_writable = __commonJS({
|
|
6748
6757
|
"node_modules/readable-stream/lib/internal/streams/writable.js"(exports5, module) {
|
|
6749
|
-
init_dirname();
|
|
6750
6758
|
init_buffer2();
|
|
6751
6759
|
init_process2();
|
|
6760
|
+
init_navigator();
|
|
6752
6761
|
var process3 = require_browser2();
|
|
6753
6762
|
var {
|
|
6754
6763
|
ArrayPrototypeSlice,
|
|
@@ -7392,9 +7401,9 @@ var mqtt = (() => {
|
|
|
7392
7401
|
// node_modules/readable-stream/lib/internal/streams/duplexify.js
|
|
7393
7402
|
var require_duplexify = __commonJS({
|
|
7394
7403
|
"node_modules/readable-stream/lib/internal/streams/duplexify.js"(exports5, module) {
|
|
7395
|
-
init_dirname();
|
|
7396
7404
|
init_buffer2();
|
|
7397
7405
|
init_process2();
|
|
7406
|
+
init_navigator();
|
|
7398
7407
|
var process3 = require_browser2();
|
|
7399
7408
|
var bufferModule = (init_buffer(), __toCommonJS(buffer_exports));
|
|
7400
7409
|
var {
|
|
@@ -7728,9 +7737,9 @@ var mqtt = (() => {
|
|
|
7728
7737
|
var require_duplex = __commonJS({
|
|
7729
7738
|
"node_modules/readable-stream/lib/internal/streams/duplex.js"(exports5, module) {
|
|
7730
7739
|
"use strict";
|
|
7731
|
-
init_dirname();
|
|
7732
7740
|
init_buffer2();
|
|
7733
7741
|
init_process2();
|
|
7742
|
+
init_navigator();
|
|
7734
7743
|
var {
|
|
7735
7744
|
ObjectDefineProperties,
|
|
7736
7745
|
ObjectGetOwnPropertyDescriptor,
|
|
@@ -7851,9 +7860,9 @@ var mqtt = (() => {
|
|
|
7851
7860
|
var require_transform = __commonJS({
|
|
7852
7861
|
"node_modules/readable-stream/lib/internal/streams/transform.js"(exports5, module) {
|
|
7853
7862
|
"use strict";
|
|
7854
|
-
init_dirname();
|
|
7855
7863
|
init_buffer2();
|
|
7856
7864
|
init_process2();
|
|
7865
|
+
init_navigator();
|
|
7857
7866
|
var { ObjectSetPrototypeOf, Symbol: Symbol2 } = require_primordials();
|
|
7858
7867
|
module.exports = Transform;
|
|
7859
7868
|
var { ERR_METHOD_NOT_IMPLEMENTED } = require_errors().codes;
|
|
@@ -7959,9 +7968,9 @@ var mqtt = (() => {
|
|
|
7959
7968
|
var require_passthrough = __commonJS({
|
|
7960
7969
|
"node_modules/readable-stream/lib/internal/streams/passthrough.js"(exports5, module) {
|
|
7961
7970
|
"use strict";
|
|
7962
|
-
init_dirname();
|
|
7963
7971
|
init_buffer2();
|
|
7964
7972
|
init_process2();
|
|
7973
|
+
init_navigator();
|
|
7965
7974
|
var { ObjectSetPrototypeOf } = require_primordials();
|
|
7966
7975
|
module.exports = PassThrough;
|
|
7967
7976
|
var Transform = require_transform();
|
|
@@ -7981,9 +7990,9 @@ var mqtt = (() => {
|
|
|
7981
7990
|
// node_modules/readable-stream/lib/internal/streams/pipeline.js
|
|
7982
7991
|
var require_pipeline = __commonJS({
|
|
7983
7992
|
"node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports5, module) {
|
|
7984
|
-
init_dirname();
|
|
7985
7993
|
init_buffer2();
|
|
7986
7994
|
init_process2();
|
|
7995
|
+
init_navigator();
|
|
7987
7996
|
var process3 = require_browser2();
|
|
7988
7997
|
var { ArrayIsArray, Promise: Promise2, SymbolAsyncIterator } = require_primordials();
|
|
7989
7998
|
var eos = require_end_of_stream();
|
|
@@ -8407,9 +8416,9 @@ var mqtt = (() => {
|
|
|
8407
8416
|
var require_compose = __commonJS({
|
|
8408
8417
|
"node_modules/readable-stream/lib/internal/streams/compose.js"(exports5, module) {
|
|
8409
8418
|
"use strict";
|
|
8410
|
-
init_dirname();
|
|
8411
8419
|
init_buffer2();
|
|
8412
8420
|
init_process2();
|
|
8421
|
+
init_navigator();
|
|
8413
8422
|
var { pipeline } = require_pipeline();
|
|
8414
8423
|
var Duplex = require_duplex();
|
|
8415
8424
|
var { destroyer } = require_destroy();
|
|
@@ -8603,9 +8612,9 @@ var mqtt = (() => {
|
|
|
8603
8612
|
var require_operators = __commonJS({
|
|
8604
8613
|
"node_modules/readable-stream/lib/internal/streams/operators.js"(exports5, module) {
|
|
8605
8614
|
"use strict";
|
|
8606
|
-
init_dirname();
|
|
8607
8615
|
init_buffer2();
|
|
8608
8616
|
init_process2();
|
|
8617
|
+
init_navigator();
|
|
8609
8618
|
var AbortController = globalThis.AbortController || require_browser().AbortController;
|
|
8610
8619
|
var {
|
|
8611
8620
|
codes: { ERR_INVALID_ARG_VALUE, ERR_INVALID_ARG_TYPE, ERR_MISSING_ARGS, ERR_OUT_OF_RANGE },
|
|
@@ -9000,9 +9009,9 @@ var mqtt = (() => {
|
|
|
9000
9009
|
var require_promises = __commonJS({
|
|
9001
9010
|
"node_modules/readable-stream/lib/stream/promises.js"(exports5, module) {
|
|
9002
9011
|
"use strict";
|
|
9003
|
-
init_dirname();
|
|
9004
9012
|
init_buffer2();
|
|
9005
9013
|
init_process2();
|
|
9014
|
+
init_navigator();
|
|
9006
9015
|
var { ArrayPrototypePop, Promise: Promise2 } = require_primordials();
|
|
9007
9016
|
var { isIterable, isNodeStream, isWebStream } = require_utils();
|
|
9008
9017
|
var { pipelineImpl: pl } = require_pipeline();
|
|
@@ -9044,9 +9053,9 @@ var mqtt = (() => {
|
|
|
9044
9053
|
// node_modules/readable-stream/lib/stream.js
|
|
9045
9054
|
var require_stream = __commonJS({
|
|
9046
9055
|
"node_modules/readable-stream/lib/stream.js"(exports5, module) {
|
|
9047
|
-
init_dirname();
|
|
9048
9056
|
init_buffer2();
|
|
9049
9057
|
init_process2();
|
|
9058
|
+
init_navigator();
|
|
9050
9059
|
var { Buffer: Buffer3 } = (init_buffer(), __toCommonJS(buffer_exports));
|
|
9051
9060
|
var { ObjectDefineProperty, ObjectKeys, ReflectApply } = require_primordials();
|
|
9052
9061
|
var {
|
|
@@ -9165,9 +9174,9 @@ var mqtt = (() => {
|
|
|
9165
9174
|
var require_browser3 = __commonJS({
|
|
9166
9175
|
"node_modules/readable-stream/lib/ours/browser.js"(exports5, module) {
|
|
9167
9176
|
"use strict";
|
|
9168
|
-
init_dirname();
|
|
9169
9177
|
init_buffer2();
|
|
9170
9178
|
init_process2();
|
|
9179
|
+
init_navigator();
|
|
9171
9180
|
var CustomStream = require_stream();
|
|
9172
9181
|
var promises = require_promises();
|
|
9173
9182
|
var originalDestroy = CustomStream.Readable.destroy;
|
|
@@ -9203,9 +9212,9 @@ var mqtt = (() => {
|
|
|
9203
9212
|
// node_modules/inherits/inherits_browser.js
|
|
9204
9213
|
var require_inherits_browser = __commonJS({
|
|
9205
9214
|
"node_modules/inherits/inherits_browser.js"(exports5, module) {
|
|
9206
|
-
init_dirname();
|
|
9207
9215
|
init_buffer2();
|
|
9208
9216
|
init_process2();
|
|
9217
|
+
init_navigator();
|
|
9209
9218
|
if (typeof Object.create === "function") {
|
|
9210
9219
|
module.exports = function inherits(ctor, superCtor) {
|
|
9211
9220
|
if (superCtor) {
|
|
@@ -9239,9 +9248,9 @@ var mqtt = (() => {
|
|
|
9239
9248
|
var require_BufferList = __commonJS({
|
|
9240
9249
|
"node_modules/mqtt-packet/node_modules/bl/BufferList.js"(exports5, module) {
|
|
9241
9250
|
"use strict";
|
|
9242
|
-
init_dirname();
|
|
9243
9251
|
init_buffer2();
|
|
9244
9252
|
init_process2();
|
|
9253
|
+
init_navigator();
|
|
9245
9254
|
var { Buffer: Buffer3 } = (init_buffer(), __toCommonJS(buffer_exports));
|
|
9246
9255
|
var symbol = Symbol.for("BufferList");
|
|
9247
9256
|
function BufferList(buf) {
|
|
@@ -9550,9 +9559,9 @@ var mqtt = (() => {
|
|
|
9550
9559
|
var require_bl = __commonJS({
|
|
9551
9560
|
"node_modules/mqtt-packet/node_modules/bl/bl.js"(exports5, module) {
|
|
9552
9561
|
"use strict";
|
|
9553
|
-
init_dirname();
|
|
9554
9562
|
init_buffer2();
|
|
9555
9563
|
init_process2();
|
|
9564
|
+
init_navigator();
|
|
9556
9565
|
var DuplexStream = require_browser3().Duplex;
|
|
9557
9566
|
var inherits = require_inherits_browser();
|
|
9558
9567
|
var BufferList = require_BufferList();
|
|
@@ -9623,9 +9632,9 @@ var mqtt = (() => {
|
|
|
9623
9632
|
// node_modules/mqtt-packet/packet.js
|
|
9624
9633
|
var require_packet = __commonJS({
|
|
9625
9634
|
"node_modules/mqtt-packet/packet.js"(exports5, module) {
|
|
9626
|
-
init_dirname();
|
|
9627
9635
|
init_buffer2();
|
|
9628
9636
|
init_process2();
|
|
9637
|
+
init_navigator();
|
|
9629
9638
|
var Packet = class {
|
|
9630
9639
|
constructor() {
|
|
9631
9640
|
this.cmd = null;
|
|
@@ -9644,9 +9653,9 @@ var mqtt = (() => {
|
|
|
9644
9653
|
// node_modules/mqtt-packet/constants.js
|
|
9645
9654
|
var require_constants = __commonJS({
|
|
9646
9655
|
"node_modules/mqtt-packet/constants.js"(exports5, module) {
|
|
9647
|
-
init_dirname();
|
|
9648
9656
|
init_buffer2();
|
|
9649
9657
|
init_process2();
|
|
9658
|
+
init_navigator();
|
|
9650
9659
|
var protocol = module.exports;
|
|
9651
9660
|
var { Buffer: Buffer3 } = (init_buffer(), __toCommonJS(buffer_exports));
|
|
9652
9661
|
protocol.types = {
|
|
@@ -9920,9 +9929,9 @@ var mqtt = (() => {
|
|
|
9920
9929
|
// node_modules/ms/index.js
|
|
9921
9930
|
var require_ms = __commonJS({
|
|
9922
9931
|
"node_modules/ms/index.js"(exports5, module) {
|
|
9923
|
-
init_dirname();
|
|
9924
9932
|
init_buffer2();
|
|
9925
9933
|
init_process2();
|
|
9934
|
+
init_navigator();
|
|
9926
9935
|
var s5 = 1e3;
|
|
9927
9936
|
var m4 = s5 * 60;
|
|
9928
9937
|
var h6 = m4 * 60;
|
|
@@ -10039,9 +10048,9 @@ var mqtt = (() => {
|
|
|
10039
10048
|
// node_modules/debug/src/common.js
|
|
10040
10049
|
var require_common = __commonJS({
|
|
10041
10050
|
"node_modules/debug/src/common.js"(exports5, module) {
|
|
10042
|
-
init_dirname();
|
|
10043
10051
|
init_buffer2();
|
|
10044
10052
|
init_process2();
|
|
10053
|
+
init_navigator();
|
|
10045
10054
|
function setup(env2) {
|
|
10046
10055
|
createDebug.debug = createDebug;
|
|
10047
10056
|
createDebug.default = createDebug;
|
|
@@ -10205,9 +10214,9 @@ var mqtt = (() => {
|
|
|
10205
10214
|
// node_modules/debug/src/browser.js
|
|
10206
10215
|
var require_browser4 = __commonJS({
|
|
10207
10216
|
"node_modules/debug/src/browser.js"(exports5, module) {
|
|
10208
|
-
init_dirname();
|
|
10209
10217
|
init_buffer2();
|
|
10210
10218
|
init_process2();
|
|
10219
|
+
init_navigator();
|
|
10211
10220
|
exports5.formatArgs = formatArgs;
|
|
10212
10221
|
exports5.save = save;
|
|
10213
10222
|
exports5.load = load;
|
|
@@ -10377,9 +10386,9 @@ var mqtt = (() => {
|
|
|
10377
10386
|
// node_modules/mqtt-packet/parser.js
|
|
10378
10387
|
var require_parser = __commonJS({
|
|
10379
10388
|
"node_modules/mqtt-packet/parser.js"(exports5, module) {
|
|
10380
|
-
init_dirname();
|
|
10381
10389
|
init_buffer2();
|
|
10382
10390
|
init_process2();
|
|
10391
|
+
init_navigator();
|
|
10383
10392
|
var bl = require_bl();
|
|
10384
10393
|
var { EventEmitter: EventEmitter2 } = (init_events(), __toCommonJS(events_exports));
|
|
10385
10394
|
var Packet = require_packet();
|
|
@@ -11074,9 +11083,9 @@ var mqtt = (() => {
|
|
|
11074
11083
|
// node_modules/mqtt-packet/numbers.js
|
|
11075
11084
|
var require_numbers = __commonJS({
|
|
11076
11085
|
"node_modules/mqtt-packet/numbers.js"(exports5, module) {
|
|
11077
|
-
init_dirname();
|
|
11078
11086
|
init_buffer2();
|
|
11079
11087
|
init_process2();
|
|
11088
|
+
init_navigator();
|
|
11080
11089
|
var { Buffer: Buffer3 } = (init_buffer(), __toCommonJS(buffer_exports));
|
|
11081
11090
|
var max = 65536;
|
|
11082
11091
|
var cache = {};
|
|
@@ -11128,9 +11137,9 @@ var mqtt = (() => {
|
|
|
11128
11137
|
var require_process_nextick_args = __commonJS({
|
|
11129
11138
|
"node_modules/process-nextick-args/index.js"(exports5, module) {
|
|
11130
11139
|
"use strict";
|
|
11131
|
-
init_dirname();
|
|
11132
11140
|
init_buffer2();
|
|
11133
11141
|
init_process2();
|
|
11142
|
+
init_navigator();
|
|
11134
11143
|
if (typeof process_exports === "undefined" || !process_exports.version || process_exports.version.indexOf("v0.") === 0 || process_exports.version.indexOf("v1.") === 0 && process_exports.version.indexOf("v1.8.") !== 0) {
|
|
11135
11144
|
module.exports = { nextTick: nextTick2 };
|
|
11136
11145
|
} else {
|
|
@@ -11175,9 +11184,9 @@ var mqtt = (() => {
|
|
|
11175
11184
|
// node_modules/mqtt-packet/writeToStream.js
|
|
11176
11185
|
var require_writeToStream = __commonJS({
|
|
11177
11186
|
"node_modules/mqtt-packet/writeToStream.js"(exports5, module) {
|
|
11178
|
-
init_dirname();
|
|
11179
11187
|
init_buffer2();
|
|
11180
11188
|
init_process2();
|
|
11189
|
+
init_navigator();
|
|
11181
11190
|
var protocol = require_constants();
|
|
11182
11191
|
var { Buffer: Buffer3 } = (init_buffer(), __toCommonJS(buffer_exports));
|
|
11183
11192
|
var empty = Buffer3.allocUnsafe(0);
|
|
@@ -12065,9 +12074,9 @@ var mqtt = (() => {
|
|
|
12065
12074
|
// node_modules/mqtt-packet/generate.js
|
|
12066
12075
|
var require_generate = __commonJS({
|
|
12067
12076
|
"node_modules/mqtt-packet/generate.js"(exports5, module) {
|
|
12068
|
-
init_dirname();
|
|
12069
12077
|
init_buffer2();
|
|
12070
12078
|
init_process2();
|
|
12079
|
+
init_navigator();
|
|
12071
12080
|
var writeToStream = require_writeToStream();
|
|
12072
12081
|
var { EventEmitter: EventEmitter2 } = (init_events(), __toCommonJS(events_exports));
|
|
12073
12082
|
var { Buffer: Buffer3 } = (init_buffer(), __toCommonJS(buffer_exports));
|
|
@@ -12123,9 +12132,9 @@ var mqtt = (() => {
|
|
|
12123
12132
|
// node_modules/mqtt-packet/mqtt.js
|
|
12124
12133
|
var require_mqtt = __commonJS({
|
|
12125
12134
|
"node_modules/mqtt-packet/mqtt.js"(exports5) {
|
|
12126
|
-
init_dirname();
|
|
12127
12135
|
init_buffer2();
|
|
12128
12136
|
init_process2();
|
|
12137
|
+
init_navigator();
|
|
12129
12138
|
exports5.parser = require_parser().parser;
|
|
12130
12139
|
exports5.generate = require_generate();
|
|
12131
12140
|
exports5.writeToStream = require_writeToStream();
|
|
@@ -12136,9 +12145,9 @@ var mqtt = (() => {
|
|
|
12136
12145
|
var require_default_message_id_provider = __commonJS({
|
|
12137
12146
|
"build/lib/default-message-id-provider.js"(exports5) {
|
|
12138
12147
|
"use strict";
|
|
12139
|
-
init_dirname();
|
|
12140
12148
|
init_buffer2();
|
|
12141
12149
|
init_process2();
|
|
12150
|
+
init_navigator();
|
|
12142
12151
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
12143
12152
|
var DefaultMessageIdProvider = class {
|
|
12144
12153
|
constructor() {
|
|
@@ -12170,9 +12179,9 @@ var mqtt = (() => {
|
|
|
12170
12179
|
var require_rfdc = __commonJS({
|
|
12171
12180
|
"node_modules/rfdc/index.js"(exports5, module) {
|
|
12172
12181
|
"use strict";
|
|
12173
|
-
init_dirname();
|
|
12174
12182
|
init_buffer2();
|
|
12175
12183
|
init_process2();
|
|
12184
|
+
init_navigator();
|
|
12176
12185
|
module.exports = rfdc;
|
|
12177
12186
|
function copyBuffer(cur) {
|
|
12178
12187
|
if (cur instanceof Buffer2) {
|
|
@@ -12381,9 +12390,9 @@ var mqtt = (() => {
|
|
|
12381
12390
|
var require_default = __commonJS({
|
|
12382
12391
|
"node_modules/rfdc/default.js"(exports5, module) {
|
|
12383
12392
|
"use strict";
|
|
12384
|
-
init_dirname();
|
|
12385
12393
|
init_buffer2();
|
|
12386
12394
|
init_process2();
|
|
12395
|
+
init_navigator();
|
|
12387
12396
|
module.exports = require_rfdc()();
|
|
12388
12397
|
}
|
|
12389
12398
|
});
|
|
@@ -12392,9 +12401,9 @@ var mqtt = (() => {
|
|
|
12392
12401
|
var require_validations = __commonJS({
|
|
12393
12402
|
"build/lib/validations.js"(exports5) {
|
|
12394
12403
|
"use strict";
|
|
12395
|
-
init_dirname();
|
|
12396
12404
|
init_buffer2();
|
|
12397
12405
|
init_process2();
|
|
12406
|
+
init_navigator();
|
|
12398
12407
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
12399
12408
|
exports5.validateTopics = exports5.validateTopic = void 0;
|
|
12400
12409
|
function validateTopic(topic) {
|
|
@@ -12432,9 +12441,9 @@ var mqtt = (() => {
|
|
|
12432
12441
|
var require_store = __commonJS({
|
|
12433
12442
|
"build/lib/store.js"(exports5) {
|
|
12434
12443
|
"use strict";
|
|
12435
|
-
init_dirname();
|
|
12436
12444
|
init_buffer2();
|
|
12437
12445
|
init_process2();
|
|
12446
|
+
init_navigator();
|
|
12438
12447
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
12439
12448
|
var readable_stream_1 = require_browser3();
|
|
12440
12449
|
var streamsOpts = { objectMode: true };
|
|
@@ -12517,9 +12526,9 @@ var mqtt = (() => {
|
|
|
12517
12526
|
var require_publish = __commonJS({
|
|
12518
12527
|
"build/lib/handlers/publish.js"(exports5) {
|
|
12519
12528
|
"use strict";
|
|
12520
|
-
init_dirname();
|
|
12521
12529
|
init_buffer2();
|
|
12522
12530
|
init_process2();
|
|
12531
|
+
init_navigator();
|
|
12523
12532
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
12524
12533
|
var validReasonCodes = [0, 16, 128, 131, 135, 144, 145, 151, 153];
|
|
12525
12534
|
var handlePublish = (client, packet, done) => {
|
|
@@ -12626,9 +12635,9 @@ var mqtt = (() => {
|
|
|
12626
12635
|
var require_shared = __commonJS({
|
|
12627
12636
|
"build/lib/shared.js"(exports5) {
|
|
12628
12637
|
"use strict";
|
|
12629
|
-
init_dirname();
|
|
12630
12638
|
init_buffer2();
|
|
12631
12639
|
init_process2();
|
|
12640
|
+
init_navigator();
|
|
12632
12641
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
12633
12642
|
exports5.nextTick = exports5.applyMixin = exports5.ErrorWithReasonCode = void 0;
|
|
12634
12643
|
var ErrorWithReasonCode = class _ErrorWithReasonCode extends Error {
|
|
@@ -12671,9 +12680,9 @@ var mqtt = (() => {
|
|
|
12671
12680
|
var require_ack = __commonJS({
|
|
12672
12681
|
"build/lib/handlers/ack.js"(exports5) {
|
|
12673
12682
|
"use strict";
|
|
12674
|
-
init_dirname();
|
|
12675
12683
|
init_buffer2();
|
|
12676
12684
|
init_process2();
|
|
12685
|
+
init_navigator();
|
|
12677
12686
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
12678
12687
|
exports5.ReasonCodes = void 0;
|
|
12679
12688
|
exports5.ReasonCodes = {
|
|
@@ -12806,9 +12815,9 @@ var mqtt = (() => {
|
|
|
12806
12815
|
var require_auth = __commonJS({
|
|
12807
12816
|
"build/lib/handlers/auth.js"(exports5) {
|
|
12808
12817
|
"use strict";
|
|
12809
|
-
init_dirname();
|
|
12810
12818
|
init_buffer2();
|
|
12811
12819
|
init_process2();
|
|
12820
|
+
init_navigator();
|
|
12812
12821
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
12813
12822
|
var shared_1 = require_shared();
|
|
12814
12823
|
var ack_1 = require_ack();
|
|
@@ -12843,9 +12852,9 @@ var mqtt = (() => {
|
|
|
12843
12852
|
var require_cjs = __commonJS({
|
|
12844
12853
|
"node_modules/lru-cache/dist/cjs/index.js"(exports5) {
|
|
12845
12854
|
"use strict";
|
|
12846
|
-
init_dirname();
|
|
12847
12855
|
init_buffer2();
|
|
12848
12856
|
init_process2();
|
|
12857
|
+
init_navigator();
|
|
12849
12858
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
12850
12859
|
exports5.LRUCache = void 0;
|
|
12851
12860
|
var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
@@ -14089,9 +14098,9 @@ var mqtt = (() => {
|
|
|
14089
14098
|
var require_ContainerBase = __commonJS({
|
|
14090
14099
|
"node_modules/js-sdsl/dist/cjs/container/ContainerBase/index.js"(exports5) {
|
|
14091
14100
|
"use strict";
|
|
14092
|
-
init_dirname();
|
|
14093
14101
|
init_buffer2();
|
|
14094
14102
|
init_process2();
|
|
14103
|
+
init_navigator();
|
|
14095
14104
|
Object.defineProperty(exports5, "t", {
|
|
14096
14105
|
value: true
|
|
14097
14106
|
});
|
|
@@ -14130,9 +14139,9 @@ var mqtt = (() => {
|
|
|
14130
14139
|
var require_Stack = __commonJS({
|
|
14131
14140
|
"node_modules/js-sdsl/dist/cjs/container/OtherContainer/Stack.js"(exports5) {
|
|
14132
14141
|
"use strict";
|
|
14133
|
-
init_dirname();
|
|
14134
14142
|
init_buffer2();
|
|
14135
14143
|
init_process2();
|
|
14144
|
+
init_navigator();
|
|
14136
14145
|
Object.defineProperty(exports5, "t", {
|
|
14137
14146
|
value: true
|
|
14138
14147
|
});
|
|
@@ -14175,9 +14184,9 @@ var mqtt = (() => {
|
|
|
14175
14184
|
var require_Queue = __commonJS({
|
|
14176
14185
|
"node_modules/js-sdsl/dist/cjs/container/OtherContainer/Queue.js"(exports5) {
|
|
14177
14186
|
"use strict";
|
|
14178
|
-
init_dirname();
|
|
14179
14187
|
init_buffer2();
|
|
14180
14188
|
init_process2();
|
|
14189
|
+
init_navigator();
|
|
14181
14190
|
Object.defineProperty(exports5, "t", {
|
|
14182
14191
|
value: true
|
|
14183
14192
|
});
|
|
@@ -14232,9 +14241,9 @@ var mqtt = (() => {
|
|
|
14232
14241
|
var require_PriorityQueue = __commonJS({
|
|
14233
14242
|
"node_modules/js-sdsl/dist/cjs/container/OtherContainer/PriorityQueue.js"(exports5) {
|
|
14234
14243
|
"use strict";
|
|
14235
|
-
init_dirname();
|
|
14236
14244
|
init_buffer2();
|
|
14237
14245
|
init_process2();
|
|
14246
|
+
init_navigator();
|
|
14238
14247
|
Object.defineProperty(exports5, "t", {
|
|
14239
14248
|
value: true
|
|
14240
14249
|
});
|
|
@@ -14359,9 +14368,9 @@ var mqtt = (() => {
|
|
|
14359
14368
|
var require_Base = __commonJS({
|
|
14360
14369
|
"node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Base/index.js"(exports5) {
|
|
14361
14370
|
"use strict";
|
|
14362
|
-
init_dirname();
|
|
14363
14371
|
init_buffer2();
|
|
14364
14372
|
init_process2();
|
|
14373
|
+
init_navigator();
|
|
14365
14374
|
Object.defineProperty(exports5, "t", {
|
|
14366
14375
|
value: true
|
|
14367
14376
|
});
|
|
@@ -14378,9 +14387,9 @@ var mqtt = (() => {
|
|
|
14378
14387
|
var require_throwError = __commonJS({
|
|
14379
14388
|
"node_modules/js-sdsl/dist/cjs/utils/throwError.js"(exports5) {
|
|
14380
14389
|
"use strict";
|
|
14381
|
-
init_dirname();
|
|
14382
14390
|
init_buffer2();
|
|
14383
14391
|
init_process2();
|
|
14392
|
+
init_navigator();
|
|
14384
14393
|
Object.defineProperty(exports5, "t", {
|
|
14385
14394
|
value: true
|
|
14386
14395
|
});
|
|
@@ -14395,9 +14404,9 @@ var mqtt = (() => {
|
|
|
14395
14404
|
var require_RandomIterator = __commonJS({
|
|
14396
14405
|
"node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Base/RandomIterator.js"(exports5) {
|
|
14397
14406
|
"use strict";
|
|
14398
|
-
init_dirname();
|
|
14399
14407
|
init_buffer2();
|
|
14400
14408
|
init_process2();
|
|
14409
|
+
init_navigator();
|
|
14401
14410
|
Object.defineProperty(exports5, "t", {
|
|
14402
14411
|
value: true
|
|
14403
14412
|
});
|
|
@@ -14455,9 +14464,9 @@ var mqtt = (() => {
|
|
|
14455
14464
|
var require_Vector = __commonJS({
|
|
14456
14465
|
"node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Vector.js"(exports5) {
|
|
14457
14466
|
"use strict";
|
|
14458
|
-
init_dirname();
|
|
14459
14467
|
init_buffer2();
|
|
14460
14468
|
init_process2();
|
|
14469
|
+
init_navigator();
|
|
14461
14470
|
Object.defineProperty(exports5, "t", {
|
|
14462
14471
|
value: true
|
|
14463
14472
|
});
|
|
@@ -14613,9 +14622,9 @@ var mqtt = (() => {
|
|
|
14613
14622
|
var require_LinkList = __commonJS({
|
|
14614
14623
|
"node_modules/js-sdsl/dist/cjs/container/SequentialContainer/LinkList.js"(exports5) {
|
|
14615
14624
|
"use strict";
|
|
14616
|
-
init_dirname();
|
|
14617
14625
|
init_buffer2();
|
|
14618
14626
|
init_process2();
|
|
14627
|
+
init_navigator();
|
|
14619
14628
|
Object.defineProperty(exports5, "t", {
|
|
14620
14629
|
value: true
|
|
14621
14630
|
});
|
|
@@ -14949,9 +14958,9 @@ var mqtt = (() => {
|
|
|
14949
14958
|
var require_Deque = __commonJS({
|
|
14950
14959
|
"node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Deque.js"(exports5) {
|
|
14951
14960
|
"use strict";
|
|
14952
|
-
init_dirname();
|
|
14953
14961
|
init_buffer2();
|
|
14954
14962
|
init_process2();
|
|
14963
|
+
init_navigator();
|
|
14955
14964
|
Object.defineProperty(exports5, "t", {
|
|
14956
14965
|
value: true
|
|
14957
14966
|
});
|
|
@@ -15312,9 +15321,9 @@ var mqtt = (() => {
|
|
|
15312
15321
|
var require_TreeNode = __commonJS({
|
|
15313
15322
|
"node_modules/js-sdsl/dist/cjs/container/TreeContainer/Base/TreeNode.js"(exports5) {
|
|
15314
15323
|
"use strict";
|
|
15315
|
-
init_dirname();
|
|
15316
15324
|
init_buffer2();
|
|
15317
15325
|
init_process2();
|
|
15326
|
+
init_navigator();
|
|
15318
15327
|
Object.defineProperty(exports5, "t", {
|
|
15319
15328
|
value: true
|
|
15320
15329
|
});
|
|
@@ -15442,9 +15451,9 @@ var mqtt = (() => {
|
|
|
15442
15451
|
var require_Base2 = __commonJS({
|
|
15443
15452
|
"node_modules/js-sdsl/dist/cjs/container/TreeContainer/Base/index.js"(exports5) {
|
|
15444
15453
|
"use strict";
|
|
15445
|
-
init_dirname();
|
|
15446
15454
|
init_buffer2();
|
|
15447
15455
|
init_process2();
|
|
15456
|
+
init_navigator();
|
|
15448
15457
|
Object.defineProperty(exports5, "t", {
|
|
15449
15458
|
value: true
|
|
15450
15459
|
});
|
|
@@ -15992,9 +16001,9 @@ var mqtt = (() => {
|
|
|
15992
16001
|
var require_TreeIterator = __commonJS({
|
|
15993
16002
|
"node_modules/js-sdsl/dist/cjs/container/TreeContainer/Base/TreeIterator.js"(exports5) {
|
|
15994
16003
|
"use strict";
|
|
15995
|
-
init_dirname();
|
|
15996
16004
|
init_buffer2();
|
|
15997
16005
|
init_process2();
|
|
16006
|
+
init_navigator();
|
|
15998
16007
|
Object.defineProperty(exports5, "t", {
|
|
15999
16008
|
value: true
|
|
16000
16009
|
});
|
|
@@ -16073,9 +16082,9 @@ var mqtt = (() => {
|
|
|
16073
16082
|
var require_OrderedSet = __commonJS({
|
|
16074
16083
|
"node_modules/js-sdsl/dist/cjs/container/TreeContainer/OrderedSet.js"(exports5) {
|
|
16075
16084
|
"use strict";
|
|
16076
|
-
init_dirname();
|
|
16077
16085
|
init_buffer2();
|
|
16078
16086
|
init_process2();
|
|
16087
|
+
init_navigator();
|
|
16079
16088
|
Object.defineProperty(exports5, "t", {
|
|
16080
16089
|
value: true
|
|
16081
16090
|
});
|
|
@@ -16179,9 +16188,9 @@ var mqtt = (() => {
|
|
|
16179
16188
|
var require_OrderedMap = __commonJS({
|
|
16180
16189
|
"node_modules/js-sdsl/dist/cjs/container/TreeContainer/OrderedMap.js"(exports5) {
|
|
16181
16190
|
"use strict";
|
|
16182
|
-
init_dirname();
|
|
16183
16191
|
init_buffer2();
|
|
16184
16192
|
init_process2();
|
|
16193
|
+
init_navigator();
|
|
16185
16194
|
Object.defineProperty(exports5, "t", {
|
|
16186
16195
|
value: true
|
|
16187
16196
|
});
|
|
@@ -16310,9 +16319,9 @@ var mqtt = (() => {
|
|
|
16310
16319
|
var require_checkObject = __commonJS({
|
|
16311
16320
|
"node_modules/js-sdsl/dist/cjs/utils/checkObject.js"(exports5) {
|
|
16312
16321
|
"use strict";
|
|
16313
|
-
init_dirname();
|
|
16314
16322
|
init_buffer2();
|
|
16315
16323
|
init_process2();
|
|
16324
|
+
init_navigator();
|
|
16316
16325
|
Object.defineProperty(exports5, "t", {
|
|
16317
16326
|
value: true
|
|
16318
16327
|
});
|
|
@@ -16328,9 +16337,9 @@ var mqtt = (() => {
|
|
|
16328
16337
|
var require_Base3 = __commonJS({
|
|
16329
16338
|
"node_modules/js-sdsl/dist/cjs/container/HashContainer/Base/index.js"(exports5) {
|
|
16330
16339
|
"use strict";
|
|
16331
|
-
init_dirname();
|
|
16332
16340
|
init_buffer2();
|
|
16333
16341
|
init_process2();
|
|
16342
|
+
init_navigator();
|
|
16334
16343
|
Object.defineProperty(exports5, "t", {
|
|
16335
16344
|
value: true
|
|
16336
16345
|
});
|
|
@@ -16520,9 +16529,9 @@ var mqtt = (() => {
|
|
|
16520
16529
|
var require_HashSet = __commonJS({
|
|
16521
16530
|
"node_modules/js-sdsl/dist/cjs/container/HashContainer/HashSet.js"(exports5) {
|
|
16522
16531
|
"use strict";
|
|
16523
|
-
init_dirname();
|
|
16524
16532
|
init_buffer2();
|
|
16525
16533
|
init_process2();
|
|
16534
|
+
init_navigator();
|
|
16526
16535
|
Object.defineProperty(exports5, "t", {
|
|
16527
16536
|
value: true
|
|
16528
16537
|
});
|
|
@@ -16614,9 +16623,9 @@ var mqtt = (() => {
|
|
|
16614
16623
|
var require_HashMap = __commonJS({
|
|
16615
16624
|
"node_modules/js-sdsl/dist/cjs/container/HashContainer/HashMap.js"(exports5) {
|
|
16616
16625
|
"use strict";
|
|
16617
|
-
init_dirname();
|
|
16618
16626
|
init_buffer2();
|
|
16619
16627
|
init_process2();
|
|
16628
|
+
init_navigator();
|
|
16620
16629
|
Object.defineProperty(exports5, "t", {
|
|
16621
16630
|
value: true
|
|
16622
16631
|
});
|
|
@@ -16743,9 +16752,9 @@ var mqtt = (() => {
|
|
|
16743
16752
|
var require_cjs2 = __commonJS({
|
|
16744
16753
|
"node_modules/js-sdsl/dist/cjs/index.js"(exports5) {
|
|
16745
16754
|
"use strict";
|
|
16746
|
-
init_dirname();
|
|
16747
16755
|
init_buffer2();
|
|
16748
16756
|
init_process2();
|
|
16757
|
+
init_navigator();
|
|
16749
16758
|
Object.defineProperty(exports5, "t", {
|
|
16750
16759
|
value: true
|
|
16751
16760
|
});
|
|
@@ -16831,9 +16840,9 @@ var mqtt = (() => {
|
|
|
16831
16840
|
var require_number_allocator = __commonJS({
|
|
16832
16841
|
"node_modules/number-allocator/lib/number-allocator.js"(exports5, module) {
|
|
16833
16842
|
"use strict";
|
|
16834
|
-
init_dirname();
|
|
16835
16843
|
init_buffer2();
|
|
16836
16844
|
init_process2();
|
|
16845
|
+
init_navigator();
|
|
16837
16846
|
var SortedSet = require_cjs2().OrderedSet;
|
|
16838
16847
|
var debugTrace = require_browser4()("number-allocator:trace");
|
|
16839
16848
|
var debugError = require_browser4()("number-allocator:error");
|
|
@@ -16993,9 +17002,9 @@ var mqtt = (() => {
|
|
|
16993
17002
|
// node_modules/number-allocator/index.js
|
|
16994
17003
|
var require_number_allocator2 = __commonJS({
|
|
16995
17004
|
"node_modules/number-allocator/index.js"(exports5, module) {
|
|
16996
|
-
init_dirname();
|
|
16997
17005
|
init_buffer2();
|
|
16998
17006
|
init_process2();
|
|
17007
|
+
init_navigator();
|
|
16999
17008
|
var NumberAllocator = require_number_allocator();
|
|
17000
17009
|
module.exports.NumberAllocator = NumberAllocator;
|
|
17001
17010
|
}
|
|
@@ -17005,9 +17014,9 @@ var mqtt = (() => {
|
|
|
17005
17014
|
var require_topic_alias_send = __commonJS({
|
|
17006
17015
|
"build/lib/topic-alias-send.js"(exports5) {
|
|
17007
17016
|
"use strict";
|
|
17008
|
-
init_dirname();
|
|
17009
17017
|
init_buffer2();
|
|
17010
17018
|
init_process2();
|
|
17019
|
+
init_navigator();
|
|
17011
17020
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
17012
17021
|
var lru_cache_1 = require_cjs();
|
|
17013
17022
|
var number_allocator_1 = require_number_allocator2();
|
|
@@ -17066,9 +17075,9 @@ var mqtt = (() => {
|
|
|
17066
17075
|
var require_connack = __commonJS({
|
|
17067
17076
|
"build/lib/handlers/connack.js"(exports5) {
|
|
17068
17077
|
"use strict";
|
|
17069
|
-
init_dirname();
|
|
17070
17078
|
init_buffer2();
|
|
17071
17079
|
init_process2();
|
|
17080
|
+
init_navigator();
|
|
17072
17081
|
var __importDefault = exports5 && exports5.__importDefault || function(mod) {
|
|
17073
17082
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
17074
17083
|
};
|
|
@@ -17120,9 +17129,9 @@ var mqtt = (() => {
|
|
|
17120
17129
|
var require_pubrel = __commonJS({
|
|
17121
17130
|
"build/lib/handlers/pubrel.js"(exports5) {
|
|
17122
17131
|
"use strict";
|
|
17123
|
-
init_dirname();
|
|
17124
17132
|
init_buffer2();
|
|
17125
17133
|
init_process2();
|
|
17134
|
+
init_navigator();
|
|
17126
17135
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
17127
17136
|
var handlePubrel = (client, packet, done) => {
|
|
17128
17137
|
client.log("handling pubrel packet");
|
|
@@ -17152,9 +17161,9 @@ var mqtt = (() => {
|
|
|
17152
17161
|
var require_handlers = __commonJS({
|
|
17153
17162
|
"build/lib/handlers/index.js"(exports5) {
|
|
17154
17163
|
"use strict";
|
|
17155
|
-
init_dirname();
|
|
17156
17164
|
init_buffer2();
|
|
17157
17165
|
init_process2();
|
|
17166
|
+
init_navigator();
|
|
17158
17167
|
var __importDefault = exports5 && exports5.__importDefault || function(mod) {
|
|
17159
17168
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
17160
17169
|
};
|
|
@@ -17221,9 +17230,9 @@ var mqtt = (() => {
|
|
|
17221
17230
|
var require_TypedEmitter = __commonJS({
|
|
17222
17231
|
"build/lib/TypedEmitter.js"(exports5) {
|
|
17223
17232
|
"use strict";
|
|
17224
|
-
init_dirname();
|
|
17225
17233
|
init_buffer2();
|
|
17226
17234
|
init_process2();
|
|
17235
|
+
init_navigator();
|
|
17227
17236
|
var __importDefault = exports5 && exports5.__importDefault || function(mod) {
|
|
17228
17237
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
17229
17238
|
};
|
|
@@ -17238,12 +17247,33 @@ var mqtt = (() => {
|
|
|
17238
17247
|
}
|
|
17239
17248
|
});
|
|
17240
17249
|
|
|
17250
|
+
// build/lib/is-browser.js
|
|
17251
|
+
var require_is_browser = __commonJS({
|
|
17252
|
+
"build/lib/is-browser.js"(exports5) {
|
|
17253
|
+
"use strict";
|
|
17254
|
+
init_buffer2();
|
|
17255
|
+
init_process2();
|
|
17256
|
+
init_navigator();
|
|
17257
|
+
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
17258
|
+
exports5.isWebWorker = void 0;
|
|
17259
|
+
var isStandardBrowserEnv = () => typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
17260
|
+
var isWebWorkerEnv = () => {
|
|
17261
|
+
var _a, _b;
|
|
17262
|
+
return Boolean(typeof self === "object" && ((_b = (_a = self === null || self === void 0 ? void 0 : self.constructor) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.includes("WorkerGlobalScope")));
|
|
17263
|
+
};
|
|
17264
|
+
var isReactNativeEnv = () => typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
17265
|
+
var isBrowser = isStandardBrowserEnv() || isWebWorkerEnv() || isReactNativeEnv();
|
|
17266
|
+
exports5.isWebWorker = isWebWorkerEnv();
|
|
17267
|
+
exports5.default = isBrowser;
|
|
17268
|
+
}
|
|
17269
|
+
});
|
|
17270
|
+
|
|
17241
17271
|
// node_modules/fast-unique-numbers/build/es5/bundle.js
|
|
17242
17272
|
var require_bundle = __commonJS({
|
|
17243
17273
|
"node_modules/fast-unique-numbers/build/es5/bundle.js"(exports5, module) {
|
|
17244
|
-
init_dirname();
|
|
17245
17274
|
init_buffer2();
|
|
17246
17275
|
init_process2();
|
|
17276
|
+
init_navigator();
|
|
17247
17277
|
(function(global2, factory) {
|
|
17248
17278
|
typeof exports5 === "object" && typeof module !== "undefined" ? factory(exports5) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.fastUniqueNumbers = {}));
|
|
17249
17279
|
})(exports5, function(exports6) {
|
|
@@ -17299,9 +17329,9 @@ var mqtt = (() => {
|
|
|
17299
17329
|
// node_modules/worker-timers-broker/build/es5/bundle.js
|
|
17300
17330
|
var require_bundle2 = __commonJS({
|
|
17301
17331
|
"node_modules/worker-timers-broker/build/es5/bundle.js"(exports5, module) {
|
|
17302
|
-
init_dirname();
|
|
17303
17332
|
init_buffer2();
|
|
17304
17333
|
init_process2();
|
|
17334
|
+
init_navigator();
|
|
17305
17335
|
(function(global2, factory) {
|
|
17306
17336
|
typeof exports5 === "object" && typeof module !== "undefined" ? factory(exports5, require_bundle()) : typeof define === "function" && define.amd ? define(["exports", "fast-unique-numbers"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.workerTimersBroker = {}, global2.fastUniqueNumbers));
|
|
17307
17337
|
})(exports5, function(exports6, fastUniqueNumbers) {
|
|
@@ -17399,7 +17429,8 @@ var mqtt = (() => {
|
|
|
17399
17429
|
}
|
|
17400
17430
|
});
|
|
17401
17431
|
};
|
|
17402
|
-
var setInterval2 = function setInterval3(func
|
|
17432
|
+
var setInterval2 = function setInterval3(func) {
|
|
17433
|
+
var delay = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
17403
17434
|
var timerId = fastUniqueNumbers.generateUniqueNumber(scheduledIntervalFunctions);
|
|
17404
17435
|
scheduledIntervalFunctions.set(timerId, function() {
|
|
17405
17436
|
func();
|
|
@@ -17428,7 +17459,8 @@ var mqtt = (() => {
|
|
|
17428
17459
|
});
|
|
17429
17460
|
return timerId;
|
|
17430
17461
|
};
|
|
17431
|
-
var setTimeout2 = function setTimeout3(func
|
|
17462
|
+
var setTimeout2 = function setTimeout3(func) {
|
|
17463
|
+
var delay = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
17432
17464
|
var timerId = fastUniqueNumbers.generateUniqueNumber(scheduledTimeoutFunctions);
|
|
17433
17465
|
scheduledTimeoutFunctions.set(timerId, func);
|
|
17434
17466
|
worker.postMessage({
|
|
@@ -17458,9 +17490,9 @@ var mqtt = (() => {
|
|
|
17458
17490
|
// node_modules/worker-timers/build/es5/bundle.js
|
|
17459
17491
|
var require_bundle3 = __commonJS({
|
|
17460
17492
|
"node_modules/worker-timers/build/es5/bundle.js"(exports5, module) {
|
|
17461
|
-
init_dirname();
|
|
17462
17493
|
init_buffer2();
|
|
17463
17494
|
init_process2();
|
|
17495
|
+
init_navigator();
|
|
17464
17496
|
(function(global2, factory) {
|
|
17465
17497
|
typeof exports5 === "object" && typeof module !== "undefined" ? factory(exports5, require_bundle2()) : typeof define === "function" && define.amd ? define(["exports", "worker-timers-broker"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.workerTimers = {}, global2.workerTimersBroker));
|
|
17466
17498
|
})(exports5, function(exports6, workerTimersBroker) {
|
|
@@ -17482,7 +17514,7 @@ var mqtt = (() => {
|
|
|
17482
17514
|
return broker;
|
|
17483
17515
|
};
|
|
17484
17516
|
};
|
|
17485
|
-
var worker = `(()=>{var e={
|
|
17517
|
+
var worker = `(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`;
|
|
17486
17518
|
var loadOrReturnBroker = createLoadOrReturnBroker(workerTimersBroker.load, worker);
|
|
17487
17519
|
var clearInterval2 = function clearInterval3(timerId) {
|
|
17488
17520
|
return loadOrReturnBroker().clearInterval(timerId);
|
|
@@ -17490,11 +17522,13 @@ var mqtt = (() => {
|
|
|
17490
17522
|
var clearTimeout2 = function clearTimeout3(timerId) {
|
|
17491
17523
|
return loadOrReturnBroker().clearTimeout(timerId);
|
|
17492
17524
|
};
|
|
17493
|
-
var setInterval2 = function setInterval3(
|
|
17494
|
-
|
|
17525
|
+
var setInterval2 = function setInterval3() {
|
|
17526
|
+
var _loadOrReturnBroker;
|
|
17527
|
+
return (_loadOrReturnBroker = loadOrReturnBroker()).setInterval.apply(_loadOrReturnBroker, arguments);
|
|
17495
17528
|
};
|
|
17496
|
-
var setTimeout$1 = function setTimeout2(
|
|
17497
|
-
|
|
17529
|
+
var setTimeout$1 = function setTimeout2() {
|
|
17530
|
+
var _loadOrReturnBroker2;
|
|
17531
|
+
return (_loadOrReturnBroker2 = loadOrReturnBroker()).setTimeout.apply(_loadOrReturnBroker2, arguments);
|
|
17498
17532
|
};
|
|
17499
17533
|
exports6.clearInterval = clearInterval2;
|
|
17500
17534
|
exports6.clearTimeout = clearTimeout2;
|
|
@@ -17504,34 +17538,13 @@ var mqtt = (() => {
|
|
|
17504
17538
|
}
|
|
17505
17539
|
});
|
|
17506
17540
|
|
|
17507
|
-
// build/lib/
|
|
17508
|
-
var
|
|
17509
|
-
"build/lib/
|
|
17510
|
-
"use strict";
|
|
17511
|
-
init_dirname();
|
|
17512
|
-
init_buffer2();
|
|
17513
|
-
init_process2();
|
|
17514
|
-
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
17515
|
-
exports5.isWebWorker = void 0;
|
|
17516
|
-
var isStandardBrowserEnv = () => typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
17517
|
-
var isWebWorkerEnv = () => {
|
|
17518
|
-
var _a, _b;
|
|
17519
|
-
return Boolean(typeof self === "object" && ((_b = (_a = self === null || self === void 0 ? void 0 : self.constructor) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.includes("WorkerGlobalScope")));
|
|
17520
|
-
};
|
|
17521
|
-
var isReactNativeEnv = () => typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
17522
|
-
var isBrowser = isStandardBrowserEnv() || isWebWorkerEnv() || isReactNativeEnv();
|
|
17523
|
-
exports5.isWebWorker = isWebWorkerEnv();
|
|
17524
|
-
exports5.default = isBrowser;
|
|
17525
|
-
}
|
|
17526
|
-
});
|
|
17527
|
-
|
|
17528
|
-
// build/lib/PingTimer.js
|
|
17529
|
-
var require_PingTimer = __commonJS({
|
|
17530
|
-
"build/lib/PingTimer.js"(exports5) {
|
|
17541
|
+
// build/lib/timers.js
|
|
17542
|
+
var require_timers = __commonJS({
|
|
17543
|
+
"build/lib/timers.js"(exports5) {
|
|
17531
17544
|
"use strict";
|
|
17532
|
-
init_dirname();
|
|
17533
17545
|
init_buffer2();
|
|
17534
17546
|
init_process2();
|
|
17547
|
+
init_navigator();
|
|
17535
17548
|
var __createBinding = exports5 && exports5.__createBinding || (Object.create ? function(o7, m4, k2, k22) {
|
|
17536
17549
|
if (k22 === void 0)
|
|
17537
17550
|
k22 = k2;
|
|
@@ -17565,25 +17578,43 @@ var mqtt = (() => {
|
|
|
17565
17578
|
return result;
|
|
17566
17579
|
};
|
|
17567
17580
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
17568
|
-
var worker_timers_1 = require_bundle3();
|
|
17569
17581
|
var is_browser_1 = __importStar(require_is_browser());
|
|
17582
|
+
var worker_timers_1 = require_bundle3();
|
|
17583
|
+
var timers = {
|
|
17584
|
+
set: is_browser_1.default && !is_browser_1.isWebWorker ? worker_timers_1.setTimeout : (func, time) => setTimeout(func, time),
|
|
17585
|
+
clear: is_browser_1.default && !is_browser_1.isWebWorker ? worker_timers_1.clearTimeout : (timer) => clearTimeout(timer)
|
|
17586
|
+
};
|
|
17587
|
+
exports5.default = timers;
|
|
17588
|
+
}
|
|
17589
|
+
});
|
|
17590
|
+
|
|
17591
|
+
// build/lib/PingTimer.js
|
|
17592
|
+
var require_PingTimer = __commonJS({
|
|
17593
|
+
"build/lib/PingTimer.js"(exports5) {
|
|
17594
|
+
"use strict";
|
|
17595
|
+
init_buffer2();
|
|
17596
|
+
init_process2();
|
|
17597
|
+
init_navigator();
|
|
17598
|
+
var __importDefault = exports5 && exports5.__importDefault || function(mod) {
|
|
17599
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
17600
|
+
};
|
|
17601
|
+
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
17602
|
+
var timers_1 = __importDefault(require_timers());
|
|
17570
17603
|
var PingTimer = class {
|
|
17571
17604
|
constructor(keepalive, checkPing) {
|
|
17572
|
-
this._setTimeout = is_browser_1.default && !is_browser_1.isWebWorker ? worker_timers_1.setTimeout : (func, time) => setTimeout(func, time);
|
|
17573
|
-
this._clearTimeout = is_browser_1.default && !is_browser_1.isWebWorker ? worker_timers_1.clearTimeout : (timer) => clearTimeout(timer);
|
|
17574
17605
|
this.keepalive = keepalive * 1e3;
|
|
17575
17606
|
this.checkPing = checkPing;
|
|
17576
17607
|
this.reschedule();
|
|
17577
17608
|
}
|
|
17578
17609
|
clear() {
|
|
17579
17610
|
if (this.timer) {
|
|
17580
|
-
|
|
17611
|
+
timers_1.default.clear(this.timer);
|
|
17581
17612
|
this.timer = null;
|
|
17582
17613
|
}
|
|
17583
17614
|
}
|
|
17584
17615
|
reschedule() {
|
|
17585
17616
|
this.clear();
|
|
17586
|
-
this.timer =
|
|
17617
|
+
this.timer = timers_1.default.set(() => {
|
|
17587
17618
|
this.checkPing();
|
|
17588
17619
|
if (this.timer) {
|
|
17589
17620
|
this.reschedule();
|
|
@@ -17599,9 +17630,9 @@ var mqtt = (() => {
|
|
|
17599
17630
|
var require_client = __commonJS({
|
|
17600
17631
|
"build/lib/client.js"(exports5) {
|
|
17601
17632
|
"use strict";
|
|
17602
|
-
init_dirname();
|
|
17603
17633
|
init_buffer2();
|
|
17604
17634
|
init_process2();
|
|
17635
|
+
init_navigator();
|
|
17605
17636
|
var __createBinding = exports5 && exports5.__createBinding || (Object.create ? function(o7, m4, k2, k22) {
|
|
17606
17637
|
if (k22 === void 0)
|
|
17607
17638
|
k22 = k2;
|
|
@@ -17650,6 +17681,7 @@ var mqtt = (() => {
|
|
|
17650
17681
|
var shared_1 = require_shared();
|
|
17651
17682
|
var TypedEmitter_1 = require_TypedEmitter();
|
|
17652
17683
|
var PingTimer_1 = __importDefault(require_PingTimer());
|
|
17684
|
+
var is_browser_1 = __importStar(require_is_browser());
|
|
17653
17685
|
var setImmediate = globalThis.setImmediate || ((...args) => {
|
|
17654
17686
|
const callback = args.shift();
|
|
17655
17687
|
(0, shared_1.nextTick)(() => {
|
|
@@ -17683,6 +17715,12 @@ var mqtt = (() => {
|
|
|
17683
17715
|
}
|
|
17684
17716
|
this.log = this.options.log || (0, debug_1.default)("mqttjs:client");
|
|
17685
17717
|
this.noop = this._noop.bind(this);
|
|
17718
|
+
this.log("MqttClient :: version:", "5.4.0");
|
|
17719
|
+
if (is_browser_1.isWebWorker) {
|
|
17720
|
+
this.log("MqttClient :: environment", "webworker");
|
|
17721
|
+
} else {
|
|
17722
|
+
this.log("MqttClient :: environment", is_browser_1.default ? "browser" : "node");
|
|
17723
|
+
}
|
|
17686
17724
|
this.log("MqttClient :: options.protocol", options.protocol);
|
|
17687
17725
|
this.log("MqttClient :: options.protocolVersion", options.protocolVersion);
|
|
17688
17726
|
this.log("MqttClient :: options.username", options.username);
|
|
@@ -17891,6 +17929,7 @@ var mqtt = (() => {
|
|
|
17891
17929
|
clearTimeout(this.connackTimer);
|
|
17892
17930
|
this.connackTimer = setTimeout(() => {
|
|
17893
17931
|
this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`");
|
|
17932
|
+
this.emit("error", new Error("connack timeout"));
|
|
17894
17933
|
this._cleanUp(true);
|
|
17895
17934
|
}, this.options.connectTimeout);
|
|
17896
17935
|
return this;
|
|
@@ -18581,6 +18620,7 @@ var mqtt = (() => {
|
|
|
18581
18620
|
this.pingResp = false;
|
|
18582
18621
|
this._sendPacket({ cmd: "pingreq" });
|
|
18583
18622
|
} else {
|
|
18623
|
+
this.emit("error", new Error("Keepalive timeout"));
|
|
18584
18624
|
this.log("_checkPing :: calling _cleanUp with force true");
|
|
18585
18625
|
this._cleanUp(true);
|
|
18586
18626
|
}
|
|
@@ -18735,9 +18775,9 @@ var mqtt = (() => {
|
|
|
18735
18775
|
var require_unique_message_id_provider = __commonJS({
|
|
18736
18776
|
"build/lib/unique-message-id-provider.js"(exports5) {
|
|
18737
18777
|
"use strict";
|
|
18738
|
-
init_dirname();
|
|
18739
18778
|
init_buffer2();
|
|
18740
18779
|
init_process2();
|
|
18780
|
+
init_navigator();
|
|
18741
18781
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
18742
18782
|
var number_allocator_1 = require_number_allocator2();
|
|
18743
18783
|
var UniqueMessageIdProvider = class {
|
|
@@ -18799,9 +18839,9 @@ var mqtt = (() => {
|
|
|
18799
18839
|
var t3, o3, n3, e3, r3, c3, s3, u3, a3, d2, h3, p3;
|
|
18800
18840
|
var init_chunk_924bb2e1 = __esm({
|
|
18801
18841
|
"node_modules/@jspm/core/nodelibs/browser/chunk-924bb2e1.js"() {
|
|
18802
|
-
init_dirname();
|
|
18803
18842
|
init_buffer2();
|
|
18804
18843
|
init_process2();
|
|
18844
|
+
init_navigator();
|
|
18805
18845
|
t3 = 2147483647;
|
|
18806
18846
|
o3 = /^xn--/;
|
|
18807
18847
|
n3 = /[^\0-\x7E]/;
|
|
@@ -18895,9 +18935,9 @@ var mqtt = (() => {
|
|
|
18895
18935
|
var n4, r4, t4, o4;
|
|
18896
18936
|
var init_chunk_b04e620d = __esm({
|
|
18897
18937
|
"node_modules/@jspm/core/nodelibs/browser/chunk-b04e620d.js"() {
|
|
18898
|
-
init_dirname();
|
|
18899
18938
|
init_buffer2();
|
|
18900
18939
|
init_process2();
|
|
18940
|
+
init_navigator();
|
|
18901
18941
|
n4 = function(n7, r7, t6, o7) {
|
|
18902
18942
|
r7 = r7 || "&", t6 = t6 || "=";
|
|
18903
18943
|
var a6 = {};
|
|
@@ -19003,9 +19043,9 @@ var mqtt = (() => {
|
|
|
19003
19043
|
var e5, t5, n5, r5, o5, l4, s4, f4, a4, T2;
|
|
19004
19044
|
var init_chunk_5decc758 = __esm({
|
|
19005
19045
|
"node_modules/@jspm/core/nodelibs/browser/chunk-5decc758.js"() {
|
|
19006
|
-
init_dirname();
|
|
19007
19046
|
init_buffer2();
|
|
19008
19047
|
init_process2();
|
|
19048
|
+
init_navigator();
|
|
19009
19049
|
r5 = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : global;
|
|
19010
19050
|
o5 = e5 = {};
|
|
19011
19051
|
!function() {
|
|
@@ -19233,9 +19273,9 @@ var mqtt = (() => {
|
|
|
19233
19273
|
var exports2, _dewExec2, _global, process2;
|
|
19234
19274
|
var init_chunk_2eac56ff = __esm({
|
|
19235
19275
|
"node_modules/@jspm/core/nodelibs/browser/chunk-2eac56ff.js"() {
|
|
19236
|
-
init_dirname();
|
|
19237
19276
|
init_buffer2();
|
|
19238
19277
|
init_process2();
|
|
19278
|
+
init_navigator();
|
|
19239
19279
|
exports2 = {};
|
|
19240
19280
|
_dewExec2 = false;
|
|
19241
19281
|
_global = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -19704,9 +19744,9 @@ var mqtt = (() => {
|
|
|
19704
19744
|
var exports$12, _dewExec3, exports3;
|
|
19705
19745
|
var init_chunk_23dbec7b = __esm({
|
|
19706
19746
|
"node_modules/@jspm/core/nodelibs/browser/chunk-23dbec7b.js"() {
|
|
19707
|
-
init_dirname();
|
|
19708
19747
|
init_buffer2();
|
|
19709
19748
|
init_process2();
|
|
19749
|
+
init_navigator();
|
|
19710
19750
|
init_chunk_2eac56ff();
|
|
19711
19751
|
exports$12 = {};
|
|
19712
19752
|
_dewExec3 = false;
|
|
@@ -20334,9 +20374,9 @@ var mqtt = (() => {
|
|
|
20334
20374
|
var h5, e6, a5, o6, n6, i5, l5, p5, c5, u5, f5, m3, v3, g2, y3, b2, exports4, _dewExec4, path, processPlatform$1, CHAR_BACKWARD_SLASH$1, CHAR_FORWARD_SLASH$1, CHAR_LOWERCASE_A$1, CHAR_LOWERCASE_Z$1, isWindows$1, forwardSlashRegEx$1, percentRegEx$1, backslashRegEx$1, newlineRegEx$1, carriageReturnRegEx$1, tabRegEx$1, processPlatform, Url, format, resolve, resolveObject, parse, _URL, CHAR_BACKWARD_SLASH, CHAR_FORWARD_SLASH, CHAR_LOWERCASE_A, CHAR_LOWERCASE_Z, isWindows, forwardSlashRegEx, percentRegEx, backslashRegEx, newlineRegEx, carriageReturnRegEx, tabRegEx;
|
|
20335
20375
|
var init_url = __esm({
|
|
20336
20376
|
"node_modules/@jspm/core/nodelibs/browser/url.js"() {
|
|
20337
|
-
init_dirname();
|
|
20338
20377
|
init_buffer2();
|
|
20339
20378
|
init_process2();
|
|
20379
|
+
init_navigator();
|
|
20340
20380
|
init_chunk_924bb2e1();
|
|
20341
20381
|
init_chunk_b04e620d();
|
|
20342
20382
|
init_chunk_5decc758();
|
|
@@ -20588,9 +20628,9 @@ var mqtt = (() => {
|
|
|
20588
20628
|
var net;
|
|
20589
20629
|
var init_net = __esm({
|
|
20590
20630
|
"node_modules/@jspm/core/nodelibs/browser/net.js"() {
|
|
20591
|
-
init_dirname();
|
|
20592
20631
|
init_buffer2();
|
|
20593
20632
|
init_process2();
|
|
20633
|
+
init_navigator();
|
|
20594
20634
|
net = {
|
|
20595
20635
|
_createServerHandle: unimplemented2,
|
|
20596
20636
|
_normalizeArgs: unimplemented2,
|
|
@@ -20612,9 +20652,9 @@ var mqtt = (() => {
|
|
|
20612
20652
|
var require_tcp = __commonJS({
|
|
20613
20653
|
"build/lib/connect/tcp.js"(exports5) {
|
|
20614
20654
|
"use strict";
|
|
20615
|
-
init_dirname();
|
|
20616
20655
|
init_buffer2();
|
|
20617
20656
|
init_process2();
|
|
20657
|
+
init_navigator();
|
|
20618
20658
|
var __importDefault = exports5 && exports5.__importDefault || function(mod) {
|
|
20619
20659
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
20620
20660
|
};
|
|
@@ -20642,9 +20682,9 @@ var mqtt = (() => {
|
|
|
20642
20682
|
var empty_default;
|
|
20643
20683
|
var init_empty = __esm({
|
|
20644
20684
|
"node_modules/esbuild-plugin-polyfill-node/polyfills/empty.js"() {
|
|
20645
|
-
init_dirname();
|
|
20646
20685
|
init_buffer2();
|
|
20647
20686
|
init_process2();
|
|
20687
|
+
init_navigator();
|
|
20648
20688
|
empty_default = {};
|
|
20649
20689
|
}
|
|
20650
20690
|
});
|
|
@@ -20653,9 +20693,9 @@ var mqtt = (() => {
|
|
|
20653
20693
|
var require_tls = __commonJS({
|
|
20654
20694
|
"build/lib/connect/tls.js"(exports5) {
|
|
20655
20695
|
"use strict";
|
|
20656
|
-
init_dirname();
|
|
20657
20696
|
init_buffer2();
|
|
20658
20697
|
init_process2();
|
|
20698
|
+
init_navigator();
|
|
20659
20699
|
var __importDefault = exports5 && exports5.__importDefault || function(mod) {
|
|
20660
20700
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
20661
20701
|
};
|
|
@@ -20698,9 +20738,9 @@ var mqtt = (() => {
|
|
|
20698
20738
|
var require_BufferedDuplex = __commonJS({
|
|
20699
20739
|
"build/lib/BufferedDuplex.js"(exports5) {
|
|
20700
20740
|
"use strict";
|
|
20701
|
-
init_dirname();
|
|
20702
20741
|
init_buffer2();
|
|
20703
20742
|
init_process2();
|
|
20743
|
+
init_navigator();
|
|
20704
20744
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
20705
20745
|
exports5.BufferedDuplex = exports5.writev = void 0;
|
|
20706
20746
|
var readable_stream_1 = require_browser3();
|
|
@@ -20773,9 +20813,9 @@ var mqtt = (() => {
|
|
|
20773
20813
|
var require_wx = __commonJS({
|
|
20774
20814
|
"build/lib/connect/wx.js"(exports5) {
|
|
20775
20815
|
"use strict";
|
|
20776
|
-
init_dirname();
|
|
20777
20816
|
init_buffer2();
|
|
20778
20817
|
init_process2();
|
|
20818
|
+
init_navigator();
|
|
20779
20819
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
20780
20820
|
var buffer_1 = (init_buffer(), __toCommonJS(buffer_exports));
|
|
20781
20821
|
var readable_stream_1 = require_browser3();
|
|
@@ -20894,9 +20934,9 @@ var mqtt = (() => {
|
|
|
20894
20934
|
var require_ali = __commonJS({
|
|
20895
20935
|
"build/lib/connect/ali.js"(exports5) {
|
|
20896
20936
|
"use strict";
|
|
20897
|
-
init_dirname();
|
|
20898
20937
|
init_buffer2();
|
|
20899
20938
|
init_process2();
|
|
20939
|
+
init_navigator();
|
|
20900
20940
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
20901
20941
|
var buffer_1 = (init_buffer(), __toCommonJS(buffer_exports));
|
|
20902
20942
|
var readable_stream_1 = require_browser3();
|
|
@@ -21007,9 +21047,9 @@ var mqtt = (() => {
|
|
|
21007
21047
|
var require_browser5 = __commonJS({
|
|
21008
21048
|
"node_modules/ws/browser.js"(exports5, module) {
|
|
21009
21049
|
"use strict";
|
|
21010
|
-
init_dirname();
|
|
21011
21050
|
init_buffer2();
|
|
21012
21051
|
init_process2();
|
|
21052
|
+
init_navigator();
|
|
21013
21053
|
module.exports = function() {
|
|
21014
21054
|
throw new Error(
|
|
21015
21055
|
"ws does not work in the browser. Browser clients must use the native WebSocket object"
|
|
@@ -21022,9 +21062,9 @@ var mqtt = (() => {
|
|
|
21022
21062
|
var require_ws = __commonJS({
|
|
21023
21063
|
"build/lib/connect/ws.js"(exports5) {
|
|
21024
21064
|
"use strict";
|
|
21025
|
-
init_dirname();
|
|
21026
21065
|
init_buffer2();
|
|
21027
21066
|
init_process2();
|
|
21067
|
+
init_navigator();
|
|
21028
21068
|
var __importDefault = exports5 && exports5.__importDefault || function(mod) {
|
|
21029
21069
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
21030
21070
|
};
|
|
@@ -21233,9 +21273,9 @@ var mqtt = (() => {
|
|
|
21233
21273
|
var require_connect = __commonJS({
|
|
21234
21274
|
"build/lib/connect/index.js"(exports5) {
|
|
21235
21275
|
"use strict";
|
|
21236
|
-
init_dirname();
|
|
21237
21276
|
init_buffer2();
|
|
21238
21277
|
init_process2();
|
|
21278
|
+
init_navigator();
|
|
21239
21279
|
var __importDefault = exports5 && exports5.__importDefault || function(mod) {
|
|
21240
21280
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
21241
21281
|
};
|
|
@@ -21404,9 +21444,9 @@ var mqtt = (() => {
|
|
|
21404
21444
|
var require_mqtt2 = __commonJS({
|
|
21405
21445
|
"build/mqtt.js"(exports5) {
|
|
21406
21446
|
"use strict";
|
|
21407
|
-
init_dirname();
|
|
21408
21447
|
init_buffer2();
|
|
21409
21448
|
init_process2();
|
|
21449
|
+
init_navigator();
|
|
21410
21450
|
var __createBinding = exports5 && exports5.__createBinding || (Object.create ? function(o7, m4, k2, k22) {
|
|
21411
21451
|
if (k22 === void 0)
|
|
21412
21452
|
k22 = k2;
|
|
@@ -21448,7 +21488,7 @@ var mqtt = (() => {
|
|
|
21448
21488
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
21449
21489
|
};
|
|
21450
21490
|
Object.defineProperty(exports5, "__esModule", { value: true });
|
|
21451
|
-
exports5.ReasonCodes = exports5.UniqueMessageIdProvider = exports5.DefaultMessageIdProvider = exports5.Store = exports5.MqttClient = exports5.connectAsync = exports5.connect = exports5.Client = void 0;
|
|
21491
|
+
exports5.ReasonCodes = exports5.PingTimer = exports5.UniqueMessageIdProvider = exports5.DefaultMessageIdProvider = exports5.Store = exports5.MqttClient = exports5.connectAsync = exports5.connect = exports5.Client = void 0;
|
|
21452
21492
|
var client_1 = __importDefault(require_client());
|
|
21453
21493
|
exports5.MqttClient = client_1.default;
|
|
21454
21494
|
var default_message_id_provider_1 = __importDefault(require_default_message_id_provider());
|
|
@@ -21462,6 +21502,8 @@ var mqtt = (() => {
|
|
|
21462
21502
|
Object.defineProperty(exports5, "connectAsync", { enumerable: true, get: function() {
|
|
21463
21503
|
return connect_1.connectAsync;
|
|
21464
21504
|
} });
|
|
21505
|
+
var PingTimer_1 = __importDefault(require_PingTimer());
|
|
21506
|
+
exports5.PingTimer = PingTimer_1.default;
|
|
21465
21507
|
exports5.Client = client_1.default;
|
|
21466
21508
|
__exportStar(require_client(), exports5);
|
|
21467
21509
|
__exportStar(require_shared(), exports5);
|
|
@@ -21475,9 +21517,9 @@ var mqtt = (() => {
|
|
|
21475
21517
|
// build/index.js
|
|
21476
21518
|
var require_build = __commonJS({
|
|
21477
21519
|
"build/index.js"(exports5) {
|
|
21478
|
-
init_dirname();
|
|
21479
21520
|
init_buffer2();
|
|
21480
21521
|
init_process2();
|
|
21522
|
+
init_navigator();
|
|
21481
21523
|
var __createBinding = exports5 && exports5.__createBinding || (Object.create ? function(o7, m4, k2, k22) {
|
|
21482
21524
|
if (k22 === void 0)
|
|
21483
21525
|
k22 = k2;
|