@camstack/system 1.2.421 → 1.2.422
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/dist/builtins/calendars/calendars.addon.js +1 -1
- package/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/composer/composer.addon.js +2 -2
- package/dist/builtins/composer/composer.addon.mjs +2 -2
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- package/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +3 -3
- package/dist/builtins/keychain/index.mjs +3 -3
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +44 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +3 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +3 -1
- package/dist/builtins/system-config/system-config.addon.js +2 -2
- package/dist/builtins/system-config/system-config.addon.mjs +279 -279
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-DxlTUSI1.js → composition-sources-BstNkBVe.js} +1 -1
- package/dist/{composition-sources-DoYpCPtl.mjs → composition-sources-f_VjTBgs.mjs} +1 -1
- package/dist/{constants-GXZQRcjB.js → constants-CY4vXTV-.js} +1 -1
- package/dist/{constants-CtxNK2QJ.mjs → constants-iLQM7god.mjs} +1 -1
- package/dist/{dist-0OD9ue39.mjs → dist-CHsJCqrf.mjs} +220 -3
- package/dist/{dist-Df7s77se.js → dist-FSNJUw7p.js} +220 -3
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/{jwt-signing-key-BmyvxlDJ.js → jwt-signing-key-CPha_bf7.js} +1 -1
- package/dist/{jwt-signing-key-W-WFzAoK.mjs → jwt-signing-key-DUVvfILp.mjs} +1 -1
- package/dist/{restore-archive-W1Cg5y6C.js → restore-archive-BwGWspP1.js} +1 -1
- package/dist/{restore-archive-BUMSox6L.mjs → restore-archive-J_BsGRBy.mjs} +77 -77
- package/dist/{retired-settings-keys-Wz92bcuK.mjs → retired-settings-keys-3SMjMqj0.mjs} +1 -1
- package/dist/{retired-settings-keys-D-Xv1Zyv.js → retired-settings-keys-BuQBYfu0.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
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 { $r as transformSecretWrite, Er as defineCustomActions, Fr as isSecretClear, Ir as isSecretMarker, Rr as makeSecretMarker, Tr as customAction, Yr as secretTreeFromSchema, cr as BaseAddon, jr as hydrateSchema, sr as errMsg } from "../../dist-
|
|
2
|
+
import { $r as transformSecretWrite, Er as defineCustomActions, Fr as isSecretClear, Ir as isSecretMarker, Rr as makeSecretMarker, Tr as customAction, Yr as secretTreeFromSchema, cr as BaseAddon, jr as hydrateSchema, sr as errMsg } from "../../dist-CHsJCqrf.mjs";
|
|
3
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-
|
|
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-iLQM7god.mjs";
|
|
5
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
6
|
import { t as require_src } from "../../src-hG4grMU4.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
@@ -21463,8 +21463,8 @@ var require_kleur = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21463
21463
|
var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
21464
21464
|
var kleur = require_kleur();
|
|
21465
21465
|
var os$16 = __require("os");
|
|
21466
|
-
var path$
|
|
21467
|
-
var fs$
|
|
21466
|
+
var path$39 = __require("path");
|
|
21467
|
+
var fs$18 = __require("fs");
|
|
21468
21468
|
var { TimeoutError } = require_errors$2();
|
|
21469
21469
|
var lut = [];
|
|
21470
21470
|
for (let i = 0; i < 256; i++) lut[i] = (i < 16 ? "0" : "") + i.toString(16);
|
|
@@ -21755,9 +21755,9 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21755
21755
|
* @param {String} p - directory path
|
|
21756
21756
|
*/
|
|
21757
21757
|
makeDirs(p) {
|
|
21758
|
-
p.split(path$
|
|
21759
|
-
const currentPath = path$
|
|
21760
|
-
if (!fs$
|
|
21758
|
+
p.split(path$39.sep).reduce((prevPath, folder) => {
|
|
21759
|
+
const currentPath = path$39.join(prevPath, folder, path$39.sep);
|
|
21760
|
+
if (!fs$18.existsSync(currentPath)) fs$18.mkdirSync(currentPath);
|
|
21761
21761
|
return currentPath;
|
|
21762
21762
|
}, "");
|
|
21763
21763
|
},
|
|
@@ -22982,8 +22982,8 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
22982
22982
|
var BaseReporter = require_base$8();
|
|
22983
22983
|
var { makeDirs } = require_utils$3();
|
|
22984
22984
|
var _ = require_lodash();
|
|
22985
|
-
var path$
|
|
22986
|
-
var fs$
|
|
22985
|
+
var path$38 = __require("path");
|
|
22986
|
+
var fs$17 = __require("fs");
|
|
22987
22987
|
var METRIC = require_constants$6();
|
|
22988
22988
|
var MODE_METRIC = "metric";
|
|
22989
22989
|
var MODE_LABEL = "label";
|
|
@@ -23036,7 +23036,7 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23036
23036
|
this.timer = setInterval(() => this.flush(), this.opts.interval * 1e3);
|
|
23037
23037
|
this.timer.unref();
|
|
23038
23038
|
}
|
|
23039
|
-
this.folder = path$
|
|
23039
|
+
this.folder = path$38.resolve(this.opts.folder);
|
|
23040
23040
|
makeDirs(this.folder);
|
|
23041
23041
|
}
|
|
23042
23042
|
/**
|
|
@@ -23061,10 +23061,10 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23061
23061
|
const metricName = this.formatMetricName(metric.name);
|
|
23062
23062
|
if (this.opts.filenameFormatter) return this.opts.filenameFormatter.call(this, metricName, metric, item);
|
|
23063
23063
|
switch (this.opts.mode) {
|
|
23064
|
-
case MODE_METRIC: return path$
|
|
23064
|
+
case MODE_METRIC: return path$38.join(this.folder, `${metricName}.csv`);
|
|
23065
23065
|
case MODE_LABEL: {
|
|
23066
23066
|
const labelStr = this.labelsToStr(item.labels);
|
|
23067
|
-
return path$
|
|
23067
|
+
return path$38.join(this.folder, metricName, `${metricName}${labelStr ? "--" + labelStr : ""}.csv`);
|
|
23068
23068
|
}
|
|
23069
23069
|
}
|
|
23070
23070
|
}
|
|
@@ -23085,7 +23085,7 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23085
23085
|
metric.values.forEach((item) => {
|
|
23086
23086
|
if (!this.lastChanges.has([metric.name, this.labelsToStr(item.labels)].join("|"))) return;
|
|
23087
23087
|
const filename = this.getFilename(metric, item);
|
|
23088
|
-
makeDirs(path$
|
|
23088
|
+
makeDirs(path$38.dirname(filename));
|
|
23089
23089
|
const metricName = this.formatMetricName(metric.name);
|
|
23090
23090
|
let headers = ["Timestamp", "Metric"];
|
|
23091
23091
|
let data = [item.timestamp, metricName];
|
|
@@ -23142,8 +23142,8 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23142
23142
|
*/
|
|
23143
23143
|
writeRow(filename, headers, fields) {
|
|
23144
23144
|
try {
|
|
23145
|
-
if (!fs$
|
|
23146
|
-
fs$
|
|
23145
|
+
if (!fs$17.existsSync(filename)) fs$17.writeFileSync(filename, headers.join(this.opts.delimiter) + this.opts.rowDelimiter);
|
|
23146
|
+
fs$17.appendFileSync(filename, fields.join(this.opts.delimiter) + this.opts.rowDelimiter);
|
|
23147
23147
|
} catch (err) {
|
|
23148
23148
|
/* istanbul ignore next */
|
|
23149
23149
|
this.logger.error(`Unable to write metrics values to the '${filename}' file. Error: ${err.message}`, fields, err);
|
|
@@ -26215,7 +26215,7 @@ var require_latency = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
26215
26215
|
//#region ../../node_modules/lru-cache/dist/commonjs/node/index.min.js
|
|
26216
26216
|
var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
26217
26217
|
var j = (c, t) => () => (t || c((t = { exports: {} }).exports, t), t.exports);
|
|
26218
|
-
var I$
|
|
26218
|
+
var I$2 = j((O) => {
|
|
26219
26219
|
"use strict";
|
|
26220
26220
|
Object.defineProperty(O, "__esModule", { value: !0 });
|
|
26221
26221
|
O.tracing = O.metrics = void 0;
|
|
@@ -26231,7 +26231,7 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
26231
26231
|
});
|
|
26232
26232
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
26233
26233
|
exports.LRUCache = void 0;
|
|
26234
|
-
var g = I$
|
|
26234
|
+
var g = I$2(), N = P(), C = () => g.metrics.hasSubscribers || g.tracing.hasSubscribers, k = /* @__PURE__ */ new Set(), G = typeof process == "object" && process ? process : {}, V = (c, t, e, i) => {
|
|
26235
26235
|
typeof G.emitWarning == "function" ? G.emitWarning(c, t, e, i) : console.error(`[${e}] ${t}: ${c}`);
|
|
26236
26236
|
}, q = (c) => !k.has(c);
|
|
26237
26237
|
var T = (c) => !!c && c === Math.floor(c) && c > 0 && isFinite(c), H = (c) => T(c) ? c <= Math.pow(2, 8) ? Uint8Array : c <= Math.pow(2, 16) ? Uint16Array : c <= Math.pow(2, 32) ? Uint32Array : c <= Number.MAX_SAFE_INTEGER ? W : null : null, W = class extends Array {
|
|
@@ -31175,7 +31175,7 @@ var require_process$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
31175
31175
|
//#endregion
|
|
31176
31176
|
//#region ../../node_modules/detect-libc/lib/filesystem.js
|
|
31177
31177
|
var require_filesystem = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
31178
|
-
var fs$
|
|
31178
|
+
var fs$16 = __require("fs");
|
|
31179
31179
|
var LDD_PATH = "/usr/bin/ldd";
|
|
31180
31180
|
var SELF_PATH = "/proc/self/exe";
|
|
31181
31181
|
var MAX_LENGTH = 2048;
|
|
@@ -31186,10 +31186,10 @@ var require_filesystem = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
31186
31186
|
* @returns {Buffer}
|
|
31187
31187
|
*/
|
|
31188
31188
|
var readFileSync = (path) => {
|
|
31189
|
-
const fd = fs$
|
|
31189
|
+
const fd = fs$16.openSync(path, "r");
|
|
31190
31190
|
const buffer = Buffer.alloc(MAX_LENGTH);
|
|
31191
|
-
const bytesRead = fs$
|
|
31192
|
-
fs$
|
|
31191
|
+
const bytesRead = fs$16.readSync(fd, buffer, 0, MAX_LENGTH, 0);
|
|
31192
|
+
fs$16.close(fd, () => {});
|
|
31193
31193
|
return buffer.subarray(0, bytesRead);
|
|
31194
31194
|
};
|
|
31195
31195
|
/**
|
|
@@ -31199,13 +31199,13 @@ var require_filesystem = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
31199
31199
|
* @returns {Promise<Buffer>}
|
|
31200
31200
|
*/
|
|
31201
31201
|
var readFile = (path) => new Promise((resolve, reject) => {
|
|
31202
|
-
fs$
|
|
31202
|
+
fs$16.open(path, "r", (err, fd) => {
|
|
31203
31203
|
if (err) reject(err);
|
|
31204
31204
|
else {
|
|
31205
31205
|
const buffer = Buffer.alloc(MAX_LENGTH);
|
|
31206
|
-
fs$
|
|
31206
|
+
fs$16.read(fd, buffer, 0, MAX_LENGTH, 0, (_, bytesRead) => {
|
|
31207
31207
|
resolve(buffer.subarray(0, bytesRead));
|
|
31208
|
-
fs$
|
|
31208
|
+
fs$16.close(fd, () => {});
|
|
31209
31209
|
});
|
|
31210
31210
|
}
|
|
31211
31211
|
});
|
|
@@ -31458,8 +31458,8 @@ var require_detect_libc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
31458
31458
|
//#endregion
|
|
31459
31459
|
//#region ../../node_modules/node-gyp-build-optional-packages/index.js
|
|
31460
31460
|
var require_node_gyp_build_optional_packages = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
31461
|
-
var fs$
|
|
31462
|
-
var path$
|
|
31461
|
+
var fs$15 = __require("fs");
|
|
31462
|
+
var path$37 = __require("path");
|
|
31463
31463
|
var url$2 = __require("url");
|
|
31464
31464
|
var vars = process.config && process.config.variables || {};
|
|
31465
31465
|
var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
|
|
@@ -31478,27 +31478,27 @@ var require_node_gyp_build_optional_packages = /* @__PURE__ */ __commonJSMin(((e
|
|
|
31478
31478
|
else return __require(load.path(dir));
|
|
31479
31479
|
}
|
|
31480
31480
|
load.path = function(dir) {
|
|
31481
|
-
dir = path$
|
|
31481
|
+
dir = path$37.resolve(dir || ".");
|
|
31482
31482
|
var packageName = "";
|
|
31483
31483
|
try {
|
|
31484
|
-
if (typeof __webpack_require__ === "function") packageName = __non_webpack_require__(path$
|
|
31485
|
-
else packageName = __require(path$
|
|
31484
|
+
if (typeof __webpack_require__ === "function") packageName = __non_webpack_require__(path$37.join(dir, "package.json")).name;
|
|
31485
|
+
else packageName = __require(path$37.join(dir, "package.json")).name;
|
|
31486
31486
|
var varName = packageName.toUpperCase().replace(/-/g, "_") + "_PREBUILD";
|
|
31487
31487
|
if (process.env[varName]) dir = process.env[varName];
|
|
31488
31488
|
} catch (err) {}
|
|
31489
31489
|
if (!prebuildsOnly) {
|
|
31490
|
-
var release = getFirst(path$
|
|
31490
|
+
var release = getFirst(path$37.join(dir, "build/Release"), matchBuild);
|
|
31491
31491
|
if (release) return release;
|
|
31492
|
-
var debug = getFirst(path$
|
|
31492
|
+
var debug = getFirst(path$37.join(dir, "build/Debug"), matchBuild);
|
|
31493
31493
|
if (debug) return debug;
|
|
31494
31494
|
}
|
|
31495
31495
|
var prebuild = resolve(dir);
|
|
31496
31496
|
if (prebuild) return prebuild;
|
|
31497
|
-
var nearby = resolve(path$
|
|
31497
|
+
var nearby = resolve(path$37.dirname(process.execPath));
|
|
31498
31498
|
if (nearby) return nearby;
|
|
31499
31499
|
var platformPackage = (packageName[0] == "@" ? "" : "@" + packageName + "/") + packageName + "-" + platform + "-" + arch;
|
|
31500
31500
|
try {
|
|
31501
|
-
return resolveFile(path$
|
|
31501
|
+
return resolveFile(path$37.dirname(__require("module").createRequire(url$2.pathToFileURL(path$37.join(dir, "package.json"))).resolve(platformPackage)));
|
|
31502
31502
|
} catch (error) {}
|
|
31503
31503
|
var target = [
|
|
31504
31504
|
"platform=" + platform,
|
|
@@ -31514,25 +31514,25 @@ var require_node_gyp_build_optional_packages = /* @__PURE__ */ __commonJSMin(((e
|
|
|
31514
31514
|
].filter(Boolean).join(" ");
|
|
31515
31515
|
throw new Error("No native build was found for " + target + "\n attempted loading from: " + dir + " and package: " + platformPackage + "\n");
|
|
31516
31516
|
function resolve(dir) {
|
|
31517
|
-
var tuple = readdirSync(path$
|
|
31517
|
+
var tuple = readdirSync(path$37.join(dir, "prebuilds")).map(parseTuple).filter(matchTuple(platform, arch)).sort(compareTuples)[0];
|
|
31518
31518
|
if (!tuple) return;
|
|
31519
|
-
return resolveFile(path$
|
|
31519
|
+
return resolveFile(path$37.join(dir, "prebuilds", tuple.name));
|
|
31520
31520
|
}
|
|
31521
31521
|
function resolveFile(prebuilds) {
|
|
31522
31522
|
var winner = readdirSync(prebuilds).map(parseTags).filter(matchTags(runtime, abi)).sort(compareTags(runtime))[0];
|
|
31523
|
-
if (winner) return path$
|
|
31523
|
+
if (winner) return path$37.join(prebuilds, winner.file);
|
|
31524
31524
|
}
|
|
31525
31525
|
};
|
|
31526
31526
|
function readdirSync(dir) {
|
|
31527
31527
|
try {
|
|
31528
|
-
return fs$
|
|
31528
|
+
return fs$15.readdirSync(dir);
|
|
31529
31529
|
} catch (err) {
|
|
31530
31530
|
return [];
|
|
31531
31531
|
}
|
|
31532
31532
|
}
|
|
31533
31533
|
function getFirst(dir, filter) {
|
|
31534
31534
|
var files = readdirSync(dir).filter(filter);
|
|
31535
|
-
return files[0] && path$
|
|
31535
|
+
return files[0] && path$37.join(dir, files[0]);
|
|
31536
31536
|
}
|
|
31537
31537
|
function matchBuild(name) {
|
|
31538
31538
|
return /\.node$/.test(name);
|
|
@@ -37004,8 +37004,8 @@ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37004
37004
|
var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
37005
37005
|
var FormattedLogger = require_formatted();
|
|
37006
37006
|
var _ = require_lodash();
|
|
37007
|
-
var fs$
|
|
37008
|
-
var path$
|
|
37007
|
+
var fs$14 = __require("fs/promises");
|
|
37008
|
+
var path$36 = __require("path");
|
|
37009
37009
|
var os$10 = __require("os");
|
|
37010
37010
|
var { makeDirs } = require_utils$3();
|
|
37011
37011
|
/**
|
|
@@ -37051,7 +37051,7 @@ var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37051
37051
|
*/
|
|
37052
37052
|
init(loggerFactory) {
|
|
37053
37053
|
super.init(loggerFactory);
|
|
37054
|
-
this.logFolder = path$
|
|
37054
|
+
this.logFolder = path$36.resolve(this.render(this.opts.folder, {
|
|
37055
37055
|
nodeID: this.broker.nodeID,
|
|
37056
37056
|
namespace: this.broker.namespace
|
|
37057
37057
|
}));
|
|
@@ -37076,7 +37076,7 @@ var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37076
37076
|
*/
|
|
37077
37077
|
getFilename() {
|
|
37078
37078
|
const date = (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
|
37079
|
-
return path$
|
|
37079
|
+
return path$36.join(this.logFolder, this.render(this.opts.filename, {
|
|
37080
37080
|
date,
|
|
37081
37081
|
nodeID: this.broker.nodeID,
|
|
37082
37082
|
namespace: this.broker.namespace
|
|
@@ -37108,7 +37108,7 @@ var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37108
37108
|
const rows = Array.from(this.queue);
|
|
37109
37109
|
this.queue.length = 0;
|
|
37110
37110
|
const buf = rows.join(this.opts.eol) + this.opts.eol;
|
|
37111
|
-
return fs$
|
|
37111
|
+
return fs$14.appendFile(filename, buf).catch((err) => {
|
|
37112
37112
|
/* istanbul ignore next */
|
|
37113
37113
|
console.debug("Unable to write log file:", filename, err);
|
|
37114
37114
|
});
|
|
@@ -37457,7 +37457,7 @@ var require_layouts = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37457
37457
|
var dateFormat = require_lib$5();
|
|
37458
37458
|
var os$9 = __require("os");
|
|
37459
37459
|
var util$3 = __require("util");
|
|
37460
|
-
var path$
|
|
37460
|
+
var path$35 = __require("path");
|
|
37461
37461
|
var styles = {
|
|
37462
37462
|
bold: [1, 22],
|
|
37463
37463
|
italic: [3, 23],
|
|
@@ -37623,8 +37623,8 @@ var require_layouts = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37623
37623
|
let filename = loggingEvent.fileName || "";
|
|
37624
37624
|
if (specifier) {
|
|
37625
37625
|
const fileDepth = parseInt(specifier, 10);
|
|
37626
|
-
const fileList = filename.split(path$
|
|
37627
|
-
if (fileList.length > fileDepth) filename = fileList.slice(-fileDepth).join(path$
|
|
37626
|
+
const fileList = filename.split(path$35.sep);
|
|
37627
|
+
if (fileList.length > fileDepth) filename = fileList.slice(-fileDepth).join(path$35.sep);
|
|
37628
37628
|
}
|
|
37629
37629
|
return filename;
|
|
37630
37630
|
}
|
|
@@ -38626,7 +38626,7 @@ var require_clone = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
38626
38626
|
//#endregion
|
|
38627
38627
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
38628
38628
|
var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38629
|
-
var fs$
|
|
38629
|
+
var fs$13 = __require("fs");
|
|
38630
38630
|
var polyfills = require_polyfills();
|
|
38631
38631
|
var legacy = require_legacy_streams();
|
|
38632
38632
|
var clone = require_clone();
|
|
@@ -38655,36 +38655,36 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
38655
38655
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
38656
38656
|
console.error(m);
|
|
38657
38657
|
};
|
|
38658
|
-
if (!fs$
|
|
38659
|
-
publishQueue(fs$
|
|
38660
|
-
fs$
|
|
38658
|
+
if (!fs$13[gracefulQueue]) {
|
|
38659
|
+
publishQueue(fs$13, global[gracefulQueue] || []);
|
|
38660
|
+
fs$13.close = (function(fs$close) {
|
|
38661
38661
|
function close(fd, cb) {
|
|
38662
|
-
return fs$close.call(fs$
|
|
38662
|
+
return fs$close.call(fs$13, fd, function(err) {
|
|
38663
38663
|
if (!err) resetQueue();
|
|
38664
38664
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
38665
38665
|
});
|
|
38666
38666
|
}
|
|
38667
38667
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
38668
38668
|
return close;
|
|
38669
|
-
})(fs$
|
|
38670
|
-
fs$
|
|
38669
|
+
})(fs$13.close);
|
|
38670
|
+
fs$13.closeSync = (function(fs$closeSync) {
|
|
38671
38671
|
function closeSync(fd) {
|
|
38672
|
-
fs$closeSync.apply(fs$
|
|
38672
|
+
fs$closeSync.apply(fs$13, arguments);
|
|
38673
38673
|
resetQueue();
|
|
38674
38674
|
}
|
|
38675
38675
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
38676
38676
|
return closeSync;
|
|
38677
|
-
})(fs$
|
|
38677
|
+
})(fs$13.closeSync);
|
|
38678
38678
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
38679
|
-
debug(fs$
|
|
38680
|
-
__require("assert").equal(fs$
|
|
38679
|
+
debug(fs$13[gracefulQueue]);
|
|
38680
|
+
__require("assert").equal(fs$13[gracefulQueue].length, 0);
|
|
38681
38681
|
});
|
|
38682
38682
|
}
|
|
38683
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
38684
|
-
module.exports = patch(clone(fs$
|
|
38685
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
38686
|
-
module.exports = patch(fs$
|
|
38687
|
-
fs$
|
|
38683
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$13[gracefulQueue]);
|
|
38684
|
+
module.exports = patch(clone(fs$13));
|
|
38685
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$13.__patched) {
|
|
38686
|
+
module.exports = patch(fs$13);
|
|
38687
|
+
fs$13.__patched = true;
|
|
38688
38688
|
}
|
|
38689
38689
|
function patch(fs) {
|
|
38690
38690
|
polyfills(fs);
|
|
@@ -38939,23 +38939,23 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
38939
38939
|
}
|
|
38940
38940
|
function enqueue(elem) {
|
|
38941
38941
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
38942
|
-
fs$
|
|
38942
|
+
fs$13[gracefulQueue].push(elem);
|
|
38943
38943
|
retry();
|
|
38944
38944
|
}
|
|
38945
38945
|
var retryTimer;
|
|
38946
38946
|
function resetQueue() {
|
|
38947
38947
|
var now = Date.now();
|
|
38948
|
-
for (var i = 0; i < fs$
|
|
38949
|
-
fs$
|
|
38950
|
-
fs$
|
|
38948
|
+
for (var i = 0; i < fs$13[gracefulQueue].length; ++i) if (fs$13[gracefulQueue][i].length > 2) {
|
|
38949
|
+
fs$13[gracefulQueue][i][3] = now;
|
|
38950
|
+
fs$13[gracefulQueue][i][4] = now;
|
|
38951
38951
|
}
|
|
38952
38952
|
retry();
|
|
38953
38953
|
}
|
|
38954
38954
|
function retry() {
|
|
38955
38955
|
clearTimeout(retryTimer);
|
|
38956
38956
|
retryTimer = void 0;
|
|
38957
|
-
if (fs$
|
|
38958
|
-
var elem = fs$
|
|
38957
|
+
if (fs$13[gracefulQueue].length === 0) return;
|
|
38958
|
+
var elem = fs$13[gracefulQueue].shift();
|
|
38959
38959
|
var fn = elem[0];
|
|
38960
38960
|
var args = elem[1];
|
|
38961
38961
|
var err = elem[2];
|
|
@@ -38974,7 +38974,7 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
38974
38974
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
38975
38975
|
debug("RETRY", fn.name, args);
|
|
38976
38976
|
fn.apply(null, args.concat([startTime]));
|
|
38977
|
-
} else fs$
|
|
38977
|
+
} else fs$13[gracefulQueue].push(elem);
|
|
38978
38978
|
}
|
|
38979
38979
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
38980
38980
|
}
|
|
@@ -39062,9 +39062,9 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
39062
39062
|
//#endregion
|
|
39063
39063
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/mkdirs/win32.js
|
|
39064
39064
|
var require_win32 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39065
|
-
var path$
|
|
39065
|
+
var path$34 = __require("path");
|
|
39066
39066
|
function getRootPath(p) {
|
|
39067
|
-
p = path$
|
|
39067
|
+
p = path$34.normalize(path$34.resolve(p)).split(path$34.sep);
|
|
39068
39068
|
if (p.length > 0) return p[0];
|
|
39069
39069
|
return null;
|
|
39070
39070
|
}
|
|
@@ -39083,7 +39083,7 @@ var require_win32 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39083
39083
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/mkdirs/mkdirs.js
|
|
39084
39084
|
var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39085
39085
|
var fs = require_graceful_fs();
|
|
39086
|
-
var path$
|
|
39086
|
+
var path$33 = __require("path");
|
|
39087
39087
|
var invalidWin32Path = require_win32().invalidWin32Path;
|
|
39088
39088
|
var o777 = parseInt("0777", 8);
|
|
39089
39089
|
function mkdirs(p, opts, callback, made) {
|
|
@@ -39101,7 +39101,7 @@ var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39101
39101
|
if (mode === void 0) mode = o777 & ~process.umask();
|
|
39102
39102
|
if (!made) made = null;
|
|
39103
39103
|
callback = callback || function() {};
|
|
39104
|
-
p = path$
|
|
39104
|
+
p = path$33.resolve(p);
|
|
39105
39105
|
xfs.mkdir(p, mode, (er) => {
|
|
39106
39106
|
if (!er) {
|
|
39107
39107
|
made = made || p;
|
|
@@ -39109,8 +39109,8 @@ var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39109
39109
|
}
|
|
39110
39110
|
switch (er.code) {
|
|
39111
39111
|
case "ENOENT":
|
|
39112
|
-
if (path$
|
|
39113
|
-
mkdirs(path$
|
|
39112
|
+
if (path$33.dirname(p) === p) return callback(er);
|
|
39113
|
+
mkdirs(path$33.dirname(p), opts, (er, made) => {
|
|
39114
39114
|
if (er) callback(er, made);
|
|
39115
39115
|
else mkdirs(p, opts, callback, made);
|
|
39116
39116
|
});
|
|
@@ -39130,7 +39130,7 @@ var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39130
39130
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js
|
|
39131
39131
|
var require_mkdirs_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39132
39132
|
var fs = require_graceful_fs();
|
|
39133
|
-
var path$
|
|
39133
|
+
var path$32 = __require("path");
|
|
39134
39134
|
var invalidWin32Path = require_win32().invalidWin32Path;
|
|
39135
39135
|
var o777 = parseInt("0777", 8);
|
|
39136
39136
|
function mkdirsSync(p, opts, made) {
|
|
@@ -39144,14 +39144,14 @@ var require_mkdirs_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39144
39144
|
}
|
|
39145
39145
|
if (mode === void 0) mode = o777 & ~process.umask();
|
|
39146
39146
|
if (!made) made = null;
|
|
39147
|
-
p = path$
|
|
39147
|
+
p = path$32.resolve(p);
|
|
39148
39148
|
try {
|
|
39149
39149
|
xfs.mkdirSync(p, mode);
|
|
39150
39150
|
made = made || p;
|
|
39151
39151
|
} catch (err0) {
|
|
39152
39152
|
if (err0.code === "ENOENT") {
|
|
39153
|
-
if (path$
|
|
39154
|
-
made = mkdirsSync(path$
|
|
39153
|
+
if (path$32.dirname(p) === p) throw err0;
|
|
39154
|
+
made = mkdirsSync(path$32.dirname(p), opts, made);
|
|
39155
39155
|
mkdirsSync(p, opts, made);
|
|
39156
39156
|
} else {
|
|
39157
39157
|
let stat;
|
|
@@ -39187,10 +39187,10 @@ var require_mkdirs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39187
39187
|
var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39188
39188
|
var fs = require_graceful_fs();
|
|
39189
39189
|
var os$8 = __require("os");
|
|
39190
|
-
var path$
|
|
39190
|
+
var path$31 = __require("path");
|
|
39191
39191
|
function hasMillisResSync() {
|
|
39192
|
-
let tmpfile = path$
|
|
39193
|
-
tmpfile = path$
|
|
39192
|
+
let tmpfile = path$31.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
|
|
39193
|
+
tmpfile = path$31.join(os$8.tmpdir(), tmpfile);
|
|
39194
39194
|
const d = /* @__PURE__ */ new Date(1435410243862);
|
|
39195
39195
|
fs.writeFileSync(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141");
|
|
39196
39196
|
const fd = fs.openSync(tmpfile, "r+");
|
|
@@ -39199,8 +39199,8 @@ var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39199
39199
|
return fs.statSync(tmpfile).mtime > 1435410243e3;
|
|
39200
39200
|
}
|
|
39201
39201
|
function hasMillisRes(callback) {
|
|
39202
|
-
let tmpfile = path$
|
|
39203
|
-
tmpfile = path$
|
|
39202
|
+
let tmpfile = path$31.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
|
|
39203
|
+
tmpfile = path$31.join(os$8.tmpdir(), tmpfile);
|
|
39204
39204
|
const d = /* @__PURE__ */ new Date(1435410243862);
|
|
39205
39205
|
fs.writeFile(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141", (err) => {
|
|
39206
39206
|
if (err) return callback(err);
|
|
@@ -39251,7 +39251,7 @@ var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39251
39251
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/util/stat.js
|
|
39252
39252
|
var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39253
39253
|
var fs = require_graceful_fs();
|
|
39254
|
-
var path$
|
|
39254
|
+
var path$30 = __require("path");
|
|
39255
39255
|
var NODE_VERSION_MAJOR_WITH_BIGINT = 10;
|
|
39256
39256
|
var NODE_VERSION_MINOR_WITH_BIGINT = 5;
|
|
39257
39257
|
var NODE_VERSION_PATCH_WITH_BIGINT = 0;
|
|
@@ -39344,9 +39344,9 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39344
39344
|
};
|
|
39345
39345
|
}
|
|
39346
39346
|
function checkParentPaths(src, srcStat, dest, funcName, cb) {
|
|
39347
|
-
const srcParent = path$
|
|
39348
|
-
const destParent = path$
|
|
39349
|
-
if (destParent === srcParent || destParent === path$
|
|
39347
|
+
const srcParent = path$30.resolve(path$30.dirname(src));
|
|
39348
|
+
const destParent = path$30.resolve(path$30.dirname(dest));
|
|
39349
|
+
if (destParent === srcParent || destParent === path$30.parse(destParent).root) return cb();
|
|
39350
39350
|
if (nodeSupportsBigInt()) fs.stat(destParent, { bigint: true }, (err, destStat) => {
|
|
39351
39351
|
if (err) {
|
|
39352
39352
|
if (err.code === "ENOENT") return cb();
|
|
@@ -39365,9 +39365,9 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39365
39365
|
});
|
|
39366
39366
|
}
|
|
39367
39367
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
39368
|
-
const srcParent = path$
|
|
39369
|
-
const destParent = path$
|
|
39370
|
-
if (destParent === srcParent || destParent === path$
|
|
39368
|
+
const srcParent = path$30.resolve(path$30.dirname(src));
|
|
39369
|
+
const destParent = path$30.resolve(path$30.dirname(dest));
|
|
39370
|
+
if (destParent === srcParent || destParent === path$30.parse(destParent).root) return;
|
|
39371
39371
|
let destStat;
|
|
39372
39372
|
try {
|
|
39373
39373
|
if (nodeSupportsBigInt()) destStat = fs.statSync(destParent, { bigint: true });
|
|
@@ -39380,8 +39380,8 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39380
39380
|
return checkParentPathsSync(src, srcStat, destParent, funcName);
|
|
39381
39381
|
}
|
|
39382
39382
|
function isSrcSubdir(src, dest) {
|
|
39383
|
-
const srcArr = path$
|
|
39384
|
-
const destArr = path$
|
|
39383
|
+
const srcArr = path$30.resolve(src).split(path$30.sep).filter((i) => i);
|
|
39384
|
+
const destArr = path$30.resolve(dest).split(path$30.sep).filter((i) => i);
|
|
39385
39385
|
return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
|
|
39386
39386
|
}
|
|
39387
39387
|
function errMsg(src, dest, funcName) {
|
|
@@ -39411,7 +39411,7 @@ var require_buffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39411
39411
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/copy-sync/copy-sync.js
|
|
39412
39412
|
var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39413
39413
|
var fs = require_graceful_fs();
|
|
39414
|
-
var path$
|
|
39414
|
+
var path$29 = __require("path");
|
|
39415
39415
|
var mkdirpSync = require_mkdirs().mkdirsSync;
|
|
39416
39416
|
var utimesSync = require_utimes().utimesMillisSync;
|
|
39417
39417
|
var stat = require_stat();
|
|
@@ -39428,7 +39428,7 @@ var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39428
39428
|
}
|
|
39429
39429
|
function handleFilterAndCopy(destStat, src, dest, opts) {
|
|
39430
39430
|
if (opts.filter && !opts.filter(src, dest)) return;
|
|
39431
|
-
const destParent = path$
|
|
39431
|
+
const destParent = path$29.dirname(dest);
|
|
39432
39432
|
if (!fs.existsSync(destParent)) mkdirpSync(destParent);
|
|
39433
39433
|
return startCopy(destStat, src, dest, opts);
|
|
39434
39434
|
}
|
|
@@ -39490,14 +39490,14 @@ var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39490
39490
|
fs.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
39491
39491
|
}
|
|
39492
39492
|
function copyDirItem(item, src, dest, opts) {
|
|
39493
|
-
const srcItem = path$
|
|
39494
|
-
const destItem = path$
|
|
39493
|
+
const srcItem = path$29.join(src, item);
|
|
39494
|
+
const destItem = path$29.join(dest, item);
|
|
39495
39495
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy");
|
|
39496
39496
|
return startCopy(destStat, srcItem, destItem, opts);
|
|
39497
39497
|
}
|
|
39498
39498
|
function onLink(destStat, src, dest, opts) {
|
|
39499
39499
|
let resolvedSrc = fs.readlinkSync(src);
|
|
39500
|
-
if (opts.dereference) resolvedSrc = path$
|
|
39500
|
+
if (opts.dereference) resolvedSrc = path$29.resolve(process.cwd(), resolvedSrc);
|
|
39501
39501
|
if (!destStat) return fs.symlinkSync(resolvedSrc, dest);
|
|
39502
39502
|
else {
|
|
39503
39503
|
let resolvedDest;
|
|
@@ -39507,7 +39507,7 @@ var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39507
39507
|
if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs.symlinkSync(resolvedSrc, dest);
|
|
39508
39508
|
throw err;
|
|
39509
39509
|
}
|
|
39510
|
-
if (opts.dereference) resolvedDest = path$
|
|
39510
|
+
if (opts.dereference) resolvedDest = path$29.resolve(process.cwd(), resolvedDest);
|
|
39511
39511
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
39512
39512
|
if (fs.statSync(dest).isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
|
|
39513
39513
|
return copyLink(resolvedSrc, dest);
|
|
@@ -39541,7 +39541,7 @@ var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39541
39541
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/copy/copy.js
|
|
39542
39542
|
var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39543
39543
|
var fs = require_graceful_fs();
|
|
39544
|
-
var path$
|
|
39544
|
+
var path$28 = __require("path");
|
|
39545
39545
|
var mkdirp = require_mkdirs().mkdirs;
|
|
39546
39546
|
var pathExists = require_path_exists().pathExists;
|
|
39547
39547
|
var utimes = require_utimes().utimesMillis;
|
|
@@ -39568,7 +39568,7 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39568
39568
|
});
|
|
39569
39569
|
}
|
|
39570
39570
|
function checkParentDir(destStat, src, dest, opts, cb) {
|
|
39571
|
-
const destParent = path$
|
|
39571
|
+
const destParent = path$28.dirname(dest);
|
|
39572
39572
|
pathExists(destParent, (err, dirExists) => {
|
|
39573
39573
|
if (err) return cb(err);
|
|
39574
39574
|
if (dirExists) return startCopy(destStat, src, dest, opts, cb);
|
|
@@ -39655,8 +39655,8 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39655
39655
|
return copyDirItem(items, item, src, dest, opts, cb);
|
|
39656
39656
|
}
|
|
39657
39657
|
function copyDirItem(items, item, src, dest, opts, cb) {
|
|
39658
|
-
const srcItem = path$
|
|
39659
|
-
const destItem = path$
|
|
39658
|
+
const srcItem = path$28.join(src, item);
|
|
39659
|
+
const destItem = path$28.join(dest, item);
|
|
39660
39660
|
stat.checkPaths(srcItem, destItem, "copy", (err, stats) => {
|
|
39661
39661
|
if (err) return cb(err);
|
|
39662
39662
|
const { destStat } = stats;
|
|
@@ -39669,14 +39669,14 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39669
39669
|
function onLink(destStat, src, dest, opts, cb) {
|
|
39670
39670
|
fs.readlink(src, (err, resolvedSrc) => {
|
|
39671
39671
|
if (err) return cb(err);
|
|
39672
|
-
if (opts.dereference) resolvedSrc = path$
|
|
39672
|
+
if (opts.dereference) resolvedSrc = path$28.resolve(process.cwd(), resolvedSrc);
|
|
39673
39673
|
if (!destStat) return fs.symlink(resolvedSrc, dest, cb);
|
|
39674
39674
|
else fs.readlink(dest, (err, resolvedDest) => {
|
|
39675
39675
|
if (err) {
|
|
39676
39676
|
if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs.symlink(resolvedSrc, dest, cb);
|
|
39677
39677
|
return cb(err);
|
|
39678
39678
|
}
|
|
39679
|
-
if (opts.dereference) resolvedDest = path$
|
|
39679
|
+
if (opts.dereference) resolvedDest = path$28.resolve(process.cwd(), resolvedDest);
|
|
39680
39680
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) return cb(/* @__PURE__ */ new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
|
|
39681
39681
|
if (destStat.isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) return cb(/* @__PURE__ */ new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`));
|
|
39682
39682
|
return copyLink(resolvedSrc, dest, cb);
|
|
@@ -39701,7 +39701,7 @@ var require_copy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39701
39701
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/remove/rimraf.js
|
|
39702
39702
|
var require_rimraf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39703
39703
|
var fs = require_graceful_fs();
|
|
39704
|
-
var path$
|
|
39704
|
+
var path$27 = __require("path");
|
|
39705
39705
|
var assert$2 = __require("assert");
|
|
39706
39706
|
var isWindows = process.platform === "win32";
|
|
39707
39707
|
function defaults(options) {
|
|
@@ -39816,7 +39816,7 @@ var require_rimraf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39816
39816
|
let errState;
|
|
39817
39817
|
if (n === 0) return options.rmdir(p, cb);
|
|
39818
39818
|
files.forEach((f) => {
|
|
39819
|
-
rimraf(path$
|
|
39819
|
+
rimraf(path$27.join(p, f), options, (er) => {
|
|
39820
39820
|
if (errState) return;
|
|
39821
39821
|
if (er) return cb(errState = er);
|
|
39822
39822
|
if (--n === 0) options.rmdir(p, cb);
|
|
@@ -39863,7 +39863,7 @@ var require_rimraf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39863
39863
|
function rmkidsSync(p, options) {
|
|
39864
39864
|
assert$2(p);
|
|
39865
39865
|
assert$2(options);
|
|
39866
|
-
options.readdirSync(p).forEach((f) => rimrafSync(path$
|
|
39866
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path$27.join(p, f), options));
|
|
39867
39867
|
if (isWindows) {
|
|
39868
39868
|
const startTime = Date.now();
|
|
39869
39869
|
do
|
|
@@ -39891,14 +39891,14 @@ var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39891
39891
|
var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39892
39892
|
var u = require_universalify().fromCallback;
|
|
39893
39893
|
var fs = require_graceful_fs();
|
|
39894
|
-
var path$
|
|
39894
|
+
var path$26 = __require("path");
|
|
39895
39895
|
var mkdir = require_mkdirs();
|
|
39896
39896
|
var remove = require_remove();
|
|
39897
39897
|
var emptyDir = u(function emptyDir(dir, callback) {
|
|
39898
39898
|
callback = callback || function() {};
|
|
39899
39899
|
fs.readdir(dir, (err, items) => {
|
|
39900
39900
|
if (err) return mkdir.mkdirs(dir, callback);
|
|
39901
|
-
items = items.map((item) => path$
|
|
39901
|
+
items = items.map((item) => path$26.join(dir, item));
|
|
39902
39902
|
deleteItem();
|
|
39903
39903
|
function deleteItem() {
|
|
39904
39904
|
const item = items.pop();
|
|
@@ -39918,7 +39918,7 @@ var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39918
39918
|
return mkdir.mkdirsSync(dir);
|
|
39919
39919
|
}
|
|
39920
39920
|
items.forEach((item) => {
|
|
39921
|
-
item = path$
|
|
39921
|
+
item = path$26.join(dir, item);
|
|
39922
39922
|
remove.removeSync(item);
|
|
39923
39923
|
});
|
|
39924
39924
|
}
|
|
@@ -39933,7 +39933,7 @@ var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39933
39933
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/file.js
|
|
39934
39934
|
var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39935
39935
|
var u = require_universalify().fromCallback;
|
|
39936
|
-
var path$
|
|
39936
|
+
var path$25 = __require("path");
|
|
39937
39937
|
var fs = require_graceful_fs();
|
|
39938
39938
|
var mkdir = require_mkdirs();
|
|
39939
39939
|
var pathExists = require_path_exists().pathExists;
|
|
@@ -39946,7 +39946,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39946
39946
|
}
|
|
39947
39947
|
fs.stat(file, (err, stats) => {
|
|
39948
39948
|
if (!err && stats.isFile()) return callback();
|
|
39949
|
-
const dir = path$
|
|
39949
|
+
const dir = path$25.dirname(file);
|
|
39950
39950
|
pathExists(dir, (err, dirExists) => {
|
|
39951
39951
|
if (err) return callback(err);
|
|
39952
39952
|
if (dirExists) return makeFile();
|
|
@@ -39963,7 +39963,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39963
39963
|
stats = fs.statSync(file);
|
|
39964
39964
|
} catch (e) {}
|
|
39965
39965
|
if (stats && stats.isFile()) return;
|
|
39966
|
-
const dir = path$
|
|
39966
|
+
const dir = path$25.dirname(file);
|
|
39967
39967
|
if (!fs.existsSync(dir)) mkdir.mkdirsSync(dir);
|
|
39968
39968
|
fs.writeFileSync(file, "");
|
|
39969
39969
|
}
|
|
@@ -39976,7 +39976,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39976
39976
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/link.js
|
|
39977
39977
|
var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39978
39978
|
var u = require_universalify().fromCallback;
|
|
39979
|
-
var path$
|
|
39979
|
+
var path$24 = __require("path");
|
|
39980
39980
|
var fs = require_graceful_fs();
|
|
39981
39981
|
var mkdir = require_mkdirs();
|
|
39982
39982
|
var pathExists = require_path_exists().pathExists;
|
|
@@ -39995,7 +39995,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
39995
39995
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
39996
39996
|
return callback(err);
|
|
39997
39997
|
}
|
|
39998
|
-
const dir = path$
|
|
39998
|
+
const dir = path$24.dirname(dstpath);
|
|
39999
39999
|
pathExists(dir, (err, dirExists) => {
|
|
40000
40000
|
if (err) return callback(err);
|
|
40001
40001
|
if (dirExists) return makeLink(srcpath, dstpath);
|
|
@@ -40015,7 +40015,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40015
40015
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
40016
40016
|
throw err;
|
|
40017
40017
|
}
|
|
40018
|
-
const dir = path$
|
|
40018
|
+
const dir = path$24.dirname(dstpath);
|
|
40019
40019
|
if (fs.existsSync(dir)) return fs.linkSync(srcpath, dstpath);
|
|
40020
40020
|
mkdir.mkdirsSync(dir);
|
|
40021
40021
|
return fs.linkSync(srcpath, dstpath);
|
|
@@ -40028,7 +40028,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40028
40028
|
//#endregion
|
|
40029
40029
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/symlink-paths.js
|
|
40030
40030
|
var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40031
|
-
var path$
|
|
40031
|
+
var path$23 = __require("path");
|
|
40032
40032
|
var fs = require_graceful_fs();
|
|
40033
40033
|
var pathExists = require_path_exists().pathExists;
|
|
40034
40034
|
/**
|
|
@@ -40053,7 +40053,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
40053
40053
|
* the ability to pass in `relative to current working direcotry` paths.
|
|
40054
40054
|
*/
|
|
40055
40055
|
function symlinkPaths(srcpath, dstpath, callback) {
|
|
40056
|
-
if (path$
|
|
40056
|
+
if (path$23.isAbsolute(srcpath)) return fs.lstat(srcpath, (err) => {
|
|
40057
40057
|
if (err) {
|
|
40058
40058
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
40059
40059
|
return callback(err);
|
|
@@ -40064,8 +40064,8 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
40064
40064
|
});
|
|
40065
40065
|
});
|
|
40066
40066
|
else {
|
|
40067
|
-
const dstdir = path$
|
|
40068
|
-
const relativeToDst = path$
|
|
40067
|
+
const dstdir = path$23.dirname(dstpath);
|
|
40068
|
+
const relativeToDst = path$23.join(dstdir, srcpath);
|
|
40069
40069
|
return pathExists(relativeToDst, (err, exists) => {
|
|
40070
40070
|
if (err) return callback(err);
|
|
40071
40071
|
if (exists) return callback(null, {
|
|
@@ -40079,7 +40079,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
40079
40079
|
}
|
|
40080
40080
|
return callback(null, {
|
|
40081
40081
|
"toCwd": srcpath,
|
|
40082
|
-
"toDst": path$
|
|
40082
|
+
"toDst": path$23.relative(dstdir, srcpath)
|
|
40083
40083
|
});
|
|
40084
40084
|
});
|
|
40085
40085
|
});
|
|
@@ -40087,7 +40087,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
40087
40087
|
}
|
|
40088
40088
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
40089
40089
|
let exists;
|
|
40090
|
-
if (path$
|
|
40090
|
+
if (path$23.isAbsolute(srcpath)) {
|
|
40091
40091
|
exists = fs.existsSync(srcpath);
|
|
40092
40092
|
if (!exists) throw new Error("absolute srcpath does not exist");
|
|
40093
40093
|
return {
|
|
@@ -40095,8 +40095,8 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
40095
40095
|
"toDst": srcpath
|
|
40096
40096
|
};
|
|
40097
40097
|
} else {
|
|
40098
|
-
const dstdir = path$
|
|
40099
|
-
const relativeToDst = path$
|
|
40098
|
+
const dstdir = path$23.dirname(dstpath);
|
|
40099
|
+
const relativeToDst = path$23.join(dstdir, srcpath);
|
|
40100
40100
|
exists = fs.existsSync(relativeToDst);
|
|
40101
40101
|
if (exists) return {
|
|
40102
40102
|
"toCwd": relativeToDst,
|
|
@@ -40107,7 +40107,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
40107
40107
|
if (!exists) throw new Error("relative srcpath does not exist");
|
|
40108
40108
|
return {
|
|
40109
40109
|
"toCwd": srcpath,
|
|
40110
|
-
"toDst": path$
|
|
40110
|
+
"toDst": path$23.relative(dstdir, srcpath)
|
|
40111
40111
|
};
|
|
40112
40112
|
}
|
|
40113
40113
|
}
|
|
@@ -40150,7 +40150,7 @@ var require_symlink_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40150
40150
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/symlink.js
|
|
40151
40151
|
var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40152
40152
|
var u = require_universalify().fromCallback;
|
|
40153
|
-
var path$
|
|
40153
|
+
var path$22 = __require("path");
|
|
40154
40154
|
var fs = require_graceful_fs();
|
|
40155
40155
|
var _mkdirs = require_mkdirs();
|
|
40156
40156
|
var mkdirs = _mkdirs.mkdirs;
|
|
@@ -40173,7 +40173,7 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40173
40173
|
srcpath = relative.toDst;
|
|
40174
40174
|
symlinkType(relative.toCwd, type, (err, type) => {
|
|
40175
40175
|
if (err) return callback(err);
|
|
40176
|
-
const dir = path$
|
|
40176
|
+
const dir = path$22.dirname(dstpath);
|
|
40177
40177
|
pathExists(dir, (err, dirExists) => {
|
|
40178
40178
|
if (err) return callback(err);
|
|
40179
40179
|
if (dirExists) return fs.symlink(srcpath, dstpath, type, callback);
|
|
@@ -40191,7 +40191,7 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40191
40191
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
40192
40192
|
srcpath = relative.toDst;
|
|
40193
40193
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
40194
|
-
const dir = path$
|
|
40194
|
+
const dir = path$22.dirname(dstpath);
|
|
40195
40195
|
if (fs.existsSync(dir)) return fs.symlinkSync(srcpath, dstpath, type);
|
|
40196
40196
|
mkdirsSync(dir);
|
|
40197
40197
|
return fs.symlinkSync(srcpath, dstpath, type);
|
|
@@ -40331,7 +40331,7 @@ var require_jsonfile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40331
40331
|
//#endregion
|
|
40332
40332
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/json/output-json.js
|
|
40333
40333
|
var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40334
|
-
var path$
|
|
40334
|
+
var path$21 = __require("path");
|
|
40335
40335
|
var mkdir = require_mkdirs();
|
|
40336
40336
|
var pathExists = require_path_exists().pathExists;
|
|
40337
40337
|
var jsonFile = require_jsonfile();
|
|
@@ -40340,7 +40340,7 @@ var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40340
40340
|
callback = options;
|
|
40341
40341
|
options = {};
|
|
40342
40342
|
}
|
|
40343
|
-
const dir = path$
|
|
40343
|
+
const dir = path$21.dirname(file);
|
|
40344
40344
|
pathExists(dir, (err, itDoes) => {
|
|
40345
40345
|
if (err) return callback(err);
|
|
40346
40346
|
if (itDoes) return jsonFile.writeJson(file, data, options, callback);
|
|
@@ -40356,11 +40356,11 @@ var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40356
40356
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/json/output-json-sync.js
|
|
40357
40357
|
var require_output_json_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40358
40358
|
var fs = require_graceful_fs();
|
|
40359
|
-
var path$
|
|
40359
|
+
var path$20 = __require("path");
|
|
40360
40360
|
var mkdir = require_mkdirs();
|
|
40361
40361
|
var jsonFile = require_jsonfile();
|
|
40362
40362
|
function outputJsonSync(file, data, options) {
|
|
40363
|
-
const dir = path$
|
|
40363
|
+
const dir = path$20.dirname(file);
|
|
40364
40364
|
if (!fs.existsSync(dir)) mkdir.mkdirsSync(dir);
|
|
40365
40365
|
jsonFile.writeJsonSync(file, data, options);
|
|
40366
40366
|
}
|
|
@@ -40385,7 +40385,7 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40385
40385
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/move-sync/move-sync.js
|
|
40386
40386
|
var require_move_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40387
40387
|
var fs = require_graceful_fs();
|
|
40388
|
-
var path$
|
|
40388
|
+
var path$19 = __require("path");
|
|
40389
40389
|
var copySync = require_copy_sync().copySync;
|
|
40390
40390
|
var removeSync = require_remove().removeSync;
|
|
40391
40391
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -40395,7 +40395,7 @@ var require_move_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40395
40395
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
40396
40396
|
const { srcStat } = stat.checkPathsSync(src, dest, "move");
|
|
40397
40397
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
40398
|
-
mkdirpSync(path$
|
|
40398
|
+
mkdirpSync(path$19.dirname(dest));
|
|
40399
40399
|
return doRename(src, dest, overwrite);
|
|
40400
40400
|
}
|
|
40401
40401
|
function doRename(src, dest, overwrite) {
|
|
@@ -40432,7 +40432,7 @@ var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40432
40432
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/move/move.js
|
|
40433
40433
|
var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40434
40434
|
var fs = require_graceful_fs();
|
|
40435
|
-
var path$
|
|
40435
|
+
var path$18 = __require("path");
|
|
40436
40436
|
var copy = require_copy().copy;
|
|
40437
40437
|
var remove = require_remove().remove;
|
|
40438
40438
|
var mkdirp = require_mkdirs().mkdirp;
|
|
@@ -40449,7 +40449,7 @@ var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40449
40449
|
const { srcStat } = stats;
|
|
40450
40450
|
stat.checkParentPaths(src, srcStat, dest, "move", (err) => {
|
|
40451
40451
|
if (err) return cb(err);
|
|
40452
|
-
mkdirp(path$
|
|
40452
|
+
mkdirp(path$18.dirname(dest), (err) => {
|
|
40453
40453
|
if (err) return cb(err);
|
|
40454
40454
|
return doRename(src, dest, overwrite, cb);
|
|
40455
40455
|
});
|
|
@@ -40496,7 +40496,7 @@ var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40496
40496
|
var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40497
40497
|
var u = require_universalify().fromCallback;
|
|
40498
40498
|
var fs = require_graceful_fs();
|
|
40499
|
-
var path$
|
|
40499
|
+
var path$17 = __require("path");
|
|
40500
40500
|
var mkdir = require_mkdirs();
|
|
40501
40501
|
var pathExists = require_path_exists().pathExists;
|
|
40502
40502
|
function outputFile(file, data, encoding, callback) {
|
|
@@ -40504,7 +40504,7 @@ var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40504
40504
|
callback = encoding;
|
|
40505
40505
|
encoding = "utf8";
|
|
40506
40506
|
}
|
|
40507
|
-
const dir = path$
|
|
40507
|
+
const dir = path$17.dirname(file);
|
|
40508
40508
|
pathExists(dir, (err, itDoes) => {
|
|
40509
40509
|
if (err) return callback(err);
|
|
40510
40510
|
if (itDoes) return fs.writeFile(file, data, encoding, callback);
|
|
@@ -40515,7 +40515,7 @@ var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40515
40515
|
});
|
|
40516
40516
|
}
|
|
40517
40517
|
function outputFileSync(file, ...args) {
|
|
40518
|
-
const dir = path$
|
|
40518
|
+
const dir = path$17.dirname(file);
|
|
40519
40519
|
if (fs.existsSync(dir)) return fs.writeFileSync(file, ...args);
|
|
40520
40520
|
mkdir.mkdirsSync(dir);
|
|
40521
40521
|
fs.writeFileSync(file, ...args);
|
|
@@ -40529,9 +40529,9 @@ var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40529
40529
|
//#region ../../node_modules/streamroller/node_modules/fs-extra/lib/index.js
|
|
40530
40530
|
var require_lib$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40531
40531
|
module.exports = Object.assign({}, require_fs(), require_copy_sync(), require_copy(), require_empty(), require_ensure(), require_json(), require_mkdirs(), require_move_sync(), require_move(), require_output(), require_path_exists(), require_remove());
|
|
40532
|
-
var fs$
|
|
40533
|
-
if (Object.getOwnPropertyDescriptor(fs$
|
|
40534
|
-
return fs$
|
|
40532
|
+
var fs$12 = __require("fs");
|
|
40533
|
+
if (Object.getOwnPropertyDescriptor(fs$12, "promises")) Object.defineProperty(module.exports, "promises", { get() {
|
|
40534
|
+
return fs$12.promises;
|
|
40535
40535
|
} });
|
|
40536
40536
|
}));
|
|
40537
40537
|
//#endregion
|
|
@@ -40696,11 +40696,11 @@ var require_lib$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40696
40696
|
//#region ../../node_modules/streamroller/lib/fileNameFormatter.js
|
|
40697
40697
|
var require_fileNameFormatter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40698
40698
|
var debug = require_src()("streamroller:fileNameFormatter");
|
|
40699
|
-
var path$
|
|
40699
|
+
var path$16 = __require("path");
|
|
40700
40700
|
var FILENAME_SEP = ".";
|
|
40701
40701
|
var ZIP_EXT = ".gz";
|
|
40702
40702
|
module.exports = ({ file, keepFileExt, needsIndex, alwaysIncludeDate, compress }) => {
|
|
40703
|
-
const dirAndName = path$
|
|
40703
|
+
const dirAndName = path$16.join(file.dir, file.name);
|
|
40704
40704
|
const ext = (f) => f + file.ext;
|
|
40705
40705
|
const index = (f, i, d) => (needsIndex || !d) && i ? f + FILENAME_SEP + i : f;
|
|
40706
40706
|
const date = (f, i, d) => {
|
|
@@ -40845,7 +40845,7 @@ var require_moveAndMaybeCompressFile = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
40845
40845
|
var require_RollingFileWriteStream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40846
40846
|
var debug = require_src()("streamroller:RollingFileWriteStream");
|
|
40847
40847
|
var fs = require_lib$4();
|
|
40848
|
-
var path$
|
|
40848
|
+
var path$15 = __require("path");
|
|
40849
40849
|
var newNow = require_now();
|
|
40850
40850
|
var format = require_lib$3();
|
|
40851
40851
|
var { Writable: Writable$1 } = __require("stream");
|
|
@@ -40876,8 +40876,8 @@ var require_RollingFileWriteStream = /* @__PURE__ */ __commonJSMin(((exports, mo
|
|
|
40876
40876
|
debug(`constructor: creating RollingFileWriteStream. path=${filePath}`);
|
|
40877
40877
|
super(options);
|
|
40878
40878
|
this.options = this._parseOption(options);
|
|
40879
|
-
this.fileObject = path$
|
|
40880
|
-
if (this.fileObject.dir === "") this.fileObject = path$
|
|
40879
|
+
this.fileObject = path$15.parse(filePath);
|
|
40880
|
+
if (this.fileObject.dir === "") this.fileObject = path$15.parse(path$15.join(process.cwd(), filePath));
|
|
40881
40881
|
this.fileFormatter = fileNameFormatter({
|
|
40882
40882
|
file: this.fileObject,
|
|
40883
40883
|
alwaysIncludeDate: this.options.alwaysIncludePattern,
|
|
@@ -41014,7 +41014,7 @@ var require_RollingFileWriteStream = /* @__PURE__ */ __commonJSMin(((exports, mo
|
|
|
41014
41014
|
const existingFileDetails = await this._getExistingFiles();
|
|
41015
41015
|
debug(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${existingFileDetails.length}`);
|
|
41016
41016
|
debug("_clean: existing files are: ", existingFileDetails);
|
|
41017
|
-
if (this._tooManyFiles(existingFileDetails.length)) await deleteFiles(existingFileDetails.slice(0, existingFileDetails.length - this.options.numToKeep - 1).map((f) => path$
|
|
41017
|
+
if (this._tooManyFiles(existingFileDetails.length)) await deleteFiles(existingFileDetails.slice(0, existingFileDetails.length - this.options.numToKeep - 1).map((f) => path$15.format({
|
|
41018
41018
|
dir: this.fileObject.dir,
|
|
41019
41019
|
base: f.filename
|
|
41020
41020
|
})));
|
|
@@ -41088,7 +41088,7 @@ var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41088
41088
|
//#region ../../node_modules/log4js/lib/appenders/file.js
|
|
41089
41089
|
var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
41090
41090
|
var debug = require_src()("log4js:file");
|
|
41091
|
-
var path$
|
|
41091
|
+
var path$14 = __require("path");
|
|
41092
41092
|
var streams = require_lib$2();
|
|
41093
41093
|
var eol$2 = __require("os").EOL;
|
|
41094
41094
|
function openTheStream(file, fileSize, numFiles, options) {
|
|
@@ -41115,7 +41115,7 @@ var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41115
41115
|
* @param timezoneOffset - optional timezone offset in minutes (default system local)
|
|
41116
41116
|
*/
|
|
41117
41117
|
function fileAppender(file, layout, logSize, numBackups, options, timezoneOffset) {
|
|
41118
|
-
file = path$
|
|
41118
|
+
file = path$14.normalize(file);
|
|
41119
41119
|
numBackups = numBackups === void 0 ? 5 : numBackups;
|
|
41120
41120
|
numBackups = numBackups === 0 ? 1 : numBackups;
|
|
41121
41121
|
debug("Creating file appender (", file, ", ", logSize, ", ", numBackups, ", ", options, ", ", timezoneOffset, ")");
|
|
@@ -41194,13 +41194,13 @@ var require_dateFile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41194
41194
|
//#region ../../node_modules/log4js/lib/appenders/fileSync.js
|
|
41195
41195
|
var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
41196
41196
|
var debug = require_src()("log4js:fileSync");
|
|
41197
|
-
var path$
|
|
41198
|
-
var fs$
|
|
41197
|
+
var path$13 = __require("path");
|
|
41198
|
+
var fs$11 = __require("fs");
|
|
41199
41199
|
var eol = __require("os").EOL || "\n";
|
|
41200
41200
|
function touchFile(file, options) {
|
|
41201
|
-
if (fs$
|
|
41202
|
-
const id = fs$
|
|
41203
|
-
fs$
|
|
41201
|
+
if (fs$11.existsSync(file)) return;
|
|
41202
|
+
const id = fs$11.openSync(file, options.flags, options.mode);
|
|
41203
|
+
fs$11.closeSync(id);
|
|
41204
41204
|
}
|
|
41205
41205
|
var RollingFileSync = class {
|
|
41206
41206
|
constructor(filename, size, backups, options) {
|
|
@@ -41217,7 +41217,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41217
41217
|
function currentFileSize(file) {
|
|
41218
41218
|
let fileSize = 0;
|
|
41219
41219
|
try {
|
|
41220
|
-
fileSize = fs$
|
|
41220
|
+
fileSize = fs$11.statSync(file).size;
|
|
41221
41221
|
} catch (e) {
|
|
41222
41222
|
touchFile(file, options);
|
|
41223
41223
|
}
|
|
@@ -41231,12 +41231,12 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41231
41231
|
}
|
|
41232
41232
|
roll(filename) {
|
|
41233
41233
|
const that = this;
|
|
41234
|
-
const nameMatcher = new RegExp(`^${path$
|
|
41234
|
+
const nameMatcher = new RegExp(`^${path$13.basename(filename)}`);
|
|
41235
41235
|
function justTheseFiles(item) {
|
|
41236
41236
|
return nameMatcher.test(item);
|
|
41237
41237
|
}
|
|
41238
41238
|
function index(filename_) {
|
|
41239
|
-
return parseInt(filename_.substring(`${path$
|
|
41239
|
+
return parseInt(filename_.substring(`${path$13.basename(filename)}.`.length), 10) || 0;
|
|
41240
41240
|
}
|
|
41241
41241
|
function byIndex(a, b) {
|
|
41242
41242
|
if (index(a) > index(b)) return 1;
|
|
@@ -41248,15 +41248,15 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41248
41248
|
debug(`Index of ${fileToRename} is ${idx}`);
|
|
41249
41249
|
if (idx < that.backups) {
|
|
41250
41250
|
try {
|
|
41251
|
-
fs$
|
|
41251
|
+
fs$11.unlinkSync(`${filename}.${idx + 1}`);
|
|
41252
41252
|
} catch (e) {}
|
|
41253
41253
|
debug(`Renaming ${fileToRename} -> ${filename}.${idx + 1}`);
|
|
41254
|
-
fs$
|
|
41254
|
+
fs$11.renameSync(path$13.join(path$13.dirname(filename), fileToRename), `${filename}.${idx + 1}`);
|
|
41255
41255
|
}
|
|
41256
41256
|
}
|
|
41257
41257
|
function renameTheFiles() {
|
|
41258
41258
|
debug("Renaming the old files");
|
|
41259
|
-
fs$
|
|
41259
|
+
fs$11.readdirSync(path$13.dirname(filename)).filter(justTheseFiles).sort(byIndex).reverse().forEach(increaseFileIndex);
|
|
41260
41260
|
}
|
|
41261
41261
|
debug("Rolling, rolling, rolling");
|
|
41262
41262
|
renameTheFiles();
|
|
@@ -41266,7 +41266,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41266
41266
|
function writeTheChunk() {
|
|
41267
41267
|
debug("writing the chunk to the file");
|
|
41268
41268
|
that.currentSize += chunk.length;
|
|
41269
|
-
fs$
|
|
41269
|
+
fs$11.appendFileSync(that.filename, chunk);
|
|
41270
41270
|
}
|
|
41271
41271
|
debug("in write");
|
|
41272
41272
|
if (this.shouldRoll()) {
|
|
@@ -41292,7 +41292,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41292
41292
|
*/
|
|
41293
41293
|
function fileAppender(file, layout, logSize, numBackups, timezoneOffset, options) {
|
|
41294
41294
|
debug("fileSync appender created");
|
|
41295
|
-
file = path$
|
|
41295
|
+
file = path$13.normalize(file);
|
|
41296
41296
|
numBackups = numBackups === void 0 ? 5 : numBackups;
|
|
41297
41297
|
numBackups = numBackups === 0 ? 1 : numBackups;
|
|
41298
41298
|
function openTheStream(filePath, fileSize, numFiles) {
|
|
@@ -41301,7 +41301,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41301
41301
|
else stream = ((f) => {
|
|
41302
41302
|
touchFile(f, options);
|
|
41303
41303
|
return { write(data) {
|
|
41304
|
-
fs$
|
|
41304
|
+
fs$11.appendFileSync(f, data);
|
|
41305
41305
|
} };
|
|
41306
41306
|
})(filePath);
|
|
41307
41307
|
return stream;
|
|
@@ -41326,7 +41326,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41326
41326
|
//#endregion
|
|
41327
41327
|
//#region ../../node_modules/log4js/lib/appenders/index.js
|
|
41328
41328
|
var require_appenders = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
41329
|
-
var path$
|
|
41329
|
+
var path$12 = __require("path");
|
|
41330
41330
|
var debug = require_src()("log4js:appenders");
|
|
41331
41331
|
var configuration = require_configuration();
|
|
41332
41332
|
var clustering = require_clustering();
|
|
@@ -41353,7 +41353,7 @@ var require_appenders = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41353
41353
|
return;
|
|
41354
41354
|
}
|
|
41355
41355
|
};
|
|
41356
|
-
var loadAppenderModule = (type, config) => coreAppenders.get(type) || tryLoading(`./${type}`, config) || tryLoading(type, config) || __require.main && tryLoading(path$
|
|
41356
|
+
var loadAppenderModule = (type, config) => coreAppenders.get(type) || tryLoading(`./${type}`, config) || tryLoading(type, config) || __require.main && tryLoading(path$12.join(path$12.dirname(__require.main.filename), type), config) || tryLoading(path$12.join(process.cwd(), type), config);
|
|
41357
41357
|
var appendersLoading = /* @__PURE__ */ new Set();
|
|
41358
41358
|
var getAppender = (name, config) => {
|
|
41359
41359
|
if (appenders.has(name)) return appenders.get(name);
|
|
@@ -41900,7 +41900,7 @@ var require_log4js$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41900
41900
|
* Website: http://log4js.berlios.de
|
|
41901
41901
|
*/
|
|
41902
41902
|
var debug = require_src()("log4js:main");
|
|
41903
|
-
var fs$
|
|
41903
|
+
var fs$10 = __require("fs");
|
|
41904
41904
|
var deepClone = require_rfdc()({ proto: true });
|
|
41905
41905
|
var configuration = require_configuration();
|
|
41906
41906
|
var layouts = require_layouts();
|
|
@@ -41921,7 +41921,7 @@ var require_log4js$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41921
41921
|
function loadConfigurationFile(filename) {
|
|
41922
41922
|
debug(`Loading configuration from ${filename}`);
|
|
41923
41923
|
try {
|
|
41924
|
-
return JSON.parse(fs$
|
|
41924
|
+
return JSON.parse(fs$10.readFileSync(filename, "utf8"));
|
|
41925
41925
|
} catch (e) {
|
|
41926
41926
|
throw new Error(`Problem reading config from file "${filename}". Error was ${e.message}`, e);
|
|
41927
41927
|
}
|
|
@@ -43009,10 +43009,10 @@ var require_atomic_sleep = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
43009
43009
|
//#endregion
|
|
43010
43010
|
//#region ../../node_modules/sonic-boom/index.js
|
|
43011
43011
|
var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
43012
|
-
var fs$
|
|
43012
|
+
var fs$9 = __require("fs");
|
|
43013
43013
|
var EventEmitter$8 = __require("events");
|
|
43014
43014
|
var inherits = __require("util").inherits;
|
|
43015
|
-
var path$
|
|
43015
|
+
var path$11 = __require("path");
|
|
43016
43016
|
var sleep = require_atomic_sleep();
|
|
43017
43017
|
var assert$1 = __require("assert");
|
|
43018
43018
|
var BUSY_WRITE_TIMEOUT = 100;
|
|
@@ -43052,17 +43052,17 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
43052
43052
|
const flags = sonic.append ? "a" : "w";
|
|
43053
43053
|
const mode = sonic.mode;
|
|
43054
43054
|
if (sonic.sync) try {
|
|
43055
|
-
if (sonic.mkdir) fs$
|
|
43056
|
-
fileOpened(null, fs$
|
|
43055
|
+
if (sonic.mkdir) fs$9.mkdirSync(path$11.dirname(file), { recursive: true });
|
|
43056
|
+
fileOpened(null, fs$9.openSync(file, flags, mode));
|
|
43057
43057
|
} catch (err) {
|
|
43058
43058
|
fileOpened(err);
|
|
43059
43059
|
throw err;
|
|
43060
43060
|
}
|
|
43061
|
-
else if (sonic.mkdir) fs$
|
|
43061
|
+
else if (sonic.mkdir) fs$9.mkdir(path$11.dirname(file), { recursive: true }, (err) => {
|
|
43062
43062
|
if (err) return fileOpened(err);
|
|
43063
|
-
fs$
|
|
43063
|
+
fs$9.open(file, flags, mode, fileOpened);
|
|
43064
43064
|
});
|
|
43065
|
-
else fs$
|
|
43065
|
+
else fs$9.open(file, flags, mode, fileOpened);
|
|
43066
43066
|
}
|
|
43067
43067
|
function SonicBoom(opts) {
|
|
43068
43068
|
if (!(this instanceof SonicBoom)) return new SonicBoom(opts);
|
|
@@ -43100,8 +43100,8 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
43100
43100
|
this.flush = flushBuffer;
|
|
43101
43101
|
this.flushSync = flushBufferSync;
|
|
43102
43102
|
this._actualWrite = actualWriteBuffer;
|
|
43103
|
-
fsWriteSync = () => fs$
|
|
43104
|
-
fsWrite = () => fs$
|
|
43103
|
+
fsWriteSync = () => fs$9.writeSync(this.fd, this._writingBuf);
|
|
43104
|
+
fsWrite = () => fs$9.write(this.fd, this._writingBuf, this.release);
|
|
43105
43105
|
} else if (contentMode === void 0 || contentMode === kContentModeUtf8) {
|
|
43106
43106
|
this._writingBuf = "";
|
|
43107
43107
|
this.write = write;
|
|
@@ -43109,12 +43109,12 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
43109
43109
|
this.flushSync = flushSync;
|
|
43110
43110
|
this._actualWrite = actualWrite;
|
|
43111
43111
|
fsWriteSync = () => {
|
|
43112
|
-
if (Buffer.isBuffer(this._writingBuf)) return fs$
|
|
43113
|
-
return fs$
|
|
43112
|
+
if (Buffer.isBuffer(this._writingBuf)) return fs$9.writeSync(this.fd, this._writingBuf);
|
|
43113
|
+
return fs$9.writeSync(this.fd, this._writingBuf, "utf8");
|
|
43114
43114
|
};
|
|
43115
43115
|
fsWrite = () => {
|
|
43116
|
-
if (Buffer.isBuffer(this._writingBuf)) return fs$
|
|
43117
|
-
return fs$
|
|
43116
|
+
if (Buffer.isBuffer(this._writingBuf)) return fs$9.write(this.fd, this._writingBuf, this.release);
|
|
43117
|
+
return fs$9.write(this.fd, this._writingBuf, "utf8", this.release);
|
|
43118
43118
|
};
|
|
43119
43119
|
} else throw new Error(`SonicBoom supports "${kContentModeUtf8}" and "${kContentModeBuffer}", but passed ${contentMode}`);
|
|
43120
43120
|
if (typeof fd === "number") {
|
|
@@ -43159,7 +43159,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
43159
43159
|
return;
|
|
43160
43160
|
}
|
|
43161
43161
|
}
|
|
43162
|
-
if (this._fsync) fs$
|
|
43162
|
+
if (this._fsync) fs$9.fsyncSync(this.fd);
|
|
43163
43163
|
const len = this._len;
|
|
43164
43164
|
if (this._reopening) {
|
|
43165
43165
|
this._writing = false;
|
|
@@ -43256,7 +43256,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
43256
43256
|
this._flushPending = true;
|
|
43257
43257
|
const onDrain = () => {
|
|
43258
43258
|
if (!this._fsync) try {
|
|
43259
|
-
fs$
|
|
43259
|
+
fs$9.fsync(this.fd, (err) => {
|
|
43260
43260
|
this._flushPending = false;
|
|
43261
43261
|
cb(err);
|
|
43262
43262
|
});
|
|
@@ -43333,7 +43333,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
43333
43333
|
if (this._writing) return;
|
|
43334
43334
|
const fd = this.fd;
|
|
43335
43335
|
this.once("ready", () => {
|
|
43336
|
-
if (fd !== this.fd) fs$
|
|
43336
|
+
if (fd !== this.fd) fs$9.close(fd, (err) => {
|
|
43337
43337
|
if (err) return this.emit("error", err);
|
|
43338
43338
|
});
|
|
43339
43339
|
});
|
|
@@ -43364,7 +43364,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
43364
43364
|
while (this._bufs.length || buf.length) {
|
|
43365
43365
|
if (buf.length <= 0) buf = this._bufs[0];
|
|
43366
43366
|
try {
|
|
43367
|
-
const n = Buffer.isBuffer(buf) ? fs$
|
|
43367
|
+
const n = Buffer.isBuffer(buf) ? fs$9.writeSync(this.fd, buf) : fs$9.writeSync(this.fd, buf, "utf8");
|
|
43368
43368
|
const releasedBufObj = releaseWritingBuf(buf, this._len, n);
|
|
43369
43369
|
buf = releasedBufObj.writingBuf;
|
|
43370
43370
|
this._len = releasedBufObj.len;
|
|
@@ -43375,7 +43375,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
43375
43375
|
}
|
|
43376
43376
|
}
|
|
43377
43377
|
try {
|
|
43378
|
-
fs$
|
|
43378
|
+
fs$9.fsyncSync(this.fd);
|
|
43379
43379
|
} catch {}
|
|
43380
43380
|
}
|
|
43381
43381
|
function flushBufferSync() {
|
|
@@ -43389,7 +43389,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
43389
43389
|
while (this._bufs.length || buf.length) {
|
|
43390
43390
|
if (buf.length <= 0) buf = mergeBuf(this._bufs[0], this._lens[0]);
|
|
43391
43391
|
try {
|
|
43392
|
-
const n = fs$
|
|
43392
|
+
const n = fs$9.writeSync(this.fd, buf);
|
|
43393
43393
|
buf = buf.subarray(n);
|
|
43394
43394
|
this._len = Math.max(this._len - n, 0);
|
|
43395
43395
|
if (buf.length <= 0) {
|
|
@@ -43411,24 +43411,24 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
43411
43411
|
this._writing = true;
|
|
43412
43412
|
this._writingBuf = this._writingBuf.length ? this._writingBuf : this._bufs.shift() || "";
|
|
43413
43413
|
if (this.sync) try {
|
|
43414
|
-
release(null, Buffer.isBuffer(this._writingBuf) ? fs$
|
|
43414
|
+
release(null, Buffer.isBuffer(this._writingBuf) ? fs$9.writeSync(this.fd, this._writingBuf) : fs$9.writeSync(this.fd, this._writingBuf, "utf8"));
|
|
43415
43415
|
} catch (err) {
|
|
43416
43416
|
release(err);
|
|
43417
43417
|
}
|
|
43418
|
-
else fs$
|
|
43418
|
+
else fs$9.write(this.fd, this._writingBuf, release);
|
|
43419
43419
|
}
|
|
43420
43420
|
function actualWriteBuffer() {
|
|
43421
43421
|
const release = this.release;
|
|
43422
43422
|
this._writing = true;
|
|
43423
43423
|
this._writingBuf = this._writingBuf.length ? this._writingBuf : mergeBuf(this._bufs.shift(), this._lens.shift());
|
|
43424
43424
|
if (this.sync) try {
|
|
43425
|
-
release(null, fs$
|
|
43425
|
+
release(null, fs$9.writeSync(this.fd, this._writingBuf));
|
|
43426
43426
|
} catch (err) {
|
|
43427
43427
|
release(err);
|
|
43428
43428
|
}
|
|
43429
43429
|
else {
|
|
43430
43430
|
if (kCopyBuffer) this._writingBuf = Buffer.from(this._writingBuf);
|
|
43431
|
-
fs$
|
|
43431
|
+
fs$9.write(this.fd, this._writingBuf, release);
|
|
43432
43432
|
}
|
|
43433
43433
|
}
|
|
43434
43434
|
function actualClose(sonic) {
|
|
@@ -43442,10 +43442,10 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
43442
43442
|
sonic._lens = [];
|
|
43443
43443
|
assert$1(typeof sonic.fd === "number", `sonic.fd must be a number, got ${typeof sonic.fd}`);
|
|
43444
43444
|
try {
|
|
43445
|
-
fs$
|
|
43445
|
+
fs$9.fsync(sonic.fd, closeWrapped);
|
|
43446
43446
|
} catch {}
|
|
43447
43447
|
function closeWrapped() {
|
|
43448
|
-
if (sonic.fd !== 1 && sonic.fd !== 2) fs$
|
|
43448
|
+
if (sonic.fd !== 1 && sonic.fd !== 2) fs$9.close(sonic.fd, done);
|
|
43449
43449
|
else done();
|
|
43450
43450
|
}
|
|
43451
43451
|
function done(err) {
|
|
@@ -72242,7 +72242,7 @@ var require_tcp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
72242
72242
|
var Transporter = require_base$1();
|
|
72243
72243
|
var _ = require_lodash();
|
|
72244
72244
|
var { isObject, isString } = require_utils$3();
|
|
72245
|
-
var fs$
|
|
72245
|
+
var fs$8 = __require("fs");
|
|
72246
72246
|
var kleur = require_kleur();
|
|
72247
72247
|
var Node = require_node();
|
|
72248
72248
|
var P = require_packets();
|
|
@@ -72389,7 +72389,7 @@ var require_tcp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
72389
72389
|
if (isString(str) && str.startsWith("file://")) {
|
|
72390
72390
|
const fName = str.replace("file://", "");
|
|
72391
72391
|
this.logger.debug(`Load nodes list from file '${fName}'...`);
|
|
72392
|
-
let content = fs$
|
|
72392
|
+
let content = fs$8.readFileSync(fName);
|
|
72393
72393
|
if (content && content.length > 0) {
|
|
72394
72394
|
const str = content.toString().trim();
|
|
72395
72395
|
if (str.startsWith("{") || str.startsWith("[")) return JSON.parse(str);
|
|
@@ -74879,15 +74879,15 @@ var require_ttl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
74879
74879
|
//#region ../../node_modules/recursive-watch/index.js
|
|
74880
74880
|
var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
74881
74881
|
var os$4 = __require("os");
|
|
74882
|
-
var fs$
|
|
74883
|
-
var path$
|
|
74882
|
+
var fs$7 = __require("fs");
|
|
74883
|
+
var path$10 = __require("path");
|
|
74884
74884
|
var Cache = require_ttl();
|
|
74885
74885
|
var watchDirectory = os$4.platform() === "linux" ? watchFallback : watchRecursive;
|
|
74886
74886
|
module.exports = watch;
|
|
74887
74887
|
function watch(name, onchange) {
|
|
74888
74888
|
var clear = null;
|
|
74889
74889
|
var stopped = false;
|
|
74890
|
-
fs$
|
|
74890
|
+
fs$7.lstat(name, function(_, st) {
|
|
74891
74891
|
if (!st || stopped) {
|
|
74892
74892
|
stopped = true;
|
|
74893
74893
|
return;
|
|
@@ -74903,8 +74903,8 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
74903
74903
|
function watchFile(filename, onchange) {
|
|
74904
74904
|
var prev = null;
|
|
74905
74905
|
var prevTime = 0;
|
|
74906
|
-
var w = fs$
|
|
74907
|
-
fs$
|
|
74906
|
+
var w = fs$7.watch(filename, function() {
|
|
74907
|
+
fs$7.lstat(filename, function(_, st) {
|
|
74908
74908
|
var now = Date.now();
|
|
74909
74909
|
if (now - prevTime > 2e3 || !same(st, prev)) onchange(filename);
|
|
74910
74910
|
prevTime = now;
|
|
@@ -74916,9 +74916,9 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
74916
74916
|
};
|
|
74917
74917
|
}
|
|
74918
74918
|
function watchRecursive(directory, onchange) {
|
|
74919
|
-
var w = fs$
|
|
74919
|
+
var w = fs$7.watch(directory, { recursive: true }, function(change, filename) {
|
|
74920
74920
|
if (!filename) return;
|
|
74921
|
-
onchange(path$
|
|
74921
|
+
onchange(path$10.join(directory, filename));
|
|
74922
74922
|
});
|
|
74923
74923
|
return function() {
|
|
74924
74924
|
w.close();
|
|
@@ -74946,7 +74946,7 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
74946
74946
|
}
|
|
74947
74947
|
function update() {
|
|
74948
74948
|
var filename = queued[0];
|
|
74949
|
-
fs$
|
|
74949
|
+
fs$7.lstat(filename, function(err, st) {
|
|
74950
74950
|
var w = watching[filename];
|
|
74951
74951
|
if (err && w) {
|
|
74952
74952
|
w.close();
|
|
@@ -74955,30 +74955,30 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
74955
74955
|
var prevSt = prevs.get(filename);
|
|
74956
74956
|
if (!prevSt || !same(st, prevSt)) onchange(filename);
|
|
74957
74957
|
prevs.put(filename, st);
|
|
74958
|
-
visit(path$
|
|
74958
|
+
visit(path$10.relative(directory, filename), function() {
|
|
74959
74959
|
queued.shift();
|
|
74960
74960
|
if (queued.length) update();
|
|
74961
74961
|
});
|
|
74962
74962
|
});
|
|
74963
74963
|
}
|
|
74964
74964
|
function visit(next, cb) {
|
|
74965
|
-
var dir = path$
|
|
74966
|
-
fs$
|
|
74965
|
+
var dir = path$10.join(directory, next);
|
|
74966
|
+
fs$7.lstat(dir, function(err, st) {
|
|
74967
74967
|
if (err || !st.isDirectory()) return cb();
|
|
74968
74968
|
if (watching[dir]) return cb();
|
|
74969
74969
|
if (loaded) emit(dir);
|
|
74970
|
-
var w = fs$
|
|
74971
|
-
filename = path$
|
|
74972
|
-
emit(path$
|
|
74970
|
+
var w = fs$7.watch(dir, function(change, filename) {
|
|
74971
|
+
filename = path$10.join(next, filename);
|
|
74972
|
+
emit(path$10.join(directory, filename));
|
|
74973
74973
|
});
|
|
74974
74974
|
w.on("error", noop);
|
|
74975
74975
|
watching[dir] = w;
|
|
74976
|
-
fs$
|
|
74976
|
+
fs$7.readdir(dir, function(err, list) {
|
|
74977
74977
|
if (err) return cb(err);
|
|
74978
74978
|
loop();
|
|
74979
74979
|
function loop() {
|
|
74980
74980
|
if (!list.length) return cb();
|
|
74981
|
-
visit(path$
|
|
74981
|
+
visit(path$10.join(next, list.shift()), loop);
|
|
74982
74982
|
}
|
|
74983
74983
|
});
|
|
74984
74984
|
});
|
|
@@ -74993,9 +74993,9 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
74993
74993
|
//#endregion
|
|
74994
74994
|
//#region ../../node_modules/moleculer/src/middlewares/hot-reload.js
|
|
74995
74995
|
var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
74996
|
-
var fs$
|
|
74996
|
+
var fs$6 = __require("fs");
|
|
74997
74997
|
var kleur = require_kleur();
|
|
74998
|
-
var path$
|
|
74998
|
+
var path$9 = __require("path");
|
|
74999
74999
|
var watch = require_recursive_watch();
|
|
75000
75000
|
var _ = require_lodash();
|
|
75001
75001
|
var { clearRequireCache, makeDirs, isFunction, isString, uniq } = require_utils$3();
|
|
@@ -75007,10 +75007,10 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
75007
75007
|
let hotReloadModules = [];
|
|
75008
75008
|
let extraFiles = null;
|
|
75009
75009
|
function hotReloadService(service) {
|
|
75010
|
-
const relPath = path$
|
|
75010
|
+
const relPath = path$9.relative(process.cwd(), service.__filename);
|
|
75011
75011
|
broker.logger.info(`Hot reload '${service.name}' service...`, kleur.grey(relPath));
|
|
75012
75012
|
return broker.destroyService(service).then(() => {
|
|
75013
|
-
if (fs$
|
|
75013
|
+
if (fs$6.existsSync(service.__filename)) try {
|
|
75014
75014
|
return broker.loadService(service.__filename);
|
|
75015
75015
|
} catch (err) {
|
|
75016
75016
|
broker.logger.error(`Failed to load service '${service.__filename}'`, err);
|
|
@@ -75042,7 +75042,7 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
75042
75042
|
});
|
|
75043
75043
|
broker.logger.info(kleur.bgMagenta().white().bold(`Reload ${needToReloadDedup.length} service(s)`));
|
|
75044
75044
|
needToReloadDedup.forEach((svc) => {
|
|
75045
|
-
if (typeof svc == "string") if (fs$
|
|
75045
|
+
if (typeof svc == "string") if (fs$6.existsSync(svc)) return broker.loadService(svc);
|
|
75046
75046
|
else return;
|
|
75047
75047
|
return hotReloadService(svc);
|
|
75048
75048
|
});
|
|
@@ -75052,19 +75052,19 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
75052
75052
|
broker.logger.debug("");
|
|
75053
75053
|
broker.logger.debug(kleur.yellow().bold("Watching the following project files:"));
|
|
75054
75054
|
projectFiles.forEach((watchItem, fName) => {
|
|
75055
|
-
if (!fs$
|
|
75055
|
+
if (!fs$6.existsSync(fName)) projectFiles.delete(fName);
|
|
75056
75056
|
});
|
|
75057
75057
|
projectFiles.forEach((watchItem, fName) => {
|
|
75058
|
-
const relPath = path$
|
|
75058
|
+
const relPath = path$9.relative(process.cwd(), fName);
|
|
75059
75059
|
if (watchItem.brokerRestart) broker.logger.debug(` ${relPath}:`, kleur.grey("restart broker."));
|
|
75060
75060
|
else if (watchItem.allServices) broker.logger.debug(` ${relPath}:`, kleur.grey("reload all services."));
|
|
75061
75061
|
else if (watchItem.services.length > 0) {
|
|
75062
75062
|
broker.logger.debug(` ${relPath}:`, kleur.grey(`reload ${watchItem.services.length} service(s) & ${watchItem.others.length} other(s).`));
|
|
75063
75063
|
watchItem.services.forEach((svcFullname) => broker.logger.debug(kleur.grey(` ${svcFullname}`)));
|
|
75064
|
-
watchItem.others.forEach((filename) => broker.logger.debug(kleur.grey(` ${path$
|
|
75064
|
+
watchItem.others.forEach((filename) => broker.logger.debug(kleur.grey(` ${path$9.relative(process.cwd(), filename)}`)));
|
|
75065
75065
|
}
|
|
75066
|
-
watchItem.watcher = fs$
|
|
75067
|
-
const relPath = path$
|
|
75066
|
+
watchItem.watcher = fs$6.watch(fName, (eventType) => {
|
|
75067
|
+
const relPath = path$9.relative(process.cwd(), fName);
|
|
75068
75068
|
broker.logger.info(kleur.magenta().bold(`The '${relPath}' file is changed. (Event: ${eventType})`));
|
|
75069
75069
|
clearRequireCache(fName);
|
|
75070
75070
|
if (watchItem.others.length > 0) watchItem.others.forEach((f) => clearRequireCache(f));
|
|
@@ -75182,16 +75182,16 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
75182
75182
|
broker.logger.debug(kleur.yellow().bold("Watching the following folder(s):"));
|
|
75183
75183
|
folders.forEach((folder) => {
|
|
75184
75184
|
makeDirs(folder);
|
|
75185
|
-
broker.logger.debug(` ${path$
|
|
75185
|
+
broker.logger.debug(` ${path$9.relative(process.cwd(), folder)}/`);
|
|
75186
75186
|
folderWatchers.push({
|
|
75187
75187
|
path: folder,
|
|
75188
75188
|
watcher: watch(folder, (filename) => {
|
|
75189
75189
|
if (filename.endsWith(".service.js") || filename.endsWith(".service.ts")) {
|
|
75190
|
-
broker.logger.debug(`There is changes in '${folder}' folder: `, path$
|
|
75190
|
+
broker.logger.debug(`There is changes in '${folder}' folder: `, path$9.basename(filename));
|
|
75191
75191
|
const isLoaded = broker.services.some((svc) => svc.__filename == filename);
|
|
75192
|
-
const fileExists = fs$
|
|
75192
|
+
const fileExists = fs$6.existsSync(filename);
|
|
75193
75193
|
if (!isLoaded && fileExists) {
|
|
75194
|
-
broker.logger.debug("Loading new file: ", path$
|
|
75194
|
+
broker.logger.debug("Loading new file: ", path$9.basename(filename));
|
|
75195
75195
|
needToLoad.add(filename);
|
|
75196
75196
|
loadServices();
|
|
75197
75197
|
}
|
|
@@ -75367,8 +75367,8 @@ var require_compression = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
75367
75367
|
var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
75368
75368
|
var _ = require_lodash();
|
|
75369
75369
|
var kleur = require_kleur();
|
|
75370
|
-
var fs$
|
|
75371
|
-
var path$
|
|
75370
|
+
var fs$5 = __require("fs");
|
|
75371
|
+
var path$8 = __require("path");
|
|
75372
75372
|
var { makeDirs, safetyObject } = require_utils$3();
|
|
75373
75373
|
module.exports = function TransitLoggerMiddleware(opts) {
|
|
75374
75374
|
opts = _.defaultsDeep(opts, {
|
|
@@ -75393,7 +75393,7 @@ var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
75393
75393
|
} catch {
|
|
75394
75394
|
data = JSON.stringify(safetyObject(payload), payload instanceof Error ? Object.getOwnPropertyNames(payload) : null, 4);
|
|
75395
75395
|
}
|
|
75396
|
-
fs$
|
|
75396
|
+
fs$5.writeFile(path$8.join(targetFolder, filename), data, () => {});
|
|
75397
75397
|
}
|
|
75398
75398
|
const coloringSend = opts.colors && opts.colors.send ? opts.colors.send.split(".").reduce((a, b) => a[b] || a()[b], kleur) : (s) => s;
|
|
75399
75399
|
const coloringReceive = opts.colors && opts.colors.receive ? opts.colors.receive.split(".").reduce((a, b) => a[b] || a()[b], kleur) : (s) => s;
|
|
@@ -75404,7 +75404,7 @@ var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
75404
75404
|
logger = opts.logger || broker.getLogger("debug");
|
|
75405
75405
|
nodeID = broker.nodeID;
|
|
75406
75406
|
if (opts.folder) {
|
|
75407
|
-
targetFolder = path$
|
|
75407
|
+
targetFolder = path$8.join(opts.folder, nodeID);
|
|
75408
75408
|
makeDirs(targetFolder);
|
|
75409
75409
|
}
|
|
75410
75410
|
logFn = opts.logLevel ? logger[opts.logLevel] : null;
|
|
@@ -75441,8 +75441,8 @@ var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
75441
75441
|
var require_action_logger = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
75442
75442
|
var _ = require_lodash();
|
|
75443
75443
|
var kleur = require_kleur();
|
|
75444
|
-
var fs$
|
|
75445
|
-
var path$
|
|
75444
|
+
var fs$4 = __require("fs");
|
|
75445
|
+
var path$7 = __require("path");
|
|
75446
75446
|
var { makeDirs, match, isObject, safetyObject } = require_utils$3();
|
|
75447
75447
|
module.exports = function ActionLoggerMiddleware(opts) {
|
|
75448
75448
|
opts = _.defaultsDeep(opts, {
|
|
@@ -75471,7 +75471,7 @@ var require_action_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
75471
75471
|
} catch {
|
|
75472
75472
|
data = JSON.stringify(safetyObject(payload), payload instanceof Error ? Object.getOwnPropertyNames(payload) : null, 4);
|
|
75473
75473
|
}
|
|
75474
|
-
fs$
|
|
75474
|
+
fs$4.writeFile(path$7.join(targetFolder, filename), data, () => {});
|
|
75475
75475
|
}
|
|
75476
75476
|
function isWhiteListed(actionName) {
|
|
75477
75477
|
return !!opts.whitelist.find((pattern) => match(actionName, pattern));
|
|
@@ -75486,7 +75486,7 @@ var require_action_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
75486
75486
|
logger = opts.logger || broker.getLogger("debug");
|
|
75487
75487
|
nodeID = broker.nodeID;
|
|
75488
75488
|
if (opts.folder) {
|
|
75489
|
-
targetFolder = path$
|
|
75489
|
+
targetFolder = path$7.join(opts.folder, nodeID);
|
|
75490
75490
|
makeDirs(targetFolder);
|
|
75491
75491
|
}
|
|
75492
75492
|
logFn = opts.logLevel ? logger[opts.logLevel] : null;
|
|
@@ -78688,7 +78688,7 @@ var require_service_broker = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
78688
78688
|
var EventEmitter2 = require_eventemitter2().EventEmitter2;
|
|
78689
78689
|
var _ = require_lodash();
|
|
78690
78690
|
var { globSync } = require_index_min$1();
|
|
78691
|
-
var path$
|
|
78691
|
+
var path$6 = __require("path");
|
|
78692
78692
|
var { format } = __require("util");
|
|
78693
78693
|
var Transit = require_transit();
|
|
78694
78694
|
var Registry = require_registry();
|
|
@@ -79237,7 +79237,7 @@ var require_service_broker = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
79237
79237
|
loadServices(folder = "./services", fileMask = "**/*.service.js") {
|
|
79238
79238
|
this.logger.debug(`Search services in '${folder}/${fileMask}'...`);
|
|
79239
79239
|
let serviceFiles;
|
|
79240
|
-
if (Array.isArray(fileMask)) serviceFiles = fileMask.map((f) => path$
|
|
79240
|
+
if (Array.isArray(fileMask)) serviceFiles = fileMask.map((f) => path$6.join(folder, f));
|
|
79241
79241
|
else serviceFiles = globSync(folder + "/" + fileMask);
|
|
79242
79242
|
if (serviceFiles) serviceFiles.forEach((filename) => this.loadService(filename));
|
|
79243
79243
|
return serviceFiles.length;
|
|
@@ -79253,8 +79253,8 @@ var require_service_broker = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
79253
79253
|
loadService(filePath) {
|
|
79254
79254
|
let fName, schema;
|
|
79255
79255
|
try {
|
|
79256
|
-
fName = __require.resolve(path$
|
|
79257
|
-
this.logger.debug(`Load service '${path$
|
|
79256
|
+
fName = __require.resolve(path$6.resolve(filePath));
|
|
79257
|
+
this.logger.debug(`Load service '${path$6.basename(fName)}'...`);
|
|
79258
79258
|
const r = __require(fName);
|
|
79259
79259
|
schema = r.default != null ? r.default : r;
|
|
79260
79260
|
let svc;
|
|
@@ -82237,7 +82237,7 @@ var require_leven = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
82237
82237
|
//#region ../../node_modules/args/lib/utils.js
|
|
82238
82238
|
var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
82239
82239
|
var { spawn } = __require("child_process");
|
|
82240
|
-
var path$
|
|
82240
|
+
var path$5 = __require("path");
|
|
82241
82241
|
var camelcase = require_camelcase();
|
|
82242
82242
|
var leven = require_leven();
|
|
82243
82243
|
function similarityBestMatch(mainString, targetStrings) {
|
|
@@ -82398,10 +82398,10 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
82398
82398
|
break;
|
|
82399
82399
|
}
|
|
82400
82400
|
if (process.platform === "win32") {
|
|
82401
|
-
const binaryExt = path$
|
|
82401
|
+
const binaryExt = path$5.extname(this.binary);
|
|
82402
82402
|
const mainModule = process.env.APPVEYOR ? "_fixture" : process.mainModule.filename;
|
|
82403
82403
|
full = `${mainModule}-${subCommand}`;
|
|
82404
|
-
if (path$
|
|
82404
|
+
if (path$5.extname(this.binary)) full = `${mainModule.replace(binaryExt, "")}-${subCommand}${binaryExt}`;
|
|
82405
82405
|
args.unshift(full);
|
|
82406
82406
|
this.child = spawn(process.execPath, args, { stdio: "inherit" });
|
|
82407
82407
|
} else this.child = spawn(full, args, { stdio: "inherit" });
|
|
@@ -82594,7 +82594,7 @@ var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
82594
82594
|
//#endregion
|
|
82595
82595
|
//#region ../../node_modules/args/lib/parse.js
|
|
82596
82596
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
82597
|
-
var path$
|
|
82597
|
+
var path$4 = __require("path");
|
|
82598
82598
|
var parser = require_lib$1();
|
|
82599
82599
|
module.exports = function(argv, options) {
|
|
82600
82600
|
Object.assign(this.config, options);
|
|
@@ -82609,7 +82609,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
82609
82609
|
}
|
|
82610
82610
|
else this.printSubColor = this.printSubColor[this.config.subColor];
|
|
82611
82611
|
this.raw = parser(argv.slice(1), this.config.mri || this.config.minimist);
|
|
82612
|
-
this.binary = path$
|
|
82612
|
+
this.binary = path$4.basename(this.raw._[0]);
|
|
82613
82613
|
if (this.config.version) this.checkVersion();
|
|
82614
82614
|
if (this.config.help) this.checkHelp();
|
|
82615
82615
|
const subCommand = this.raw._[1];
|
|
@@ -82694,8 +82694,8 @@ var require_help = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
82694
82694
|
//#endregion
|
|
82695
82695
|
//#region ../../node_modules/args/lib/version.js
|
|
82696
82696
|
var require_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
82697
|
-
var fs$
|
|
82698
|
-
var path$
|
|
82697
|
+
var fs$3 = __require("fs");
|
|
82698
|
+
var path$3 = __require("path");
|
|
82699
82699
|
/**
|
|
82700
82700
|
* Retrieves the main module package.json information.
|
|
82701
82701
|
*
|
|
@@ -82706,13 +82706,13 @@ var require_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
82706
82706
|
* An object containing the package.json contents or NULL if it could not be found.
|
|
82707
82707
|
*/
|
|
82708
82708
|
function findPackage(directory) {
|
|
82709
|
-
const file = path$
|
|
82710
|
-
if (fs$
|
|
82711
|
-
const parent = path$
|
|
82709
|
+
const file = path$3.resolve(directory, "package.json");
|
|
82710
|
+
if (fs$3.existsSync(file) && fs$3.statSync(file).isFile()) return __require(file);
|
|
82711
|
+
const parent = path$3.resolve(directory, "..");
|
|
82712
82712
|
return parent === directory ? null : findPackage(parent);
|
|
82713
82713
|
}
|
|
82714
82714
|
module.exports = function() {
|
|
82715
|
-
const pkg = findPackage(path$
|
|
82715
|
+
const pkg = findPackage(path$3.dirname(process.mainModule.filename));
|
|
82716
82716
|
const version = pkg && pkg.version || "-/-";
|
|
82717
82717
|
console.log(version);
|
|
82718
82718
|
if (this.config.exit && this.config.exit.version) process.exit();
|
|
@@ -82769,8 +82769,8 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
82769
82769
|
//#endregion
|
|
82770
82770
|
//#region ../../node_modules/dotenv/lib/main.js
|
|
82771
82771
|
var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
82772
|
-
var fs$
|
|
82773
|
-
var path$
|
|
82772
|
+
var fs$2 = __require("fs");
|
|
82773
|
+
var path$2 = __require("path");
|
|
82774
82774
|
var os$2 = __require("os");
|
|
82775
82775
|
var crypto$1 = __require("crypto");
|
|
82776
82776
|
var TIPS = [
|
|
@@ -82897,14 +82897,14 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
82897
82897
|
function _vaultPath(options) {
|
|
82898
82898
|
let possibleVaultPath = null;
|
|
82899
82899
|
if (options && options.path && options.path.length > 0) if (Array.isArray(options.path)) {
|
|
82900
|
-
for (const filepath of options.path) if (fs$
|
|
82900
|
+
for (const filepath of options.path) if (fs$2.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
82901
82901
|
} else possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
|
|
82902
|
-
else possibleVaultPath = path$
|
|
82903
|
-
if (fs$
|
|
82902
|
+
else possibleVaultPath = path$2.resolve(process.cwd(), ".env.vault");
|
|
82903
|
+
if (fs$2.existsSync(possibleVaultPath)) return possibleVaultPath;
|
|
82904
82904
|
return null;
|
|
82905
82905
|
}
|
|
82906
82906
|
function _resolveHome(envPath) {
|
|
82907
|
-
return envPath[0] === "~" ? path$
|
|
82907
|
+
return envPath[0] === "~" ? path$2.join(os$2.homedir(), envPath.slice(1)) : envPath;
|
|
82908
82908
|
}
|
|
82909
82909
|
function _configVault(options) {
|
|
82910
82910
|
const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options && options.debug);
|
|
@@ -82917,7 +82917,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
82917
82917
|
return { parsed };
|
|
82918
82918
|
}
|
|
82919
82919
|
function configDotenv(options) {
|
|
82920
|
-
const dotenvPath = path$
|
|
82920
|
+
const dotenvPath = path$2.resolve(process.cwd(), ".env");
|
|
82921
82921
|
let encoding = "utf8";
|
|
82922
82922
|
let processEnv = process.env;
|
|
82923
82923
|
if (options && options.processEnv != null) processEnv = options.processEnv;
|
|
@@ -82934,7 +82934,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
82934
82934
|
let lastError;
|
|
82935
82935
|
const parsedAll = {};
|
|
82936
82936
|
for (const path of optionPaths) try {
|
|
82937
|
-
const parsed = DotenvModule.parse(fs$
|
|
82937
|
+
const parsed = DotenvModule.parse(fs$2.readFileSync(path, { encoding }));
|
|
82938
82938
|
DotenvModule.populate(parsedAll, parsed, options);
|
|
82939
82939
|
} catch (e) {
|
|
82940
82940
|
if (debug) _debug(`failed to load ${path} ${e.message}`);
|
|
@@ -82947,7 +82947,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
82947
82947
|
const keysCount = Object.keys(populated).length;
|
|
82948
82948
|
const shortPaths = [];
|
|
82949
82949
|
for (const filePath of optionPaths) try {
|
|
82950
|
-
const relative = path$
|
|
82950
|
+
const relative = path$2.relative(process.cwd(), filePath);
|
|
82951
82951
|
shortPaths.push(relative);
|
|
82952
82952
|
} catch (e) {
|
|
82953
82953
|
if (debug) _debug(`failed to load ${filePath} ${e.message}`);
|
|
@@ -83046,8 +83046,8 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
83046
83046
|
*/
|
|
83047
83047
|
var ServiceBroker = require_service_broker();
|
|
83048
83048
|
var utils = require_utils$3();
|
|
83049
|
-
var fs$
|
|
83050
|
-
var path$
|
|
83049
|
+
var fs$1 = __require("fs");
|
|
83050
|
+
var path$1 = __require("path");
|
|
83051
83051
|
var { globSync } = require_index_min$1();
|
|
83052
83052
|
var inspect = __require("util").inspect;
|
|
83053
83053
|
var _ = require_lodash();
|
|
@@ -83175,17 +83175,17 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
83175
83175
|
let filePath;
|
|
83176
83176
|
const configPath = process.env["MOLECULER_CONFIG"] || this.flags.config;
|
|
83177
83177
|
if (configPath != null) {
|
|
83178
|
-
if (path$
|
|
83178
|
+
if (path$1.isAbsolute(configPath)) filePath = this.tryConfigPath(configPath);
|
|
83179
83179
|
else {
|
|
83180
|
-
filePath = this.tryConfigPath(path$
|
|
83180
|
+
filePath = this.tryConfigPath(path$1.resolve(process.cwd(), configPath));
|
|
83181
83181
|
if (filePath == null) filePath = this.tryConfigPath(configPath, true);
|
|
83182
83182
|
}
|
|
83183
83183
|
if (filePath == null) return Promise.reject(/* @__PURE__ */ new Error(`Config file not found: ${configPath}`));
|
|
83184
83184
|
}
|
|
83185
|
-
if (filePath == null) filePath = this.tryConfigPath(path$
|
|
83186
|
-
if (filePath == null) filePath = this.tryConfigPath(path$
|
|
83185
|
+
if (filePath == null) filePath = this.tryConfigPath(path$1.resolve(process.cwd(), "moleculer.config.js"));
|
|
83186
|
+
if (filePath == null) filePath = this.tryConfigPath(path$1.resolve(process.cwd(), "moleculer.config.json"));
|
|
83187
83187
|
if (filePath == null) return Promise.resolve({});
|
|
83188
|
-
const ext = path$
|
|
83188
|
+
const ext = path$1.extname(filePath);
|
|
83189
83189
|
switch (ext) {
|
|
83190
83190
|
case ".json":
|
|
83191
83191
|
case ".js":
|
|
@@ -83271,7 +83271,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
83271
83271
|
*/
|
|
83272
83272
|
isDirectory(p) {
|
|
83273
83273
|
try {
|
|
83274
|
-
return fs$
|
|
83274
|
+
return fs$1.lstatSync(p).isDirectory();
|
|
83275
83275
|
} catch {}
|
|
83276
83276
|
return false;
|
|
83277
83277
|
}
|
|
@@ -83283,7 +83283,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
83283
83283
|
*/
|
|
83284
83284
|
isServiceFile(p) {
|
|
83285
83285
|
try {
|
|
83286
|
-
return !fs$
|
|
83286
|
+
return !fs$1.lstatSync(p).isDirectory();
|
|
83287
83287
|
} catch {}
|
|
83288
83288
|
return false;
|
|
83289
83289
|
}
|
|
@@ -83308,7 +83308,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
83308
83308
|
this.watchFolders.length = 0;
|
|
83309
83309
|
const fileMask = this.flags.mask || "**/*.service.js";
|
|
83310
83310
|
const serviceDir = process.env.SERVICEDIR || "";
|
|
83311
|
-
const svcDir = path$
|
|
83311
|
+
const svcDir = path$1.isAbsolute(serviceDir) ? serviceDir : path$1.resolve(process.cwd(), serviceDir);
|
|
83312
83312
|
let patterns = this.servicePaths;
|
|
83313
83313
|
if (process.env.SERVICES || process.env.SERVICEDIR) {
|
|
83314
83314
|
if (this.isDirectory(svcDir) && !process.env.SERVICES) {
|
|
@@ -83324,7 +83324,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
83324
83324
|
if (p.startsWith("npm:")) this.loadNpmModule(p.slice(4));
|
|
83325
83325
|
else {
|
|
83326
83326
|
let files;
|
|
83327
|
-
const svcPath = path$
|
|
83327
|
+
const svcPath = path$1.isAbsolute(p) ? p : path$1.resolve(svcDir, p);
|
|
83328
83328
|
if (this.isDirectory(svcPath)) {
|
|
83329
83329
|
if (this.config.hotReload) this.watchFolders.push(svcPath);
|
|
83330
83330
|
files = globSync(svcPath + "/" + fileMask, { absolute: true });
|
|
@@ -83496,12 +83496,12 @@ var Gt = (n, t, e) => {
|
|
|
83496
83496
|
}
|
|
83497
83497
|
return h;
|
|
83498
83498
|
};
|
|
83499
|
-
var fe = "\0SLASH" + Math.random() + "\0", ue = "\0OPEN" + Math.random() + "\0", qt = "\0CLOSE" + Math.random() + "\0", de = "\0COMMA" + Math.random() + "\0", pe = "\0PERIOD" + Math.random() + "\0", is = new RegExp(fe, "g"), rs = new RegExp(ue, "g"), ns = new RegExp(qt, "g"), os = new RegExp(de, "g"), hs = new RegExp(pe, "g"), as = /\\\\/g, ls = /\\{/g, cs = /\\}/g, fs
|
|
83499
|
+
var fe = "\0SLASH" + Math.random() + "\0", ue = "\0OPEN" + Math.random() + "\0", qt = "\0CLOSE" + Math.random() + "\0", de = "\0COMMA" + Math.random() + "\0", pe = "\0PERIOD" + Math.random() + "\0", is = new RegExp(fe, "g"), rs = new RegExp(ue, "g"), ns = new RegExp(qt, "g"), os = new RegExp(de, "g"), hs = new RegExp(pe, "g"), as = /\\\\/g, ls = /\\{/g, cs = /\\}/g, fs = /\\,/g, us = /\\./g, ds = 1e5;
|
|
83500
83500
|
function Ht(n) {
|
|
83501
83501
|
return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
|
|
83502
83502
|
}
|
|
83503
83503
|
function ps(n) {
|
|
83504
|
-
return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs
|
|
83504
|
+
return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs, de).replace(us, pe);
|
|
83505
83505
|
}
|
|
83506
83506
|
function ms(n) {
|
|
83507
83507
|
return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os, ",").replace(hs, ".");
|
|
@@ -86424,7 +86424,7 @@ var Li = (n, t) => typeof n == "string" ? new ot([n], t) : Array.isArray(n) ? ne
|
|
|
86424
86424
|
return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => this.results.end()), this.results;
|
|
86425
86425
|
}
|
|
86426
86426
|
};
|
|
86427
|
-
var Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", I = class {
|
|
86427
|
+
var Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", I$1 = class {
|
|
86428
86428
|
absolute;
|
|
86429
86429
|
cwd;
|
|
86430
86430
|
root;
|
|
@@ -86549,22 +86549,22 @@ var le = (n, t = {}) => {
|
|
|
86549
86549
|
return !1;
|
|
86550
86550
|
};
|
|
86551
86551
|
function Bt(n, t = {}) {
|
|
86552
|
-
return new I(n, t).streamSync();
|
|
86552
|
+
return new I$1(n, t).streamSync();
|
|
86553
86553
|
}
|
|
86554
86554
|
function Qe(n, t = {}) {
|
|
86555
|
-
return new I(n, t).stream();
|
|
86555
|
+
return new I$1(n, t).stream();
|
|
86556
86556
|
}
|
|
86557
86557
|
function ts(n, t = {}) {
|
|
86558
|
-
return new I(n, t).walkSync();
|
|
86558
|
+
return new I$1(n, t).walkSync();
|
|
86559
86559
|
}
|
|
86560
86560
|
async function Je(n, t = {}) {
|
|
86561
|
-
return new I(n, t).walk();
|
|
86561
|
+
return new I$1(n, t).walk();
|
|
86562
86562
|
}
|
|
86563
86563
|
function Ut(n, t = {}) {
|
|
86564
|
-
return new I(n, t).iterateSync();
|
|
86564
|
+
return new I$1(n, t).iterateSync();
|
|
86565
86565
|
}
|
|
86566
86566
|
function es(n, t = {}) {
|
|
86567
|
-
return new I(n, t).iterate();
|
|
86567
|
+
return new I$1(n, t).iterate();
|
|
86568
86568
|
}
|
|
86569
86569
|
var ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(es, { sync: Ut }), Ui = Object.assign(ts, {
|
|
86570
86570
|
stream: Bt,
|
|
@@ -86581,7 +86581,7 @@ var ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(e
|
|
|
86581
86581
|
iterate: Bi,
|
|
86582
86582
|
globIterateSync: Ut,
|
|
86583
86583
|
iterateSync: zi,
|
|
86584
|
-
Glob: I,
|
|
86584
|
+
Glob: I$1,
|
|
86585
86585
|
hasMagic: le,
|
|
86586
86586
|
escape: tt,
|
|
86587
86587
|
unescape: W
|