@camstack/system 1.2.415 → 1.2.417

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.
Files changed (103) hide show
  1. package/dist/addon-runner.js +9969 -27
  2. package/dist/addon-runner.mjs +9930 -9
  3. package/dist/addon-utils.js +19 -20
  4. package/dist/addon-utils.mjs +1 -2
  5. package/dist/auth/auth-audit-log.d.ts +1 -1
  6. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  7. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  8. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  9. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  10. package/dist/builtins/alerts/alerts.addon.js +1 -1
  11. package/dist/builtins/alerts/alerts.addon.mjs +1 -1
  12. package/dist/builtins/autotrack/index.js +1 -1
  13. package/dist/builtins/autotrack/index.mjs +1 -1
  14. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  15. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  16. package/dist/builtins/calendars/calendars.addon.js +1 -1
  17. package/dist/builtins/calendars/calendars.addon.mjs +1 -1
  18. package/dist/builtins/camera-grid/index.js +1 -1
  19. package/dist/builtins/camera-grid/index.mjs +1 -1
  20. package/dist/builtins/composer/composer.addon.js +2 -2
  21. package/dist/builtins/composer/composer.addon.mjs +2 -2
  22. package/dist/builtins/console-logging/index.js +1 -1
  23. package/dist/builtins/console-logging/index.mjs +1 -1
  24. package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
  25. package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
  26. package/dist/builtins/device-manager/device-manager.addon.js +2 -2
  27. package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
  28. package/dist/builtins/hub-forwarder/index.js +1 -1
  29. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  30. package/dist/builtins/keychain/index.js +3 -3
  31. package/dist/builtins/keychain/index.mjs +3 -3
  32. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  33. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  34. package/dist/builtins/local-auth/local-auth.addon.js +12 -9
  35. package/dist/builtins/local-auth/local-auth.addon.mjs +7 -4
  36. package/dist/builtins/local-network/hub-mdns-ciao.d.ts +7 -0
  37. package/dist/builtins/local-network/hub-mdns.d.ts +58 -0
  38. package/dist/builtins/local-network/local-network.addon.d.ts +11 -0
  39. package/dist/builtins/local-network/local-network.addon.js +194 -3
  40. package/dist/builtins/local-network/local-network.addon.mjs +195 -3
  41. package/dist/builtins/loki-logging/index.js +1 -1
  42. package/dist/builtins/loki-logging/index.mjs +1 -1
  43. package/dist/builtins/native-metrics/native-metrics.addon.js +102 -10
  44. package/dist/builtins/native-metrics/native-metrics.addon.mjs +92 -4
  45. package/dist/builtins/platform-probe/index.js +1 -1
  46. package/dist/builtins/platform-probe/index.mjs +1 -1
  47. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  48. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  49. package/dist/builtins/snapshot/index.js +1 -1
  50. package/dist/builtins/snapshot/index.mjs +1 -1
  51. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  52. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  53. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
  54. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
  55. package/dist/builtins/storage-orchestrator/index.mjs +1 -1
  56. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +84 -5
  57. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +80 -5
  58. package/dist/builtins/system-config/system-config.addon.js +80 -785
  59. package/dist/builtins/system-config/system-config.addon.mjs +52 -757
  60. package/dist/builtins/winston-logging/index.js +1 -1
  61. package/dist/builtins/winston-logging/index.mjs +1 -1
  62. package/dist/{composition-sources-YlkCjf-1.js → composition-sources-ChAX2Kdo.js} +1 -1
  63. package/dist/{composition-sources-CXxkMoXq.mjs → composition-sources-CndJVssc.mjs} +1 -1
  64. package/dist/{constants-BT-fudVK.mjs → constants-BzxwnfDc.mjs} +1 -1
  65. package/dist/{constants-DChnQrhM.js → constants-VXvZkGgw.js} +1 -1
  66. package/dist/{event-loop-stall-monitor-LZvGqiHI.js → custom-action-registry-Bb28ibZV.js} +63 -1
  67. package/dist/{event-loop-stall-monitor-BEfMVUxz.mjs → custom-action-registry-DHv0kYcT.mjs} +58 -2
  68. package/dist/{dist-CvarXqQt.js → dist-BMOD9OyH.js} +32 -111
  69. package/dist/{dist-dEsHYY8m.mjs → dist-H_RapIeM.mjs} +21 -100
  70. package/dist/index.js +22786 -10067
  71. package/dist/index.mjs +22602 -9883
  72. package/dist/{jwt-signing-key-CfiteETM.js → jwt-signing-key-BiKHENST.js} +1 -1
  73. package/dist/{jwt-signing-key-SFIxaH2x.mjs → jwt-signing-key-xQxqpwMC.mjs} +1 -1
  74. package/dist/kernel/moleculer/broker-factory.d.ts +2 -4
  75. package/dist/kernel/transport/local-child-registry.d.ts +1 -1
  76. package/dist/lib-B_R6sPC3.mjs +7106 -0
  77. package/dist/lib-DOJ5yyWA.js +7110 -0
  78. package/dist/logging/log-redactor.d.ts +1 -1
  79. package/dist/{ms-DlIWNkkk.mjs → ms-CgH2OFlD.mjs} +2 -42
  80. package/dist/{ms-t68_FaqE.js → ms-LB3giGoU.js} +1 -48
  81. package/dist/{resource-monitor-B2WZ8_q9.mjs → resource-monitor-Di9daRwI.mjs} +1 -1
  82. package/dist/{resource-monitor-BgWGRxN5.js → resource-monitor-mio9dSCT.js} +5 -5
  83. package/dist/{restore-archive-CAw_3iNq.js → restore-archive-BobsETEp.js} +1 -1
  84. package/dist/{restore-archive-Bww1Fl04.mjs → restore-archive-CCAQicV-.mjs} +1 -1
  85. package/dist/{retired-settings-keys-YLflwTPH.js → retired-settings-keys-BMq2u4Wv.js} +1 -1
  86. package/dist/{retired-settings-keys-ChQ3qH-V.mjs → retired-settings-keys-CwL4zHLg.mjs} +1 -1
  87. package/dist/safe-buffer-B1OjL1I9.mjs +42 -0
  88. package/dist/safe-buffer-D3aoa-7X.js +46 -0
  89. package/dist/src-CnAqG6EF.js +714 -0
  90. package/dist/src-hG4grMU4.mjs +709 -0
  91. package/dist/{tls-BWpwU-d5.js → tls-C0TRPfqc.js} +1 -1
  92. package/dist/{tls-C2NT-Orr.mjs → tls-D-2dPY-5.mjs} +1 -1
  93. package/dist/{x509.es-Xf3K_brW.mjs → x509.es-CAjSsrkk.mjs} +643 -2
  94. package/dist/{x509.es-BhTzcFhZ.js → x509.es-Dzl0BbmG.js} +653 -0
  95. package/package.json +3 -2
  96. package/dist/child-cap-dispatch-DFBrdGH2.js +0 -13986
  97. package/dist/child-cap-dispatch-SF8oiwgo.mjs +0 -12916
  98. package/dist/custom-action-registry-B4Cf4O_X.mjs +0 -57
  99. package/dist/custom-action-registry-acBY3mHA.js +0 -62
  100. package/dist/hub-cap-forward-CDiN1p98.mjs +0 -78
  101. package/dist/hub-cap-forward-W8oEm4ME.js +0 -101
  102. package/dist/proc-stat-CbC55Kqi.mjs +0 -92
  103. package/dist/proc-stat-DL-WUOhl.js +0 -127
