@push.rocks/smartsocket 3.0.0 → 4.0.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.
@@ -131,14 +131,14 @@ var require_dist_ts2 = __commonJS({
131
131
  }
132
132
  });
133
133
 
134
- // node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js
134
+ // node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.js
135
135
  var require_dayjs_min = __commonJS({
136
- "node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js"(exports, module) {
136
+ "node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.js"(exports, module) {
137
137
  !(function(t, e) {
138
138
  "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
139
139
  })(exports, (function() {
140
140
  "use strict";
141
- var t = 1e3, e = 6e4, n2 = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f2 = "quarter", h = "year", d2 = "date", l2 = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
141
+ var t = 1e3, e = 6e4, n2 = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f2 = "quarter", h2 = "year", d2 = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
142
142
  var e2 = ["th", "st", "nd", "rd"], n3 = t2 % 100;
143
143
  return "[" + t2 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
144
144
  } }, m2 = function(t2, e2, n3) {
@@ -154,7 +154,7 @@ var require_dayjs_min = __commonJS({
154
154
  }, a: function(t2) {
155
155
  return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
156
156
  }, p: function(t2) {
157
- return { M: c, y: h, w: o, d: a, D: d2, h: u, m: s, s: i, ms: r, Q: f2 }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
157
+ return { M: c, y: h2, w: o, d: a, D: d2, h: u, m: s, s: i, ms: r, Q: f2 }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
158
158
  }, u: function(t2) {
159
159
  return void 0 === t2;
160
160
  } }, g2 = "en", D2 = {};
@@ -208,7 +208,7 @@ var require_dayjs_min = __commonJS({
208
208
  }, m3.$utils = function() {
209
209
  return b2;
210
210
  }, m3.isValid = function() {
211
- return !(this.$d.toString() === l2);
211
+ return !(this.$d.toString() === l);
212
212
  }, m3.isSame = function(t2, e2) {
213
213
  var n3 = O2(t2);
214
214
  return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
@@ -223,20 +223,20 @@ var require_dayjs_min = __commonJS({
223
223
  }, m3.valueOf = function() {
224
224
  return this.$d.getTime();
225
225
  }, m3.startOf = function(t2, e2) {
226
- var n3 = this, r2 = !!b2.u(e2) || e2, f3 = b2.p(t2), l3 = function(t3, e3) {
226
+ var n3 = this, r2 = !!b2.u(e2) || e2, f3 = b2.p(t2), l2 = function(t3, e3) {
227
227
  var i2 = b2.w(n3.$u ? Date.UTC(n3.$y, e3, t3) : new Date(n3.$y, e3, t3), n3);
228
228
  return r2 ? i2 : i2.endOf(a);
229
229
  }, $2 = function(t3, e3) {
230
230
  return b2.w(n3.toDate()[t3].apply(n3.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
231
231
  }, y3 = this.$W, M3 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
232
232
  switch (f3) {
233
- case h:
234
- return r2 ? l3(1, 0) : l3(31, 11);
233
+ case h2:
234
+ return r2 ? l2(1, 0) : l2(31, 11);
235
235
  case c:
236
- return r2 ? l3(1, M3) : l3(0, M3 + 1);
236
+ return r2 ? l2(1, M3) : l2(0, M3 + 1);
237
237
  case o:
238
238
  var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
239
- return l3(r2 ? m4 - D3 : m4 + (6 - D3), M3);
239
+ return l2(r2 ? m4 - D3 : m4 + (6 - D3), M3);
240
240
  case a:
241
241
  case d2:
242
242
  return $2(v3 + "Hours", 0);
@@ -252,25 +252,25 @@ var require_dayjs_min = __commonJS({
252
252
  }, m3.endOf = function(t2) {
253
253
  return this.startOf(t2, false);
254
254
  }, m3.$set = function(t2, e2) {
255
- var n3, o2 = b2.p(t2), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a] = f3 + "Date", n3[d2] = f3 + "Date", n3[c] = f3 + "Month", n3[h] = f3 + "FullYear", n3[u] = f3 + "Hours", n3[s] = f3 + "Minutes", n3[i] = f3 + "Seconds", n3[r] = f3 + "Milliseconds", n3)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
256
- if (o2 === c || o2 === h) {
255
+ var n3, o2 = b2.p(t2), f3 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a] = f3 + "Date", n3[d2] = f3 + "Date", n3[c] = f3 + "Month", n3[h2] = f3 + "FullYear", n3[u] = f3 + "Hours", n3[s] = f3 + "Minutes", n3[i] = f3 + "Seconds", n3[r] = f3 + "Milliseconds", n3)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
256
+ if (o2 === c || o2 === h2) {
257
257
  var y3 = this.clone().set(d2, 1);
258
- y3.$d[l3]($2), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
259
- } else l3 && this.$d[l3]($2);
258
+ y3.$d[l2]($2), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
259
+ } else l2 && this.$d[l2]($2);
260
260
  return this.init(), this;
261
261
  }, m3.set = function(t2, e2) {
262
262
  return this.clone().$set(t2, e2);
263
263
  }, m3.get = function(t2) {
264
264
  return this[b2.p(t2)]();
265
265
  }, m3.add = function(r2, f3) {
266
- var d3, l3 = this;
266
+ var d3, l2 = this;
267
267
  r2 = Number(r2);
268
268
  var $2 = b2.p(f3), y3 = function(t2) {
269
- var e2 = O2(l3);
270
- return b2.w(e2.date(e2.date() + Math.round(t2 * r2)), l3);
269
+ var e2 = O2(l2);
270
+ return b2.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
271
271
  };
272
272
  if ($2 === c) return this.set(c, this.$M + r2);
273
- if ($2 === h) return this.set(h, this.$y + r2);
273
+ if ($2 === h2) return this.set(h2, this.$y + r2);
274
274
  if ($2 === a) return y3(1);
275
275
  if ($2 === o) return y3(7);
276
276
  var M3 = (d3 = {}, d3[s] = e, d3[u] = n2, d3[i] = t, d3)[$2] || 1, m4 = this.$d.getTime() + r2 * M3;
@@ -279,8 +279,8 @@ var require_dayjs_min = __commonJS({
279
279
  return this.add(-1 * t2, e2);
280
280
  }, m3.format = function(t2) {
281
281
  var e2 = this, n3 = this.$locale();
282
- if (!this.isValid()) return n3.invalidDate || l2;
283
- var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b2.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n3.weekdays, c2 = n3.months, f3 = n3.meridiem, h2 = function(t3, n4, i3, s3) {
282
+ if (!this.isValid()) return n3.invalidDate || l;
283
+ var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b2.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n3.weekdays, c2 = n3.months, f3 = n3.meridiem, h3 = function(t3, n4, i3, s3) {
284
284
  return t3 && (t3[n4] || t3(e2, r2)) || i3[n4].slice(0, s3);
285
285
  }, d3 = function(t3) {
286
286
  return b2.s(s2 % 12 || 12, t3, "0");
@@ -300,9 +300,9 @@ var require_dayjs_min = __commonJS({
300
300
  case "MM":
301
301
  return b2.s(a2 + 1, 2, "0");
302
302
  case "MMM":
303
- return h2(n3.monthsShort, a2, c2, 3);
303
+ return h3(n3.monthsShort, a2, c2, 3);
304
304
  case "MMMM":
305
- return h2(c2, a2);
305
+ return h3(c2, a2);
306
306
  case "D":
307
307
  return e2.$D;
308
308
  case "DD":
@@ -310,9 +310,9 @@ var require_dayjs_min = __commonJS({
310
310
  case "d":
311
311
  return String(e2.$W);
312
312
  case "dd":
313
- return h2(n3.weekdaysMin, e2.$W, o2, 2);
313
+ return h3(n3.weekdaysMin, e2.$W, o2, 2);
314
314
  case "ddd":
315
- return h2(n3.weekdaysShort, e2.$W, o2, 3);
315
+ return h3(n3.weekdaysShort, e2.$W, o2, 3);
316
316
  case "dddd":
317
317
  return o2[e2.$W];
318
318
  case "H":
@@ -345,12 +345,12 @@ var require_dayjs_min = __commonJS({
345
345
  }));
346
346
  }, m3.utcOffset = function() {
347
347
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
348
- }, m3.diff = function(r2, d3, l3) {
348
+ }, m3.diff = function(r2, d3, l2) {
349
349
  var $2, y3 = this, M3 = b2.p(d3), m4 = O2(r2), v3 = (m4.utcOffset() - this.utcOffset()) * e, g3 = this - m4, D3 = function() {
350
350
  return b2.m(y3, m4);
351
351
  };
352
352
  switch (M3) {
353
- case h:
353
+ case h2:
354
354
  $2 = D3() / 12;
355
355
  break;
356
356
  case c:
@@ -377,7 +377,7 @@ var require_dayjs_min = __commonJS({
377
377
  default:
378
378
  $2 = g3;
379
379
  }
380
- return l3 ? $2 : b2.a($2);
380
+ return l2 ? $2 : b2.a($2);
381
381
  }, m3.daysInMonth = function() {
382
382
  return this.endOf(c).$D;
383
383
  }, m3.$locale = function() {
@@ -397,9 +397,9 @@ var require_dayjs_min = __commonJS({
397
397
  }, m3.toString = function() {
398
398
  return this.$d.toUTCString();
399
399
  }, M2;
400
- })(), k = _2.prototype;
401
- return O2.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d2]].forEach((function(t2) {
402
- k[t2[1]] = function(e2) {
400
+ })(), k2 = _2.prototype;
401
+ return O2.prototype = k2, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h2], ["$D", d2]].forEach((function(t2) {
402
+ k2[t2[1]] = function(e2) {
403
403
  return this.$g(e2, t2[0], t2[1]);
404
404
  };
405
405
  })), O2.extend = function(t2, e2) {
@@ -411,9 +411,9 @@ var require_dayjs_min = __commonJS({
411
411
  }
412
412
  });
413
413
 
414
- // node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isToday.js
414
+ // node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isToday.js
415
415
  var require_isToday = __commonJS({
416
- "node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isToday.js"(exports, module) {
416
+ "node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isToday.js"(exports, module) {
417
417
  !(function(e, o) {
418
418
  "object" == typeof exports && "undefined" != typeof module ? module.exports = o() : "function" == typeof define && define.amd ? define(o) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_isToday = o();
419
419
  })(exports, (function() {
@@ -488,10 +488,10 @@ var require_TreePosition = __commonJS({
488
488
  var require_TreeIterator = __commonJS({
489
489
  "node_modules/.pnpm/symbol-tree@3.2.4/node_modules/symbol-tree/lib/TreeIterator.js"(exports, module) {
490
490
  "use strict";
491
- var TREE = Symbol();
492
- var ROOT = Symbol();
493
- var NEXT = Symbol();
494
- var ITERATE_FUNC = Symbol();
491
+ var TREE = /* @__PURE__ */ Symbol();
492
+ var ROOT = /* @__PURE__ */ Symbol();
493
+ var NEXT = /* @__PURE__ */ Symbol();
494
+ var ITERATE_FUNC = /* @__PURE__ */ Symbol();
495
495
  var TreeIterator = class {
496
496
  constructor(tree, root, firstResult, iterateFunction) {
497
497
  this[TREE] = tree;
@@ -2592,18 +2592,18 @@ function __generator(thisArg, body) {
2592
2592
  return { value: op[0] ? op[1] : void 0, done: true };
2593
2593
  }
2594
2594
  }
2595
- var __createBinding = Object.create ? (function(o, m2, k, k2) {
2596
- if (k2 === void 0) k2 = k;
2597
- var desc = Object.getOwnPropertyDescriptor(m2, k);
2595
+ var __createBinding = Object.create ? (function(o, m2, k2, k22) {
2596
+ if (k22 === void 0) k22 = k2;
2597
+ var desc = Object.getOwnPropertyDescriptor(m2, k2);
2598
2598
  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
2599
2599
  desc = { enumerable: true, get: function() {
2600
- return m2[k];
2600
+ return m2[k2];
2601
2601
  } };
2602
2602
  }
2603
- Object.defineProperty(o, k2, desc);
2604
- }) : (function(o, m2, k, k2) {
2605
- if (k2 === void 0) k2 = k;
2606
- o[k2] = m2[k];
2603
+ Object.defineProperty(o, k22, desc);
2604
+ }) : (function(o, m2, k2, k22) {
2605
+ if (k22 === void 0) k22 = k2;
2606
+ o[k22] = m2[k2];
2607
2607
  });
2608
2608
  function __exportStar(m2, o) {
2609
2609
  for (var p2 in m2) if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(o, p2)) __createBinding(o, m2, p2);
@@ -2643,13 +2643,13 @@ function __spread() {
2643
2643
  }
2644
2644
  function __spreadArrays() {
2645
2645
  for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
2646
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
2647
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
2648
- r[k] = a[j];
2646
+ for (var r = Array(s), k2 = 0, i = 0; i < il; i++)
2647
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k2++)
2648
+ r[k2] = a[j];
2649
2649
  return r;
2650
2650
  }
2651
2651
  function __spreadArray(to, from2, pack) {
2652
- if (pack || arguments.length === 2) for (var i = 0, l2 = from2.length, ar; i < l2; i++) {
2652
+ if (pack || arguments.length === 2) for (var i = 0, l = from2.length, ar; i < l; i++) {
2653
2653
  if (ar || !(i in from2)) {
2654
2654
  if (!ar) ar = Array.prototype.slice.call(from2, 0, i);
2655
2655
  ar[i] = from2[i];
@@ -2750,7 +2750,7 @@ var __setModuleDefault = Object.create ? (function(o, v2) {
2750
2750
  var ownKeys = function(o) {
2751
2751
  ownKeys = Object.getOwnPropertyNames || function(o2) {
2752
2752
  var ar = [];
2753
- for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
2753
+ for (var k2 in o2) if (Object.prototype.hasOwnProperty.call(o2, k2)) ar[ar.length] = k2;
2754
2754
  return ar;
2755
2755
  };
2756
2756
  return ownKeys(o);
@@ -2759,7 +2759,7 @@ function __importStar(mod) {
2759
2759
  if (mod && mod.__esModule) return mod;
2760
2760
  var result = {};
2761
2761
  if (mod != null) {
2762
- for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
2762
+ for (var k2 = ownKeys(mod), i = 0; i < k2.length; i++) if (k2[i] !== "default") __createBinding(result, mod, k2[i]);
2763
2763
  }
2764
2764
  __setModuleDefault(result, mod);
2765
2765
  return result;
@@ -5069,46 +5069,46 @@ __export(dist_ts_exports9, {
5069
5069
  units: () => units
5070
5070
  });
5071
5071
 
5072
- // node_modules/.pnpm/croner@9.0.0/node_modules/croner/dist/croner.js
5072
+ // node_modules/.pnpm/croner@9.1.0/node_modules/croner/dist/croner.js
5073
5073
  var croner_exports = {};
5074
5074
  __export(croner_exports, {
5075
- Cron: () => P,
5075
+ Cron: () => R,
5076
5076
  CronDate: () => f,
5077
5077
  CronPattern: () => d,
5078
- scheduledJobs: () => b
5078
+ scheduledJobs: () => y
5079
5079
  });
5080
- function l(n2, t, e, r, s, i, a, u) {
5081
- return l.fromTZ(l.tp(n2, t, e, r, s, i, a), u);
5080
+ function h(n2, t, e, r, s, i, a, l) {
5081
+ return h.fromTZ(h.tp(n2, t, e, r, s, i, a), l);
5082
5082
  }
5083
- l.fromTZISO = (n2, t, e) => l.fromTZ(R(n2, t), e);
5084
- l.fromTZ = function(n2, t) {
5083
+ h.fromTZISO = (n2, t, e) => h.fromTZ(k(n2, t), e);
5084
+ h.fromTZ = function(n2, t) {
5085
5085
  let e = new Date(Date.UTC(n2.y, n2.m - 1, n2.d, n2.h, n2.i, n2.s)), r = D(n2.tz, e), s = new Date(e.getTime() - r), i = D(n2.tz, s);
5086
5086
  if (i - r === 0) return s;
5087
5087
  {
5088
- let a = new Date(e.getTime() - i), u = D(n2.tz, a);
5089
- if (u - i === 0) return a;
5090
- if (!t && u - i > 0) return a;
5088
+ let a = new Date(e.getTime() - i), l = D(n2.tz, a);
5089
+ if (l - i === 0) return a;
5090
+ if (!t && l - i > 0) return a;
5091
5091
  if (t) throw new Error("Invalid date passed to fromTZ()");
5092
5092
  return s;
5093
5093
  }
5094
5094
  };
5095
- l.toTZ = function(n2, t) {
5095
+ h.toTZ = function(n2, t) {
5096
5096
  let e = n2.toLocaleString("en-US", { timeZone: t }).replace(/[\u202f]/, " "), r = new Date(e);
5097
5097
  return { y: r.getFullYear(), m: r.getMonth() + 1, d: r.getDate(), h: r.getHours(), i: r.getMinutes(), s: r.getSeconds(), tz: t };
5098
5098
  };
5099
- l.tp = (n2, t, e, r, s, i, a) => ({ y: n2, m: t, d: e, h: r, i: s, s: i, tz: a });
5099
+ h.tp = (n2, t, e, r, s, i, a) => ({ y: n2, m: t, d: e, h: r, i: s, s: i, tz: a });
5100
5100
  function D(n2, t = /* @__PURE__ */ new Date()) {
5101
5101
  let e = t.toLocaleString("en-US", { timeZone: n2, timeZoneName: "shortOffset" }).split(" ").slice(-1)[0], r = t.toLocaleString("en-US").replace(/[\u202f]/, " ");
5102
5102
  return Date.parse(`${r} GMT`) - Date.parse(`${r} ${e}`);
5103
5103
  }
5104
- function R(n2, t) {
5104
+ function k(n2, t) {
5105
5105
  let e = new Date(Date.parse(n2));
5106
5106
  if (isNaN(e)) throw new Error("minitz: Invalid ISO8601 passed to parser.");
5107
5107
  let r = n2.substring(9);
5108
- return n2.includes("Z") || r.includes("-") || r.includes("+") ? l.tp(e.getUTCFullYear(), e.getUTCMonth() + 1, e.getUTCDate(), e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), "Etc/UTC") : l.tp(e.getFullYear(), e.getMonth() + 1, e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), t);
5108
+ return n2.includes("Z") || r.includes("-") || r.includes("+") ? h.tp(e.getUTCFullYear(), e.getUTCMonth() + 1, e.getUTCDate(), e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), "Etc/UTC") : h.tp(e.getFullYear(), e.getMonth() + 1, e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), t);
5109
5109
  }
5110
- l.minitz = l;
5111
- var y = 32, g = 31 | y, v = [1, 2, 4, 8, 16], d = class {
5110
+ h.minitz = h;
5111
+ var b = 32, p = 31 | b, v = [1, 2, 4, 8, 16], d = class {
5112
5112
  pattern;
5113
5113
  timezone;
5114
5114
  second;
@@ -5132,14 +5132,14 @@ var y = 32, g = 31 | y, v = [1, 2, 4, 8, 16], d = class {
5132
5132
  let e = new f(/* @__PURE__ */ new Date(), this.timezone).getDate(true);
5133
5133
  t[0] = t[0].replace("?", e.getSeconds().toString()), t[1] = t[1].replace("?", e.getMinutes().toString()), t[2] = t[2].replace("?", e.getHours().toString()), this.starDOM || (t[3] = t[3].replace("?", e.getDate().toString())), t[4] = t[4].replace("?", (e.getMonth() + 1).toString()), this.starDOW || (t[5] = t[5].replace("?", e.getDay().toString()));
5134
5134
  }
5135
- this.throwAtIllegalCharacters(t), this.partToArray("second", t[0], 0, 1), this.partToArray("minute", t[1], 0, 1), this.partToArray("hour", t[2], 0, 1), this.partToArray("day", t[3], -1, 1), this.partToArray("month", t[4], -1, 1), this.partToArray("dayOfWeek", t[5], 0, g), this.dayOfWeek[7] && (this.dayOfWeek[0] = this.dayOfWeek[7]);
5135
+ this.throwAtIllegalCharacters(t), this.partToArray("second", t[0], 0, 1), this.partToArray("minute", t[1], 0, 1), this.partToArray("hour", t[2], 0, 1), this.partToArray("day", t[3], -1, 1), this.partToArray("month", t[4], -1, 1), this.partToArray("dayOfWeek", t[5], 0, p), this.dayOfWeek[7] && (this.dayOfWeek[0] = this.dayOfWeek[7]);
5136
5136
  }
5137
5137
  partToArray(t, e, r, s) {
5138
5138
  let i = this[t], a = t === "day" && this.lastDayOfMonth;
5139
5139
  if (e === "" && !a) throw new TypeError("CronPattern: configuration entry " + t + " (" + e + ") is empty, check for trailing spaces.");
5140
5140
  if (e === "*") return i.fill(s);
5141
- let u = e.split(",");
5142
- if (u.length > 1) for (let o = 0; o < u.length; o++) this.partToArray(t, u[o], r, s);
5141
+ let l = e.split(",");
5142
+ if (l.length > 1) for (let o = 0; o < l.length; o++) this.partToArray(t, l[o], r, s);
5143
5143
  else e.indexOf("-") !== -1 && e.indexOf("/") !== -1 ? this.handleRangeWithStepping(e, t, r, s) : e.indexOf("-") !== -1 ? this.handleRange(e, t, r, s) : e.indexOf("/") !== -1 ? this.handleStepping(e, t, r, s) : e !== "" && this.handleNumber(e, t, r, s);
5144
5144
  }
5145
5145
  throwAtIllegalCharacters(t) {
@@ -5169,7 +5169,7 @@ var y = 32, g = 31 | y, v = [1, 2, 4, 8, 16], d = class {
5169
5169
  handleRangeWithStepping(t, e, r, s) {
5170
5170
  let i = this.extractNth(t, e), a = i[0].match(/^(\d+)-(\d+)\/(\d+)$/);
5171
5171
  if (a === null) throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '" + t + "'");
5172
- let [, u, o, h] = a, c = parseInt(u, 10) + r, w = parseInt(o, 10) + r, C = parseInt(h, 10);
5172
+ let [, l, o, u] = a, c = parseInt(l, 10) + r, w = parseInt(o, 10) + r, C = parseInt(u, 10);
5173
5173
  if (isNaN(c)) throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");
5174
5174
  if (isNaN(w)) throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");
5175
5175
  if (isNaN(C)) throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");
@@ -5189,23 +5189,23 @@ var y = 32, g = 31 | y, v = [1, 2, 4, 8, 16], d = class {
5189
5189
  handleRange(t, e, r, s) {
5190
5190
  let i = this.extractNth(t, e), a = i[0].split("-");
5191
5191
  if (a.length !== 2) throw new TypeError("CronPattern: Syntax error, illegal range: '" + t + "'");
5192
- let u = parseInt(a[0], 10) + r, o = parseInt(a[1], 10) + r;
5193
- if (isNaN(u)) throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");
5192
+ let l = parseInt(a[0], 10) + r, o = parseInt(a[1], 10) + r;
5193
+ if (isNaN(l)) throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");
5194
5194
  if (isNaN(o)) throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");
5195
- if (u > o) throw new TypeError("CronPattern: From value is larger than to value: '" + t + "'");
5196
- for (let h = u; h <= o; h++) this.setPart(e, h, i[1] || s);
5195
+ if (l > o) throw new TypeError("CronPattern: From value is larger than to value: '" + t + "'");
5196
+ for (let u = l; u <= o; u++) this.setPart(e, u, i[1] || s);
5197
5197
  }
5198
5198
  handleStepping(t, e, r, s) {
5199
5199
  let i = this.extractNth(t, e), a = i[0].split("/");
5200
5200
  if (a.length !== 2) throw new TypeError("CronPattern: Syntax error, illegal stepping: '" + t + "'");
5201
5201
  a[0] === "" && (a[0] = "*");
5202
- let u = 0;
5203
- a[0] !== "*" && (u = parseInt(a[0], 10) + r);
5202
+ let l = 0;
5203
+ a[0] !== "*" && (l = parseInt(a[0], 10) + r);
5204
5204
  let o = parseInt(a[1], 10);
5205
5205
  if (isNaN(o)) throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");
5206
5206
  if (o === 0) throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");
5207
5207
  if (o > this[e].length) throw new TypeError("CronPattern: Syntax error, max steps for part is (" + this[e].length + ")");
5208
- for (let h = u; h < this[e].length; h += o) this.setPart(e, h, i[1] || s);
5208
+ for (let u = l; u < this[e].length; u += o) this.setPart(e, u, i[1] || s);
5209
5209
  }
5210
5210
  replaceAlphaDays(t) {
5211
5211
  return t.replace(/-sun/gi, "-7").replace(/sun/gi, "0").replace(/mon/gi, "1").replace(/tue/gi, "2").replace(/wed/gi, "3").replace(/thu/gi, "4").replace(/fri/gi, "5").replace(/sat/gi, "6");
@@ -5218,8 +5218,8 @@ var y = 32, g = 31 | y, v = [1, 2, 4, 8, 16], d = class {
5218
5218
  return e === "@yearly" || e === "@annually" ? "0 0 1 1 *" : e === "@monthly" ? "0 0 1 * *" : e === "@weekly" ? "0 0 * * 0" : e === "@daily" ? "0 0 * * *" : e === "@hourly" ? "0 * * * *" : t;
5219
5219
  }
5220
5220
  setNthWeekdayOfMonth(t, e) {
5221
- if (typeof e != "number" && e === "L") this.dayOfWeek[t] = this.dayOfWeek[t] | y;
5222
- else if (e === g) this.dayOfWeek[t] = g;
5221
+ if (typeof e != "number" && e === "L") this.dayOfWeek[t] = this.dayOfWeek[t] | b;
5222
+ else if (e === p) this.dayOfWeek[t] = p;
5223
5223
  else if (e < 6 && e > 0) this.dayOfWeek[t] = this.dayOfWeek[t] | v[e - 1];
5224
5224
  else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`);
5225
5225
  }
@@ -5242,12 +5242,12 @@ var O = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], m = [["month", "year",
5242
5242
  else throw new TypeError("CronDate: Invalid type (" + typeof t + ") passed to CronDate constructor");
5243
5243
  }
5244
5244
  isNthWeekdayOfMonth(t, e, r, s) {
5245
- let a = new Date(Date.UTC(t, e, r)).getUTCDay(), u = 0;
5246
- for (let o = 1; o <= r; o++) new Date(Date.UTC(t, e, o)).getUTCDay() === a && u++;
5247
- if (s & g && v[u - 1] & s) return true;
5248
- if (s & y) {
5245
+ let a = new Date(Date.UTC(t, e, r)).getUTCDay(), l = 0;
5246
+ for (let o = 1; o <= r; o++) new Date(Date.UTC(t, e, o)).getUTCDay() === a && l++;
5247
+ if (s & p && v[l - 1] & s) return true;
5248
+ if (s & b) {
5249
5249
  let o = new Date(Date.UTC(t, e + 1, 0)).getUTCDate();
5250
- for (let h = r + 1; h <= o; h++) if (new Date(Date.UTC(t, e, h)).getUTCDay() === a) return false;
5250
+ for (let u = r + 1; u <= o; u++) if (new Date(Date.UTC(t, e, u)).getUTCDay() === a) return false;
5251
5251
  return true;
5252
5252
  }
5253
5253
  return false;
@@ -5255,7 +5255,7 @@ var O = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], m = [["month", "year",
5255
5255
  fromDate(t) {
5256
5256
  if (this.tz !== void 0) if (typeof this.tz == "number") this.ms = t.getUTCMilliseconds(), this.second = t.getUTCSeconds(), this.minute = t.getUTCMinutes() + this.tz, this.hour = t.getUTCHours(), this.day = t.getUTCDate(), this.month = t.getUTCMonth(), this.year = t.getUTCFullYear(), this.apply();
5257
5257
  else {
5258
- let e = l.toTZ(t, this.tz);
5258
+ let e = h.toTZ(t, this.tz);
5259
5259
  this.ms = t.getMilliseconds(), this.second = e.s, this.minute = e.i, this.hour = e.h, this.day = e.d, this.month = e.m - 1, this.year = e.y;
5260
5260
  }
5261
5261
  else this.ms = t.getMilliseconds(), this.second = t.getSeconds(), this.minute = t.getMinutes(), this.hour = t.getHours(), this.day = t.getDate(), this.month = t.getMonth(), this.year = t.getFullYear();
@@ -5271,23 +5271,23 @@ var O = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], m = [["month", "year",
5271
5271
  }
5272
5272
  fromString(t) {
5273
5273
  if (typeof this.tz == "number") {
5274
- let e = l.fromTZISO(t);
5274
+ let e = h.fromTZISO(t);
5275
5275
  this.ms = e.getUTCMilliseconds(), this.second = e.getUTCSeconds(), this.minute = e.getUTCMinutes(), this.hour = e.getUTCHours(), this.day = e.getUTCDate(), this.month = e.getUTCMonth(), this.year = e.getUTCFullYear(), this.apply();
5276
- } else return this.fromDate(l.fromTZISO(t, this.tz));
5276
+ } else return this.fromDate(h.fromTZISO(t, this.tz));
5277
5277
  }
5278
5278
  findNext(t, e, r, s) {
5279
5279
  let i = this[e], a;
5280
5280
  r.lastDayOfMonth && (this.month !== 1 ? a = O[this.month] : a = new Date(Date.UTC(this.year, this.month + 1, 0, 0, 0, 0, 0)).getUTCDate());
5281
- let u = !r.starDOW && e == "day" ? new Date(Date.UTC(this.year, this.month, 1, 0, 0, 0, 0)).getUTCDay() : void 0;
5281
+ let l = !r.starDOW && e == "day" ? new Date(Date.UTC(this.year, this.month, 1, 0, 0, 0, 0)).getUTCDay() : void 0;
5282
5282
  for (let o = this[e] + s; o < r[e].length; o++) {
5283
- let h = r[e][o];
5284
- if (e === "day" && r.lastDayOfMonth && o - s == a && (h = 1), e === "day" && !r.starDOW) {
5285
- let c = r.dayOfWeek[(u + (o - s - 1)) % 7];
5286
- if (c && c & g) c = this.isNthWeekdayOfMonth(this.year, this.month, o - s, c) ? 1 : 0;
5283
+ let u = r[e][o];
5284
+ if (e === "day" && r.lastDayOfMonth && o - s == a && (u = 1), e === "day" && !r.starDOW) {
5285
+ let c = r.dayOfWeek[(l + (o - s - 1)) % 7];
5286
+ if (c && c & p) c = this.isNthWeekdayOfMonth(this.year, this.month, o - s, c) ? 1 : 0;
5287
5287
  else if (c) throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${c}`);
5288
- t.legacyMode && !r.starDOM ? h = h || c : h = h && c;
5288
+ t.legacyMode && !r.starDOM ? u = u || c : u = u && c;
5289
5289
  }
5290
- if (h) return this[e] = o - s, i !== this[e] ? 2 : 1;
5290
+ if (u) return this[e] = o - s, i !== this[e] ? 2 : 1;
5291
5291
  }
5292
5292
  return 3;
5293
5293
  }
@@ -5305,7 +5305,7 @@ var O = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], m = [["month", "year",
5305
5305
  return this.second += e.interval !== void 0 && e.interval > 1 && r ? e.interval : 1, this.ms = 0, this.apply(), this.recurse(t, e, 0);
5306
5306
  }
5307
5307
  getDate(t) {
5308
- return t || this.tz === void 0 ? new Date(this.year, this.month, this.day, this.hour, this.minute, this.second, this.ms) : typeof this.tz == "number" ? new Date(Date.UTC(this.year, this.month, this.day, this.hour, this.minute - this.tz, this.second, this.ms)) : l.fromTZ(l.tp(this.year, this.month + 1, this.day, this.hour, this.minute, this.second, this.tz), false);
5308
+ return t || this.tz === void 0 ? new Date(this.year, this.month, this.day, this.hour, this.minute, this.second, this.ms) : typeof this.tz == "number" ? new Date(Date.UTC(this.year, this.month, this.day, this.hour, this.minute - this.tz, this.second, this.ms)) : h.fromTZ(h.tp(this.year, this.month + 1, this.day, this.hour, this.minute, this.second, this.tz), false);
5309
5309
  }
5310
5310
  getTime() {
5311
5311
  return this.getDate(false).getTime();
@@ -5324,30 +5324,33 @@ function N(n2) {
5324
5324
  if (n2.unref !== true && n2.unref !== false) throw new Error("CronOptions: Unref should be either true, false or undefined(false).");
5325
5325
  return n2;
5326
5326
  }
5327
- function p(n2) {
5327
+ function g(n2) {
5328
5328
  return Object.prototype.toString.call(n2) === "[object Function]" || typeof n2 == "function" || n2 instanceof Function;
5329
5329
  }
5330
5330
  function S(n2) {
5331
+ return g(n2);
5332
+ }
5333
+ function P(n2) {
5331
5334
  typeof Deno < "u" && typeof Deno.unrefTimer < "u" ? Deno.unrefTimer(n2) : n2 && typeof n2.unref < "u" && n2.unref();
5332
5335
  }
5333
- var _ = 30 * 1e3, b = [], P = class {
5336
+ var _ = 30 * 1e3, y = [], R = class {
5334
5337
  name;
5335
5338
  options;
5336
5339
  _states;
5337
5340
  fn;
5338
5341
  constructor(t, e, r) {
5339
5342
  let s, i;
5340
- if (p(e)) i = e;
5343
+ if (g(e)) i = e;
5341
5344
  else if (typeof e == "object") s = e;
5342
5345
  else if (e !== void 0) throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");
5343
- if (p(r)) i = r;
5346
+ if (g(r)) i = r;
5344
5347
  else if (typeof r == "object") s = r;
5345
5348
  else if (r !== void 0) throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");
5346
5349
  if (this.name = s?.name, this.options = N(s), this._states = { kill: false, blocking: false, previousRun: void 0, currentRun: void 0, once: void 0, currentTimeout: void 0, maxRuns: s ? s.maxRuns : void 0, paused: s ? s.paused : false, pattern: new d("* * * * *") }, t && (t instanceof Date || typeof t == "string" && t.indexOf(":") > 0) ? this._states.once = new f(t, this.options.timezone || this.options.utcOffset) : this._states.pattern = new d(t, this.options.timezone), this.name) {
5347
- if (b.find((u) => u.name === this.name)) throw new Error("Cron: Tried to initialize new named job '" + this.name + "', but name already taken.");
5348
- b.push(this);
5350
+ if (y.find((l) => l.name === this.name)) throw new Error("Cron: Tried to initialize new named job '" + this.name + "', but name already taken.");
5351
+ y.push(this);
5349
5352
  }
5350
- return i !== void 0 && p(i) && (this.fn = i, this.schedule()), this;
5353
+ return i !== void 0 && S(i) && (this.fn = i, this.schedule()), this;
5351
5354
  }
5352
5355
  nextRun(t) {
5353
5356
  let e = this._next(t);
@@ -5379,14 +5382,13 @@ var _ = 30 * 1e3, b = [], P = class {
5379
5382
  return this._states.previousRun ? this._states.previousRun.getDate() : null;
5380
5383
  }
5381
5384
  msToNext(t) {
5382
- t = t || /* @__PURE__ */ new Date();
5383
5385
  let e = this._next(t);
5384
5386
  return e ? t instanceof f || t instanceof Date ? e.getTime() - t.getTime() : e.getTime() - new f(t).getTime() : null;
5385
5387
  }
5386
5388
  stop() {
5387
5389
  this._states.kill = true, this._states.currentTimeout && clearTimeout(this._states.currentTimeout);
5388
- let t = b.indexOf(this);
5389
- t >= 0 && b.splice(t, 1);
5390
+ let t = y.indexOf(this);
5391
+ t >= 0 && y.splice(t, 1);
5390
5392
  }
5391
5393
  pause() {
5392
5394
  return this._states.paused = true, !this._states.kill;
@@ -5398,13 +5400,13 @@ var _ = 30 * 1e3, b = [], P = class {
5398
5400
  if (t && this.fn) throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");
5399
5401
  t && (this.fn = t);
5400
5402
  let e = this.msToNext(), r = this.nextRun(this._states.currentRun);
5401
- return e == null || isNaN(e) || r === null ? this : (e > _ && (e = _), this._states.currentTimeout = setTimeout(() => this._checkTrigger(r), e), this._states.currentTimeout && this.options.unref && S(this._states.currentTimeout), this);
5403
+ return e == null || isNaN(e) || r === null ? this : (e > _ && (e = _), this._states.currentTimeout = setTimeout(() => this._checkTrigger(r), e), this._states.currentTimeout && this.options.unref && P(this._states.currentTimeout), this);
5402
5404
  }
5403
5405
  async _trigger(t) {
5404
5406
  if (this._states.blocking = true, this._states.currentRun = new f(void 0, this.options.timezone || this.options.utcOffset), this.options.catch) try {
5405
5407
  this.fn !== void 0 && await this.fn(this, this.options.context);
5406
5408
  } catch (e) {
5407
- p(this.options.catch) && this.options.catch(e, this);
5409
+ g(this.options.catch) && this.options.catch(e, this);
5408
5410
  }
5409
5411
  else this.fn !== void 0 && await this.fn(this, this.options.context);
5410
5412
  this._states.previousRun = new f(t, this.options.timezone || this.options.utcOffset), this._states.blocking = false;
@@ -5417,7 +5419,7 @@ var _ = 30 * 1e3, b = [], P = class {
5417
5419
  }
5418
5420
  _checkTrigger(t) {
5419
5421
  let e = /* @__PURE__ */ new Date(), r = !this._states.paused && e.getTime() >= t.getTime(), s = this._states.blocking && this.options.protect;
5420
- r && !s ? (this._states.maxRuns !== void 0 && this._states.maxRuns--, this._trigger()) : r && s && p(this.options.protect) && setTimeout(() => this.options.protect(this), 0), this.schedule();
5422
+ r && !s ? (this._states.maxRuns !== void 0 && this._states.maxRuns--, this._trigger()) : r && s && g(this.options.protect) && setTimeout(() => this.options.protect(this), 0), this.schedule();
5421
5423
  }
5422
5424
  _next(t) {
5423
5425
  let e = !!(t || this._states.currentRun), r = false;
@@ -5716,7 +5718,7 @@ var secondsInWeek = secondsInDay * 7;
5716
5718
  var secondsInYear = secondsInDay * daysInYear;
5717
5719
  var secondsInMonth = secondsInYear / 12;
5718
5720
  var secondsInQuarter = secondsInMonth * 3;
5719
- var constructFromSymbol = Symbol.for("constructDateFrom");
5721
+ var constructFromSymbol = /* @__PURE__ */ Symbol.for("constructDateFrom");
5720
5722
 
5721
5723
  // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js
5722
5724
  function constructFrom(date, value) {
@@ -11786,7 +11788,7 @@ function parseMilliseconds(milliseconds2) {
11786
11788
  throw new TypeError("Expected a finite number or bigint");
11787
11789
  }
11788
11790
 
11789
- // node_modules/.pnpm/pretty-ms@9.2.0/node_modules/pretty-ms/index.js
11791
+ // node_modules/.pnpm/pretty-ms@9.3.0/node_modules/pretty-ms/index.js
11790
11792
  var isZero = (value) => value === 0 || value === 0n;
11791
11793
  var pluralize = (word, count2) => count2 === 1 || count2 === 1n ? word : `${word}s`;
11792
11794
  var SECOND_ROUNDING_EPSILON = 1e-7;
@@ -11845,7 +11847,7 @@ function prettyMilliseconds(milliseconds2, options) {
11845
11847
  }
11846
11848
  add2(Number(parsed.minutes), "minute", "m");
11847
11849
  if (!options.hideSeconds) {
11848
- if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds2 < 1e3) {
11850
+ if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds2 < 1e3 && !options.subSecondsAsDecimals) {
11849
11851
  const seconds = Number(parsed.seconds);
11850
11852
  const milliseconds3 = Number(parsed.milliseconds);
11851
11853
  const microseconds = Number(parsed.microseconds);
@@ -14739,6 +14741,9 @@ var SocketRequest = class {
14739
14741
  };
14740
14742
  this.originSocketConnection.sendMessage(message2);
14741
14743
  this.smartsocketRef.socketRequests.remove(this);
14744
+ }).catch((error) => {
14745
+ logger.log("error", `Function invocation failed for ${this.funcCallData.funcName}: ${error instanceof Error ? error.message : String(error)}`);
14746
+ this.smartsocketRef.socketRequests.remove(this);
14742
14747
  });
14743
14748
  }
14744
14749
  };
@@ -14808,10 +14813,15 @@ var SmartsocketClient2 = class {
14808
14813
  this.socketFunctions.add(socketFunction);
14809
14814
  }
14810
14815
  isReconnecting = false;
14816
+ isConnecting = false;
14811
14817
  /**
14812
14818
  * connect the client to the server
14813
14819
  */
14814
14820
  async connect() {
14821
+ if (this.isConnecting) {
14822
+ return;
14823
+ }
14824
+ this.isConnecting = true;
14815
14825
  if (!this.isReconnecting) {
14816
14826
  this.currentRetryCount = 0;
14817
14827
  this.currentBackoffDelay = this.initialBackoffDelay;
@@ -14894,6 +14904,7 @@ var SmartsocketClient2 = class {
14894
14904
  await this.addTag(oldTagStore[tag]);
14895
14905
  }
14896
14906
  this.updateStatus("connected");
14907
+ this.isConnecting = false;
14897
14908
  done.resolve();
14898
14909
  break;
14899
14910
  default:
@@ -14933,6 +14944,7 @@ var SmartsocketClient2 = class {
14933
14944
  return;
14934
14945
  }
14935
14946
  this.disconnectRunning = true;
14947
+ this.isConnecting = false;
14936
14948
  this.updateStatus("disconnecting");
14937
14949
  this.tagStoreSubscription?.unsubscribe();
14938
14950
  const socketToClose = this.currentSocket;
@@ -15172,16 +15184,15 @@ var SocketConnection2 = class {
15172
15184
  await done.promise;
15173
15185
  }
15174
15186
  /**
15175
- * gets a tag by id
15176
- * @param tagIdArg
15187
+ * Gets a tag by id
15177
15188
  */
15178
- async getTagById(tagIdArg) {
15189
+ getTagById(tagIdArg) {
15179
15190
  return this.tagStore[tagIdArg];
15180
15191
  }
15181
15192
  /**
15182
- * removes a tag from a connection
15193
+ * Removes a tag from a connection
15183
15194
  */
15184
- async removeTagById(tagIdArg) {
15195
+ removeTagById(tagIdArg) {
15185
15196
  delete this.tagStore[tagIdArg];
15186
15197
  this.tagStoreObservable.next(this.tagStore);
15187
15198
  this.sendMessage({
@@ -15222,6 +15233,7 @@ var SocketConnection2 = class {
15222
15233
  }
15223
15234
  }
15224
15235
  } catch (err) {
15236
+ logger.log("warn", `Failed to parse auth message: ${err instanceof Error ? err.message : String(err)}`);
15225
15237
  }
15226
15238
  };
15227
15239
  this.socket.addEventListener("message", messageHandler);
@@ -15247,6 +15259,7 @@ var SocketConnection2 = class {
15247
15259
  const message2 = JSON.parse(data);
15248
15260
  this.handleMessage(message2);
15249
15261
  } catch (err) {
15262
+ logger.log("warn", `Failed to parse socket message: ${err instanceof Error ? err.message : String(err)}`);
15250
15263
  }
15251
15264
  };
15252
15265
  this.socket.addEventListener("message", messageHandler);
@@ -15412,7 +15425,9 @@ var SocketServer = class {
15412
15425
  }
15413
15426
  });
15414
15427
  return {
15415
- readyState: peer.readyState,
15428
+ get readyState() {
15429
+ return peer.readyState;
15430
+ },
15416
15431
  send: (data) => peer.send(data),
15417
15432
  close: (code, reason) => peer.close(code, reason),
15418
15433
  addEventListener: (event, listener) => {