@@ -1,8 +1,9 @@
1
1
  import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
2
- import { Br as makeSecretMarker, Dr as customAction, Lr as isSecretClear, Nr as hydrateSchema, Or as defineCustomActions, Qr as secretTreeFromSchema, Rr as isSecretMarker, dr as BaseAddon, ni as transformSecretWrite, ur as errMsg } from "../../dist-dEsHYY8m.mjs";
3
- import { n as require_safe_buffer, t as require_ms } from "../../ms-DlIWNkkk.mjs";
4
- import { a as MESH_CA_KEY_REF, b as setProcessClusterSecretGate, c as MESH_JOIN_TOKEN_MAX_TTL_SEC, d as CLUSTER_SECRET_REF, i as MESH_CA_FIELD, l as SERVER_AUTH_OID, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID, v as hashClusterSecret } from "../../constants-BT-fudVK.mjs";
5
- import { a as KeyUsagesExtension, c as Pkcs10CertificateRequestGenerator, d as X509Certificate$1, f as X509CertificateGenerator, i as KeyUsageFlags, n as BasicConstraintsExtension, o as PemConverter, p as cryptoProvider, r as ExtendedKeyUsageExtension, s as Pkcs10CertificateRequest, t as AuthorityKeyIdentifierExtension, u as SubjectKeyIdentifierExtension } from "../../x509.es-Xf3K_brW.mjs";
2
+ import { Or as customAction, Pr as hydrateSchema, Qr as secretTreeFromSchema, Rr as isSecretClear, Vr as makeSecretMarker, dr as errMsg, fr as BaseAddon, kr as defineCustomActions, ni as transformSecretWrite, zr as isSecretMarker } from "../../dist-H_RapIeM.mjs";
3
+ import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
4
+ import { a as MESH_CA_KEY_REF, b as setProcessClusterSecretGate, c as MESH_JOIN_TOKEN_MAX_TTL_SEC, d as CLUSTER_SECRET_REF, i as MESH_CA_FIELD, l as SERVER_AUTH_OID, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID, v as hashClusterSecret } from "../../constants-BzxwnfDc.mjs";
5
+ import { a as KeyUsagesExtension, c as Pkcs10CertificateRequestGenerator, d as X509Certificate$1, f as X509CertificateGenerator, i as KeyUsageFlags, n as BasicConstraintsExtension, o as PemConverter, p as cryptoProvider, r as ExtendedKeyUsageExtension, s as Pkcs10CertificateRequest, t as AuthorityKeyIdentifierExtension, u as SubjectKeyIdentifierExtension } from "../../x509.es-CAjSsrkk.mjs";
6
+ import { t as require_src } from "../../src-hG4grMU4.mjs";
6
7
  import { z } from "zod";
7
8
  import { X509Certificate, createHash, createHmac, randomBytes, timingSafeEqual, webcrypto } from "node:crypto";
8
9
  import { BlockList, isIP } from "node:net";
@@ -21461,7 +21462,7 @@ var require_kleur = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21461
21462
  //#region ../../node_modules/moleculer/src/utils.js
21462
21463
  var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21463
21464
  var kleur = require_kleur();
21464
- var os$17 = __require("os");
21465
+ var os$16 = __require("os");
21465
21466
  var path$39 = __require("path");
21466
21467
  var fs$18 = __require("fs");
21467
21468
  var { TimeoutError } = require_errors$2();
@@ -21560,7 +21561,7 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21560
21561
  * @returns
21561
21562
  */
21562
21563
  getNodeID() {
21563
- return os$17.hostname().toLowerCase() + "-" + process.pid;
21564
+ return os$16.hostname().toLowerCase() + "-" + process.pid;
21564
21565
  },
21565
21566
  /**
21566
21567
  * Get list of local IPs
@@ -21570,7 +21571,7 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21570
21571
  getIpList() {
21571
21572
  const list = [];
21572
21573
  const ilist = [];
21573
- const interfaces = os$17.networkInterfaces();
21574
+ const interfaces = os$16.networkInterfaces();
21574
21575
  for (let iface in interfaces) for (let i in interfaces[iface]) {
21575
21576
  const f = interfaces[iface]?.[i];
21576
21577
  if (f.family === "IPv4") if (f.internal) {
@@ -23256,7 +23257,7 @@ var require_event$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23256
23257
  var require_datadog$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23257
23258
  var BaseReporter = require_base$8();
23258
23259
  var _ = require_lodash();
23259
- var os$16 = __require("os");
23260
+ var os$15 = __require("os");
23260
23261
  var { MoleculerError } = require_errors$2();
23261
23262
  var METRIC = require_constants$6();
23262
23263
  var { isFunction } = require_utils$3();
@@ -23289,7 +23290,7 @@ var require_datadog$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23289
23290
  super(opts);
23290
23291
  /** @type {DatadogReporterOptions} */
23291
23292
  this.opts = _.defaultsDeep(this.opts, {
23292
- host: os$16.hostname(),
23293
+ host: os$15.hostname(),
23293
23294
  baseUrl: BASE_URL,
23294
23295
  apiVersion: "v1",
23295
23296
  path: "/series",
@@ -23965,18 +23966,18 @@ var require_cpu_usage$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23965
23966
  *
23966
23967
  * Based on: https://github.com/icebob/cpu
23967
23968
  */
23968
- var os$15 = __require("os");
23969
+ var os$14 = __require("os");
23969
23970
  /* istanbul ignore next */
23970
23971
  module.exports = function getCpuUsage(sampleTime = 100) {
23971
23972
  return new Promise((resolve, reject) => {
23972
23973
  try {
23973
- const first = os$15.cpus().map((cpu) => cpu.times);
23974
+ const first = os$14.cpus().map((cpu) => cpu.times);
23974
23975
  setTimeout(() => {
23975
23976
  try {
23976
- const second = os$15.cpus().map((cpu) => cpu.times);
23977
+ const second = os$14.cpus().map((cpu) => cpu.times);
23977
23978
  setTimeout(() => {
23978
23979
  try {
23979
- const third = os$15.cpus().map((cpu) => cpu.times);
23980
+ const third = os$14.cpus().map((cpu) => cpu.times);
23980
23981
  const usages = [];
23981
23982
  for (let i = 0; i < first.length; i++) {
23982
23983
  const first_idle = first[i].idle;
@@ -24009,7 +24010,7 @@ var require_cpu_usage$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24009
24010
  //#endregion
24010
24011
  //#region ../../node_modules/moleculer/src/metrics/commons.js
24011
24012
  var require_commons = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24012
- var os$14 = __require("os");
24013
+ var os$13 = __require("os");
24013
24014
  var METRIC = require_constants$6();
24014
24015
  var cpuUsage = require_cpu_usage$1();
24015
24016
  var v8;
@@ -24188,27 +24189,27 @@ var require_commons = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24188
24189
  name: METRIC.OS_TYPE,
24189
24190
  type: METRIC.TYPE_INFO,
24190
24191
  description: "OS type"
24191
- }).set(os$14.type());
24192
+ }).set(os$13.type());
24192
24193
  this.register({
24193
24194
  name: METRIC.OS_RELEASE,
24194
24195
  type: METRIC.TYPE_INFO,
24195
24196
  description: "OS release"
24196
- }).set(os$14.release());
24197
+ }).set(os$13.release());
24197
24198
  this.register({
24198
24199
  name: METRIC.OS_HOSTNAME,
24199
24200
  type: METRIC.TYPE_INFO,
24200
24201
  description: "Hostname"
24201
- }).set(os$14.hostname());
24202
+ }).set(os$13.hostname());
24202
24203
  this.register({
24203
24204
  name: METRIC.OS_ARCH,
24204
24205
  type: METRIC.TYPE_INFO,
24205
24206
  description: "OS architecture"
24206
- }).set(os$14.arch());
24207
+ }).set(os$13.arch());
24207
24208
  this.register({
24208
24209
  name: METRIC.OS_PLATFORM,
24209
24210
  type: METRIC.TYPE_INFO,
24210
24211
  description: "OS platform"
24211
- }).set(os$14.platform());
24212
+ }).set(os$13.platform());
24212
24213
  const userInfo = getUserInfo();
24213
24214
  this.register({
24214
24215
  name: METRIC.OS_USER_UID,
@@ -24359,22 +24360,22 @@ var require_commons = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24359
24360
  }
24360
24361
  this.set(METRIC.PROCESS_UPTIME, process.uptime());
24361
24362
  this.set(METRIC.PROCESS_INTERNAL_ACTIVE_HANDLES, process.getActiveResourcesInfo().length);
24362
- const freeMem = os$14.freemem();
24363
- const totalMem = os$14.totalmem();
24363
+ const freeMem = os$13.freemem();
24364
+ const totalMem = os$13.totalmem();
24364
24365
  const usedMem = totalMem - freeMem;
24365
24366
  this.set(METRIC.OS_MEMORY_FREE, freeMem);
24366
24367
  this.set(METRIC.OS_MEMORY_USED, usedMem);
24367
24368
  this.set(METRIC.OS_MEMORY_TOTAL, totalMem);
24368
- this.set(METRIC.OS_UPTIME, os$14.uptime());
24369
- this.set(METRIC.OS_TYPE, os$14.type());
24370
- this.set(METRIC.OS_RELEASE, os$14.release());
24371
- this.set(METRIC.OS_HOSTNAME, os$14.hostname());
24372
- this.set(METRIC.OS_ARCH, os$14.arch());
24373
- this.set(METRIC.OS_PLATFORM, os$14.platform());
24369
+ this.set(METRIC.OS_UPTIME, os$13.uptime());
24370
+ this.set(METRIC.OS_TYPE, os$13.type());
24371
+ this.set(METRIC.OS_RELEASE, os$13.release());
24372
+ this.set(METRIC.OS_HOSTNAME, os$13.hostname());
24373
+ this.set(METRIC.OS_ARCH, os$13.arch());
24374
+ this.set(METRIC.OS_PLATFORM, os$13.platform());
24374
24375
  const getNetworkInterfaces = () => {
24375
24376
  const list = [];
24376
24377
  const ilist = [];
24377
- const interfaces = os$14.networkInterfaces();
24378
+ const interfaces = os$13.networkInterfaces();
24378
24379
  for (let iface in interfaces) for (let i in interfaces[iface]) {
24379
24380
  const f = interfaces[iface][i];
24380
24381
  if (f.internal) ilist.push({
@@ -24404,7 +24405,7 @@ var require_commons = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24404
24405
  this.set(METRIC.OS_DATETIME_ISO, d.toISOString());
24405
24406
  this.set(METRIC.OS_DATETIME_UTC, d.toUTCString());
24406
24407
  this.set(METRIC.OS_DATETIME_TZ_OFFSET, d.getTimezoneOffset());
24407
- const load = os$14.loadavg();
24408
+ const load = os$13.loadavg();
24408
24409
  this.set(METRIC.OS_CPU_LOAD_1, load[0]);
24409
24410
  this.set(METRIC.OS_CPU_LOAD_5, load[1]);
24410
24411
  this.set(METRIC.OS_CPU_LOAD_15, load[2]);
@@ -24412,7 +24413,7 @@ var require_commons = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24412
24413
  return this.broker.Promise.resolve().then(() => cpuUsage().then((res) => {
24413
24414
  this.set(METRIC.OS_CPU_UTILIZATION, res.avg);
24414
24415
  try {
24415
- const cpus = os$14.cpus();
24416
+ const cpus = os$13.cpus();
24416
24417
  this.set(METRIC.OS_CPU_TOTAL, cpus.length);
24417
24418
  this.set(METRIC.OS_CPU_USER, cpus.reduce((a, b) => a + b.times.user, 0));
24418
24419
  this.set(METRIC.OS_CPU_SYSTEM, cpus.reduce((a, b) => a + b.times.sys, 0));
@@ -24434,7 +24435,7 @@ var require_commons = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24434
24435
  */
24435
24436
  function getUserInfo() {
24436
24437
  try {
24437
- return os$14.userInfo();
24438
+ return os$13.userInfo();
24438
24439
  } catch {
24439
24440
  /* istanbul ignore next */
24440
24441
  return {};
@@ -28133,10 +28134,10 @@ var require_inherits_browser = /* @__PURE__ */ __commonJSMin(((exports, module)
28133
28134
  //#region ../../node_modules/inherits/inherits.js
28134
28135
  var require_inherits = /* @__PURE__ */ __commonJSMin(((exports, module) => {
28135
28136
  try {
28136
- var util$9 = __require("util");
28137
+ var util$8 = __require("util");
28137
28138
  /* istanbul ignore next */
28138
- if (typeof util$9.inherits !== "function") throw "";
28139
- module.exports = util$9.inherits;
28139
+ if (typeof util$8.inherits !== "function") throw "";
28140
+ module.exports = util$8.inherits;
28140
28141
  } catch (e) {
28141
28142
  /* istanbul ignore next */
28142
28143
  module.exports = require_inherits_browser();
@@ -28144,7 +28145,7 @@ var require_inherits = /* @__PURE__ */ __commonJSMin(((exports, module) => {
28144
28145
  }));
28145
28146
  //#endregion
28146
28147
  //#region ../../node_modules/util-deprecate/node.js
28147
- var require_node$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
28148
+ var require_node$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
28148
28149
  /**
28149
28150
  * For Node.js, simply re-export the core `util.deprecate` function.
28150
28151
  */
@@ -28164,7 +28165,7 @@ var require__stream_writable = /* @__PURE__ */ __commonJSMin(((exports, module)
28164
28165
  }
28165
28166
  var Duplex;
28166
28167
  Writable.WritableState = WritableState;
28167
- var internalUtil = { deprecate: require_node$3() };
28168
+ var internalUtil = { deprecate: require_node$2() };
28168
28169
  var Stream = require_stream$1();
28169
28170
  var Buffer$13 = __require("buffer").Buffer;
28170
28171
  var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {};
@@ -30398,7 +30399,7 @@ var require_streams = /* @__PURE__ */ __commonJSMin(((exports, module) => {
30398
30399
  //#endregion
30399
30400
  //#region ../../node_modules/msgpack5/lib/helpers.js
30400
30401
  var require_helpers$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
30401
- var util$8 = __require("util");
30402
+ var util$7 = __require("util");
30402
30403
  exports.IncompleteBufferError = IncompleteBufferError;
30403
30404
  function IncompleteBufferError(message) {
30404
30405
  Error.call(this);
@@ -30406,7 +30407,7 @@ var require_helpers$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
30406
30407
  this.name = this.constructor.name;
30407
30408
  this.message = message || "unable to decode";
30408
30409
  }
30409
- util$8.inherits(IncompleteBufferError, Error);
30410
+ util$7.inherits(IncompleteBufferError, Error);
30410
30411
  exports.isFloat = function isFloat(n) {
30411
30412
  return n % 1 !== 0;
30412
30413
  };
@@ -31627,7 +31628,7 @@ var require_cbor_extract = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31627
31628
  }));
31628
31629
  //#endregion
31629
31630
  //#region ../../node_modules/cbor-x/dist/node.cjs
31630
- var require_node$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
31631
+ var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
31631
31632
  var stream$1 = __require("stream");
31632
31633
  var module$1$1 = __require("module");
31633
31634
  var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
@@ -33803,7 +33804,7 @@ var require_cbor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
33803
33804
  init(broker) {
33804
33805
  super.init(broker);
33805
33806
  try {
33806
- const Cbor = require_node$2();
33807
+ const Cbor = require_node$1();
33807
33808
  this.encoder = new Cbor.Encoder(this.opts);
33808
33809
  } catch (err) {
33809
33810
  /* istanbul ignore next */
@@ -34541,7 +34542,7 @@ var require_discoverers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34541
34542
  }));
34542
34543
  //#endregion
34543
34544
  //#region ../../node_modules/moleculer/src/registry/node.js
34544
- var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34545
+ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34545
34546
  /**
34546
34547
  * Import types
34547
34548
  *
@@ -34656,8 +34657,8 @@ var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34656
34657
  //#region ../../node_modules/moleculer/src/registry/node-catalog.js
34657
34658
  var require_node_catalog = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34658
34659
  var _ = require_lodash();
34659
- var os$13 = __require("os");
34660
- var Node = require_node$1();
34660
+ var os$12 = __require("os");
34661
+ var Node = require_node();
34661
34662
  var { getIpList } = require_utils$3();
34662
34663
  /**
34663
34664
  * Import types
@@ -34702,7 +34703,7 @@ var require_node_catalog = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34702
34703
  node.local = true;
34703
34704
  node.ipList = getIpList();
34704
34705
  node.instanceID = this.broker.instanceID;
34705
- node.hostname = os$13.hostname();
34706
+ node.hostname = os$12.hostname();
34706
34707
  node.client = {
34707
34708
  type: "nodejs",
34708
34709
  version: this.broker.MOLECULER_VERSION,
@@ -36460,7 +36461,7 @@ var require_formatted = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36460
36461
  var BaseLogger = require_base$4();
36461
36462
  var _ = require_lodash();
36462
36463
  var kleur = require_kleur();
36463
- var util$7 = __require("util");
36464
+ var util$6 = __require("util");
36464
36465
  var { isObject, isFunction } = require_utils$3();
36465
36466
  /**
36466
36467
  * Import types
@@ -36508,7 +36509,7 @@ var require_formatted = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36508
36509
  init(loggerFactory) {
36509
36510
  super.init(loggerFactory);
36510
36511
  if (!this.opts.colors) kleur.enabled = false;
36511
- this.objectPrinter = this.opts.objectPrinter ? this.opts.objectPrinter : (o) => util$7.inspect(o, {
36512
+ this.objectPrinter = this.opts.objectPrinter ? this.opts.objectPrinter : (o) => util$6.inspect(o, {
36512
36513
  showHidden: false,
36513
36514
  depth: 2,
36514
36515
  colors: kleur.enabled,
@@ -36776,9 +36777,9 @@ var require_console$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36776
36777
  var require_datadog$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36777
36778
  var BaseLogger = require_base$4();
36778
36779
  var _ = require_lodash();
36779
- var os$12 = __require("os");
36780
+ var os$11 = __require("os");
36780
36781
  var { MoleculerError } = require_errors$2();
36781
- var util$6 = __require("util");
36782
+ var util$5 = __require("util");
36782
36783
  var { isObject } = require_utils$3();
36783
36784
  /**
36784
36785
  * Import types
@@ -36809,7 +36810,7 @@ var require_datadog$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36809
36810
  apiKey: process.env.DATADOG_API_KEY,
36810
36811
  ddSource: "moleculer",
36811
36812
  env: void 0,
36812
- hostname: os$12.hostname(),
36813
+ hostname: os$11.hostname(),
36813
36814
  objectPrinter: null,
36814
36815
  interval: 10 * 1e3
36815
36816
  });
@@ -36824,7 +36825,7 @@ var require_datadog$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36824
36825
  */
36825
36826
  init(loggerFactory) {
36826
36827
  super.init(loggerFactory);
36827
- this.objectPrinter = this.opts.objectPrinter ? this.opts.objectPrinter : (o) => util$6.inspect(o, {
36828
+ this.objectPrinter = this.opts.objectPrinter ? this.opts.objectPrinter : (o) => util$5.inspect(o, {
36828
36829
  showHidden: false,
36829
36830
  depth: 2,
36830
36831
  colors: false,
@@ -36933,712 +36934,6 @@ var require_datadog$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36933
36934
  module.exports = DatadogLogger;
36934
36935
  }));
36935
36936
  //#endregion
36936
- //#region ../../node_modules/debug/src/common.js
36937
- var require_common$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36938
- /**
36939
- * This is the common logic for both the Node.js and web browser
36940
- * implementations of `debug()`.
36941
- */
36942
- function setup(env) {
36943
- createDebug.debug = createDebug;
36944
- createDebug.default = createDebug;
36945
- createDebug.coerce = coerce;
36946
- createDebug.disable = disable;
36947
- createDebug.enable = enable;
36948
- createDebug.enabled = enabled;
36949
- createDebug.humanize = require_ms();
36950
- createDebug.destroy = destroy;
36951
- Object.keys(env).forEach((key) => {
36952
- createDebug[key] = env[key];
36953
- });
36954
- /**
36955
- * The currently active debug mode names, and names to skip.
36956
- */
36957
- createDebug.names = [];
36958
- createDebug.skips = [];
36959
- /**
36960
- * Map of special "%n" handling functions, for the debug "format" argument.
36961
- *
36962
- * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
36963
- */
36964
- createDebug.formatters = {};
36965
- /**
36966
- * Selects a color for a debug namespace
36967
- * @param {String} namespace The namespace string for the debug instance to be colored
36968
- * @return {Number|String} An ANSI color code for the given namespace
36969
- * @api private
36970
- */
36971
- function selectColor(namespace) {
36972
- let hash = 0;
36973
- for (let i = 0; i < namespace.length; i++) {
36974
- hash = (hash << 5) - hash + namespace.charCodeAt(i);
36975
- hash |= 0;
36976
- }
36977
- return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
36978
- }
36979
- createDebug.selectColor = selectColor;
36980
- /**
36981
- * Create a debugger with the given `namespace`.
36982
- *
36983
- * @param {String} namespace
36984
- * @return {Function}
36985
- * @api public
36986
- */
36987
- function createDebug(namespace) {
36988
- let prevTime;
36989
- let enableOverride = null;
36990
- let namespacesCache;
36991
- let enabledCache;
36992
- function debug(...args) {
36993
- if (!debug.enabled) return;
36994
- const self = debug;
36995
- const curr = Number(/* @__PURE__ */ new Date());
36996
- self.diff = curr - (prevTime || curr);
36997
- self.prev = prevTime;
36998
- self.curr = curr;
36999
- prevTime = curr;
37000
- args[0] = createDebug.coerce(args[0]);
37001
- if (typeof args[0] !== "string") args.unshift("%O");
37002
- let index = 0;
37003
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
37004
- if (match === "%%") return "%";
37005
- index++;
37006
- const formatter = createDebug.formatters[format];
37007
- if (typeof formatter === "function") {
37008
- const val = args[index];
37009
- match = formatter.call(self, val);
37010
- args.splice(index, 1);
37011
- index--;
37012
- }
37013
- return match;
37014
- });
37015
- createDebug.formatArgs.call(self, args);
37016
- (self.log || createDebug.log).apply(self, args);
37017
- }
37018
- debug.namespace = namespace;
37019
- debug.useColors = createDebug.useColors();
37020
- debug.color = createDebug.selectColor(namespace);
37021
- debug.extend = extend;
37022
- debug.destroy = createDebug.destroy;
37023
- Object.defineProperty(debug, "enabled", {
37024
- enumerable: true,
37025
- configurable: false,
37026
- get: () => {
37027
- if (enableOverride !== null) return enableOverride;
37028
- if (namespacesCache !== createDebug.namespaces) {
37029
- namespacesCache = createDebug.namespaces;
37030
- enabledCache = createDebug.enabled(namespace);
37031
- }
37032
- return enabledCache;
37033
- },
37034
- set: (v) => {
37035
- enableOverride = v;
37036
- }
37037
- });
37038
- if (typeof createDebug.init === "function") createDebug.init(debug);
37039
- return debug;
37040
- }
37041
- function extend(namespace, delimiter) {
37042
- const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
37043
- newDebug.log = this.log;
37044
- return newDebug;
37045
- }
37046
- /**
37047
- * Enables a debug mode by namespaces. This can include modes
37048
- * separated by a colon and wildcards.
37049
- *
37050
- * @param {String} namespaces
37051
- * @api public
37052
- */
37053
- function enable(namespaces) {
37054
- createDebug.save(namespaces);
37055
- createDebug.namespaces = namespaces;
37056
- createDebug.names = [];
37057
- createDebug.skips = [];
37058
- const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
37059
- for (const ns of split) if (ns[0] === "-") createDebug.skips.push(ns.slice(1));
37060
- else createDebug.names.push(ns);
37061
- }
37062
- /**
37063
- * Checks if the given string matches a namespace template, honoring
37064
- * asterisks as wildcards.
37065
- *
37066
- * @param {String} search
37067
- * @param {String} template
37068
- * @return {Boolean}
37069
- */
37070
- function matchesTemplate(search, template) {
37071
- let searchIndex = 0;
37072
- let templateIndex = 0;
37073
- let starIndex = -1;
37074
- let matchIndex = 0;
37075
- while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
37076
- starIndex = templateIndex;
37077
- matchIndex = searchIndex;
37078
- templateIndex++;
37079
- } else {
37080
- searchIndex++;
37081
- templateIndex++;
37082
- }
37083
- else if (starIndex !== -1) {
37084
- templateIndex = starIndex + 1;
37085
- matchIndex++;
37086
- searchIndex = matchIndex;
37087
- } else return false;
37088
- while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
37089
- return templateIndex === template.length;
37090
- }
37091
- /**
37092
- * Disable debug output.
37093
- *
37094
- * @return {String} namespaces
37095
- * @api public
37096
- */
37097
- function disable() {
37098
- const namespaces = [...createDebug.names, ...createDebug.skips.map((namespace) => "-" + namespace)].join(",");
37099
- createDebug.enable("");
37100
- return namespaces;
37101
- }
37102
- /**
37103
- * Returns true if the given mode name is enabled, false otherwise.
37104
- *
37105
- * @param {String} name
37106
- * @return {Boolean}
37107
- * @api public
37108
- */
37109
- function enabled(name) {
37110
- for (const skip of createDebug.skips) if (matchesTemplate(name, skip)) return false;
37111
- for (const ns of createDebug.names) if (matchesTemplate(name, ns)) return true;
37112
- return false;
37113
- }
37114
- /**
37115
- * Coerce `val`.
37116
- *
37117
- * @param {Mixed} val
37118
- * @return {Mixed}
37119
- * @api private
37120
- */
37121
- function coerce(val) {
37122
- if (val instanceof Error) return val.stack || val.message;
37123
- return val;
37124
- }
37125
- /**
37126
- * XXX DO NOT USE. This is a temporary stub function.
37127
- * XXX It WILL be removed in the next major release.
37128
- */
37129
- function destroy() {
37130
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
37131
- }
37132
- createDebug.enable(createDebug.load());
37133
- return createDebug;
37134
- }
37135
- module.exports = setup;
37136
- }));
37137
- //#endregion
37138
- //#region ../../node_modules/debug/src/browser.js
37139
- var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37140
- /**
37141
- * This is the web browser implementation of `debug()`.
37142
- */
37143
- exports.formatArgs = formatArgs;
37144
- exports.save = save;
37145
- exports.load = load;
37146
- exports.useColors = useColors;
37147
- exports.storage = localstorage();
37148
- exports.destroy = (() => {
37149
- let warned = false;
37150
- return () => {
37151
- if (!warned) {
37152
- warned = true;
37153
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
37154
- }
37155
- };
37156
- })();
37157
- /**
37158
- * Colors.
37159
- */
37160
- exports.colors = [
37161
- "#0000CC",
37162
- "#0000FF",
37163
- "#0033CC",
37164
- "#0033FF",
37165
- "#0066CC",
37166
- "#0066FF",
37167
- "#0099CC",
37168
- "#0099FF",
37169
- "#00CC00",
37170
- "#00CC33",
37171
- "#00CC66",
37172
- "#00CC99",
37173
- "#00CCCC",
37174
- "#00CCFF",
37175
- "#3300CC",
37176
- "#3300FF",
37177
- "#3333CC",
37178
- "#3333FF",
37179
- "#3366CC",
37180
- "#3366FF",
37181
- "#3399CC",
37182
- "#3399FF",
37183
- "#33CC00",
37184
- "#33CC33",
37185
- "#33CC66",
37186
- "#33CC99",
37187
- "#33CCCC",
37188
- "#33CCFF",
37189
- "#6600CC",
37190
- "#6600FF",
37191
- "#6633CC",
37192
- "#6633FF",
37193
- "#66CC00",
37194
- "#66CC33",
37195
- "#9900CC",
37196
- "#9900FF",
37197
- "#9933CC",
37198
- "#9933FF",
37199
- "#99CC00",
37200
- "#99CC33",
37201
- "#CC0000",
37202
- "#CC0033",
37203
- "#CC0066",
37204
- "#CC0099",
37205
- "#CC00CC",
37206
- "#CC00FF",
37207
- "#CC3300",
37208
- "#CC3333",
37209
- "#CC3366",
37210
- "#CC3399",
37211
- "#CC33CC",
37212
- "#CC33FF",
37213
- "#CC6600",
37214
- "#CC6633",
37215
- "#CC9900",
37216
- "#CC9933",
37217
- "#CCCC00",
37218
- "#CCCC33",
37219
- "#FF0000",
37220
- "#FF0033",
37221
- "#FF0066",
37222
- "#FF0099",
37223
- "#FF00CC",
37224
- "#FF00FF",
37225
- "#FF3300",
37226
- "#FF3333",
37227
- "#FF3366",
37228
- "#FF3399",
37229
- "#FF33CC",
37230
- "#FF33FF",
37231
- "#FF6600",
37232
- "#FF6633",
37233
- "#FF9900",
37234
- "#FF9933",
37235
- "#FFCC00",
37236
- "#FFCC33"
37237
- ];
37238
- /**
37239
- * Currently only WebKit-based Web Inspectors, Firefox >= v31,
37240
- * and the Firebug extension (any Firefox version) are known
37241
- * to support "%c" CSS customizations.
37242
- *
37243
- * TODO: add a `localStorage` variable to explicitly enable/disable colors
37244
- */
37245
- function useColors() {
37246
- if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return true;
37247
- if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return false;
37248
- let m;
37249
- return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
37250
- }
37251
- /**
37252
- * Colorize log arguments if enabled.
37253
- *
37254
- * @api public
37255
- */
37256
- function formatArgs(args) {
37257
- args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
37258
- if (!this.useColors) return;
37259
- const c = "color: " + this.color;
37260
- args.splice(1, 0, c, "color: inherit");
37261
- let index = 0;
37262
- let lastC = 0;
37263
- args[0].replace(/%[a-zA-Z%]/g, (match) => {
37264
- if (match === "%%") return;
37265
- index++;
37266
- if (match === "%c") lastC = index;
37267
- });
37268
- args.splice(lastC, 0, c);
37269
- }
37270
- /**
37271
- * Invokes `console.debug()` when available.
37272
- * No-op when `console.debug` is not a "function".
37273
- * If `console.debug` is not available, falls back
37274
- * to `console.log`.
37275
- *
37276
- * @api public
37277
- */
37278
- exports.log = console.debug || console.log || (() => {});
37279
- /**
37280
- * Save `namespaces`.
37281
- *
37282
- * @param {String} namespaces
37283
- * @api private
37284
- */
37285
- function save(namespaces) {
37286
- try {
37287
- if (namespaces) exports.storage.setItem("debug", namespaces);
37288
- else exports.storage.removeItem("debug");
37289
- } catch (error) {}
37290
- }
37291
- /**
37292
- * Load `namespaces`.
37293
- *
37294
- * @return {String} returns the previously persisted debug modes
37295
- * @api private
37296
- */
37297
- function load() {
37298
- let r;
37299
- try {
37300
- r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
37301
- } catch (error) {}
37302
- if (!r && typeof process !== "undefined" && "env" in process) r = process.env.DEBUG;
37303
- return r;
37304
- }
37305
- /**
37306
- * Localstorage attempts to return the localstorage.
37307
- *
37308
- * This is necessary because safari throws
37309
- * when a user disables cookies/localstorage
37310
- * and you attempt to access it.
37311
- *
37312
- * @return {LocalStorage}
37313
- * @api private
37314
- */
37315
- function localstorage() {
37316
- try {
37317
- return localStorage;
37318
- } catch (error) {}
37319
- }
37320
- module.exports = require_common$1()(exports);
37321
- var { formatters } = module.exports;
37322
- /**
37323
- * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
37324
- */
37325
- formatters.j = function(v) {
37326
- try {
37327
- return JSON.stringify(v);
37328
- } catch (error) {
37329
- return "[UnexpectedJSONParseError]: " + error.message;
37330
- }
37331
- };
37332
- }));
37333
- //#endregion
37334
- //#region ../../node_modules/has-flag/index.js
37335
- var require_has_flag$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37336
- module.exports = (flag, argv = process.argv) => {
37337
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
37338
- const position = argv.indexOf(prefix + flag);
37339
- const terminatorPosition = argv.indexOf("--");
37340
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
37341
- };
37342
- }));
37343
- //#endregion
37344
- //#region ../../node_modules/supports-color/index.js
37345
- var require_supports_color$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37346
- var os$11 = __require("os");
37347
- var tty$1 = __require("tty");
37348
- var hasFlag = require_has_flag$1();
37349
- var { env } = process;
37350
- var flagForceColor;
37351
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
37352
- else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
37353
- function envForceColor() {
37354
- if ("FORCE_COLOR" in env) {
37355
- if (env.FORCE_COLOR === "true") return 1;
37356
- if (env.FORCE_COLOR === "false") return 0;
37357
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
37358
- }
37359
- }
37360
- function translateLevel(level) {
37361
- if (level === 0) return false;
37362
- return {
37363
- level,
37364
- hasBasic: true,
37365
- has256: level >= 2,
37366
- has16m: level >= 3
37367
- };
37368
- }
37369
- function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
37370
- const noFlagForceColor = envForceColor();
37371
- if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
37372
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
37373
- if (forceColor === 0) return 0;
37374
- if (sniffFlags) {
37375
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
37376
- if (hasFlag("color=256")) return 2;
37377
- }
37378
- if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
37379
- const min = forceColor || 0;
37380
- if (env.TERM === "dumb") return min;
37381
- if (process.platform === "win32") {
37382
- const osRelease = os$11.release().split(".");
37383
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
37384
- return 1;
37385
- }
37386
- if ("CI" in env) {
37387
- if ([
37388
- "TRAVIS",
37389
- "CIRCLECI",
37390
- "APPVEYOR",
37391
- "GITLAB_CI",
37392
- "GITHUB_ACTIONS",
37393
- "BUILDKITE",
37394
- "DRONE"
37395
- ].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
37396
- return min;
37397
- }
37398
- if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
37399
- if (env.COLORTERM === "truecolor") return 3;
37400
- if ("TERM_PROGRAM" in env) {
37401
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
37402
- switch (env.TERM_PROGRAM) {
37403
- case "iTerm.app": return version >= 3 ? 3 : 2;
37404
- case "Apple_Terminal": return 2;
37405
- }
37406
- }
37407
- if (/-256(color)?$/i.test(env.TERM)) return 2;
37408
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
37409
- if ("COLORTERM" in env) return 1;
37410
- return min;
37411
- }
37412
- function getSupportLevel(stream, options = {}) {
37413
- return translateLevel(supportsColor(stream, {
37414
- streamIsTTY: stream && stream.isTTY,
37415
- ...options
37416
- }));
37417
- }
37418
- module.exports = {
37419
- supportsColor: getSupportLevel,
37420
- stdout: getSupportLevel({ isTTY: tty$1.isatty(1) }),
37421
- stderr: getSupportLevel({ isTTY: tty$1.isatty(2) })
37422
- };
37423
- }));
37424
- //#endregion
37425
- //#region ../../node_modules/debug/src/node.js
37426
- var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37427
- /**
37428
- * Module dependencies.
37429
- */
37430
- var tty = __require("tty");
37431
- var util$5 = __require("util");
37432
- /**
37433
- * This is the Node.js implementation of `debug()`.
37434
- */
37435
- exports.init = init;
37436
- exports.log = log;
37437
- exports.formatArgs = formatArgs;
37438
- exports.save = save;
37439
- exports.load = load;
37440
- exports.useColors = useColors;
37441
- exports.destroy = util$5.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
37442
- /**
37443
- * Colors.
37444
- */
37445
- exports.colors = [
37446
- 6,
37447
- 2,
37448
- 3,
37449
- 4,
37450
- 5,
37451
- 1
37452
- ];
37453
- try {
37454
- const supportsColor = require_supports_color$1();
37455
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.colors = [
37456
- 20,
37457
- 21,
37458
- 26,
37459
- 27,
37460
- 32,
37461
- 33,
37462
- 38,
37463
- 39,
37464
- 40,
37465
- 41,
37466
- 42,
37467
- 43,
37468
- 44,
37469
- 45,
37470
- 56,
37471
- 57,
37472
- 62,
37473
- 63,
37474
- 68,
37475
- 69,
37476
- 74,
37477
- 75,
37478
- 76,
37479
- 77,
37480
- 78,
37481
- 79,
37482
- 80,
37483
- 81,
37484
- 92,
37485
- 93,
37486
- 98,
37487
- 99,
37488
- 112,
37489
- 113,
37490
- 128,
37491
- 129,
37492
- 134,
37493
- 135,
37494
- 148,
37495
- 149,
37496
- 160,
37497
- 161,
37498
- 162,
37499
- 163,
37500
- 164,
37501
- 165,
37502
- 166,
37503
- 167,
37504
- 168,
37505
- 169,
37506
- 170,
37507
- 171,
37508
- 172,
37509
- 173,
37510
- 178,
37511
- 179,
37512
- 184,
37513
- 185,
37514
- 196,
37515
- 197,
37516
- 198,
37517
- 199,
37518
- 200,
37519
- 201,
37520
- 202,
37521
- 203,
37522
- 204,
37523
- 205,
37524
- 206,
37525
- 207,
37526
- 208,
37527
- 209,
37528
- 214,
37529
- 215,
37530
- 220,
37531
- 221
37532
- ];
37533
- } catch (error) {}
37534
- /**
37535
- * Build up the default `inspectOpts` object from the environment variables.
37536
- *
37537
- * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
37538
- */
37539
- exports.inspectOpts = Object.keys(process.env).filter((key) => {
37540
- return /^debug_/i.test(key);
37541
- }).reduce((obj, key) => {
37542
- const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
37543
- return k.toUpperCase();
37544
- });
37545
- let val = process.env[key];
37546
- if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
37547
- else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
37548
- else if (val === "null") val = null;
37549
- else val = Number(val);
37550
- obj[prop] = val;
37551
- return obj;
37552
- }, {});
37553
- /**
37554
- * Is stdout a TTY? Colored output is enabled when `true`.
37555
- */
37556
- function useColors() {
37557
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
37558
- }
37559
- /**
37560
- * Adds ANSI color escape codes if enabled.
37561
- *
37562
- * @api public
37563
- */
37564
- function formatArgs(args) {
37565
- const { namespace: name, useColors } = this;
37566
- if (useColors) {
37567
- const c = this.color;
37568
- const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
37569
- const prefix = ` ${colorCode};1m${name} \u001B[0m`;
37570
- args[0] = prefix + args[0].split("\n").join("\n" + prefix);
37571
- args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
37572
- } else args[0] = getDate() + name + " " + args[0];
37573
- }
37574
- function getDate() {
37575
- if (exports.inspectOpts.hideDate) return "";
37576
- return (/* @__PURE__ */ new Date()).toISOString() + " ";
37577
- }
37578
- /**
37579
- * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
37580
- */
37581
- function log(...args) {
37582
- return process.stderr.write(util$5.formatWithOptions(exports.inspectOpts, ...args) + "\n");
37583
- }
37584
- /**
37585
- * Save `namespaces`.
37586
- *
37587
- * @param {String} namespaces
37588
- * @api private
37589
- */
37590
- function save(namespaces) {
37591
- if (namespaces) process.env.DEBUG = namespaces;
37592
- else delete process.env.DEBUG;
37593
- }
37594
- /**
37595
- * Load `namespaces`.
37596
- *
37597
- * @return {String} returns the previously persisted debug modes
37598
- * @api private
37599
- */
37600
- function load() {
37601
- return process.env.DEBUG;
37602
- }
37603
- /**
37604
- * Init logic for `debug` instances.
37605
- *
37606
- * Create a new `inspectOpts` object in case `useColors` is set
37607
- * differently for a particular `debug` instance.
37608
- */
37609
- function init(debug) {
37610
- debug.inspectOpts = {};
37611
- const keys = Object.keys(exports.inspectOpts);
37612
- for (let i = 0; i < keys.length; i++) debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
37613
- }
37614
- module.exports = require_common$1()(exports);
37615
- var { formatters } = module.exports;
37616
- /**
37617
- * Map %o to `util.inspect()`, all on a single line.
37618
- */
37619
- formatters.o = function(v) {
37620
- this.inspectOpts.colors = this.useColors;
37621
- return util$5.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
37622
- };
37623
- /**
37624
- * Map %O to `util.inspect()`, allowing multiple lines if needed.
37625
- */
37626
- formatters.O = function(v) {
37627
- this.inspectOpts.colors = this.useColors;
37628
- return util$5.inspect(v, this.inspectOpts);
37629
- };
37630
- }));
37631
- //#endregion
37632
- //#region ../../node_modules/debug/src/index.js
37633
- var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37634
- /**
37635
- * Detect Electron renderer / nwjs process, which is node, but we should
37636
- * treat as a browser.
37637
- */
37638
- if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) module.exports = require_browser();
37639
- else module.exports = require_node();
37640
- }));
37641
- //#endregion
37642
36937
  //#region ../../node_modules/moleculer/src/loggers/debug.js
37643
36938
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37644
36939
  var BaseLogger = require_base$4();
@@ -72949,7 +72244,7 @@ var require_tcp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
72949
72244
  var { isObject, isString } = require_utils$3();
72950
72245
  var fs$8 = __require("fs");
72951
72246
  var kleur = require_kleur();
72952
- var Node = require_node$1();
72247
+ var Node = require_node();
72953
72248
  var P = require_packets();
72954
72249
  var { resolvePacketID } = require_constants();
72955
72250
  var { MoleculerServerError } = require_errors$2();