@tempad-dev/mcp 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/README.zh-Hans.md +3 -1
- package/dist/{acquire-TEiVy85j.mjs → acquire-C1v5UQB2.mjs} +1 -1
- package/dist/{acquire-DkkzoJ5Z.mjs → acquire-DK4Fg36-.mjs} +6 -7
- package/dist/{acquire-DkkzoJ5Z.mjs.map → acquire-DK4Fg36-.mjs.map} +1 -1
- package/dist/{bootstrap-Cz9cxf6f.mjs → bootstrap-CNJpiOAm.mjs} +14 -15
- package/dist/{bootstrap-Cz9cxf6f.mjs.map → bootstrap-CNJpiOAm.mjs.map} +1 -1
- package/dist/cli.mjs +12 -13
- package/dist/cli.mjs.map +1 -1
- package/dist/{client-binding-CuHY1-__.mjs → client-binding-CvSSv9JC.mjs} +4 -5
- package/dist/{client-binding-CuHY1-__.mjs.map → client-binding-CvSSv9JC.mjs.map} +1 -1
- package/dist/{cold-start-DnlXxs4o.mjs → cold-start-BOLlW_0n.mjs} +11 -12
- package/dist/{cold-start-DnlXxs4o.mjs.map → cold-start-BOLlW_0n.mjs.map} +1 -1
- package/dist/{cold-start-r07QQPSK.mjs → cold-start-DeFnhN3x.mjs} +1 -1
- package/dist/{config-CM4LsvW5.mjs → config-Busa_Dqv.mjs} +42 -31
- package/dist/config-Busa_Dqv.mjs.map +1 -0
- package/dist/{design-task-store-C9DJ_EQq.mjs → design-task-store-BHR54v8-.mjs} +8 -10
- package/dist/{design-task-store-C9DJ_EQq.mjs.map → design-task-store-BHR54v8-.mjs.map} +1 -1
- package/dist/{durable-json-dsqpwT93.mjs → durable-json-_WKesGDj.mjs} +2 -3
- package/dist/{durable-json-dsqpwT93.mjs.map → durable-json-_WKesGDj.mjs.map} +1 -1
- package/dist/{edge-C5SyBEy3.mjs → edge-DP-CwLYS.mjs} +1 -1
- package/dist/{edge-DBOKhsN4.mjs → edge-m9VuTeju.mjs} +14 -15
- package/dist/{edge-DBOKhsN4.mjs.map → edge-m9VuTeju.mjs.map} +1 -1
- package/dist/{hook-receipts-DcO9rRhi.mjs → hook-receipts-QJU3AMoY.mjs} +4 -5
- package/dist/{hook-receipts-DcO9rRhi.mjs.map → hook-receipts-QJU3AMoY.mjs.map} +1 -1
- package/dist/{host-context-CRMK5AI5.mjs → host-context-9TVtjsSm.mjs} +3 -4
- package/dist/{host-context-CRMK5AI5.mjs.map → host-context-9TVtjsSm.mjs.map} +1 -1
- package/dist/{hub-control-591ZGr_p.mjs → hub-control-UlA4Fncg.mjs} +7 -9
- package/dist/{hub-control-591ZGr_p.mjs.map → hub-control-UlA4Fncg.mjs.map} +1 -1
- package/dist/{hub-runtime-j_CZJnWz.mjs → hub-runtime-BBnfo1yd.mjs} +162 -158
- package/dist/hub-runtime-BBnfo1yd.mjs.map +1 -0
- package/dist/{hub-runtime-_GWa0RDc.mjs → hub-runtime-U3Set0EC.mjs} +1 -1
- package/dist/hub.mjs +3 -4
- package/dist/{identity-BgzOQE2L.mjs → identity-CCaDEwgc.mjs} +4 -5
- package/dist/{identity-BgzOQE2L.mjs.map → identity-CCaDEwgc.mjs.map} +1 -1
- package/dist/{indexes-CCA-CTcL.mjs → indexes-zYqwqnU6.mjs} +10 -12
- package/dist/{indexes-CCA-CTcL.mjs.map → indexes-zYqwqnU6.mjs.map} +1 -1
- package/dist/log-transport.mjs +234 -143
- package/dist/log-transport.mjs.map +1 -1
- package/dist/managed-runtime.mjs +15 -17
- package/dist/managed-runtime.mjs.map +1 -1
- package/dist/{on-exit-leak-free-BvimJ0rP.mjs → on-exit-leak-free-By20-eFK.mjs} +6 -8
- package/dist/{on-exit-leak-free-BvimJ0rP.mjs.map → on-exit-leak-free-By20-eFK.mjs.map} +1 -1
- package/dist/{pino-CLoB7tK6.mjs → pino-BiEyUxFF.mjs} +56 -82
- package/dist/pino-BiEyUxFF.mjs.map +1 -0
- package/dist/{pino-abstract-transport-B0ISte63.mjs → pino-abstract-transport-BBwCGDga.mjs} +4 -6
- package/dist/{pino-abstract-transport-B0ISte63.mjs.map → pino-abstract-transport-BBwCGDga.mjs.map} +1 -1
- package/dist/pino-file.mjs +3 -4
- package/dist/pino-worker.mjs +6 -8
- package/dist/pino-worker.mjs.map +1 -1
- package/dist/{probe-B6KQJxXU.mjs → probe-CqjOWdnP.mjs} +40 -55
- package/dist/probe-CqjOWdnP.mjs.map +1 -0
- package/dist/{process-environment-DJDtCcdv.mjs → process-environment-DRRIdoL8.mjs} +2 -3
- package/dist/{process-environment-DJDtCcdv.mjs.map → process-environment-DRRIdoL8.mjs.map} +1 -1
- package/dist/{processes-n0G2xAWb.mjs → processes-BnvaDi81.mjs} +1 -1
- package/dist/{processes-CQvuh1Sl.mjs → processes-DOmrri5n.mjs} +17 -23
- package/dist/{processes-CQvuh1Sl.mjs.map → processes-DOmrri5n.mjs.map} +1 -1
- package/dist/{proper-lockfile-CisPoFAZ.mjs → proper-lockfile-BgKrOq5D.mjs} +19 -32
- package/dist/{proper-lockfile-CisPoFAZ.mjs.map → proper-lockfile-BgKrOq5D.mjs.map} +1 -1
- package/dist/{protocol-DNswG6F2.mjs → protocol-7m-E_iFu.mjs} +57 -108
- package/dist/protocol-7m-E_iFu.mjs.map +1 -0
- package/dist/{protocol-0jvK718o.mjs → protocol-COK3rM6m.mjs} +1 -1
- package/dist/{rolldown-runtime-CLlik3RS.mjs → rolldown-runtime-BH1-_iVd.mjs} +2 -3
- package/dist/{runtime-identity-BiWIlGgw.mjs → runtime-identity-D9V-g5M-.mjs} +2 -3
- package/dist/{runtime-identity-BiWIlGgw.mjs.map → runtime-identity-D9V-g5M-.mjs.map} +1 -1
- package/dist/runtime-installer.mjs +4 -5
- package/dist/runtime-manifest.json +109 -109
- package/dist/{runtime-platform-EULgJm_w.mjs → runtime-platform-CpunJOI4.mjs} +144 -45
- package/dist/runtime-platform-CpunJOI4.mjs.map +1 -0
- package/dist/{runtime-recovery-Dq3hD3IT.mjs → runtime-recovery-DAYSaVV2.mjs} +1 -1
- package/dist/{runtime-recovery-DpqftTl9.mjs → runtime-recovery-DaRaQ8qY.mjs} +5 -6
- package/dist/{runtime-recovery-DpqftTl9.mjs.map → runtime-recovery-DaRaQ8qY.mjs.map} +1 -1
- package/dist/runtime-verification.mjs +6 -6
- package/dist/{schemas-BgOH6OcJ.mjs → schemas-ZDdPV7RQ.mjs} +23 -39
- package/dist/schemas-ZDdPV7RQ.mjs.map +1 -0
- package/dist/{server-C-tcoOT7.mjs → server-CsCpY0Ft.mjs} +645 -287
- package/dist/server-CsCpY0Ft.mjs.map +1 -0
- package/dist/{shared--CO_WPTx.mjs → shared-8_j_xlsJ.mjs} +20 -22
- package/dist/{shared--CO_WPTx.mjs.map → shared-8_j_xlsJ.mjs.map} +1 -1
- package/dist/{state-3mPLv7lh.mjs → shared-Bvmw_Pv0.mjs} +1 -1
- package/dist/{src-BGNQgTr6.mjs → src-BSnzZMvK.mjs} +3 -4
- package/dist/{src-BGNQgTr6.mjs.map → src-BSnzZMvK.mjs.map} +1 -1
- package/dist/{stable-edge-DQmYi4Mf.mjs → stable-edge-VAAxSYSS.mjs} +10 -14
- package/dist/stable-edge-VAAxSYSS.mjs.map +1 -0
- package/dist/{startup-log-iSoBU74r.mjs → startup-log-BI24ryBR.mjs} +3 -4
- package/dist/{startup-log-iSoBU74r.mjs.map → startup-log-BI24ryBR.mjs.map} +1 -1
- package/dist/{startup-log-C4DVL-6M.mjs → startup-log-isQ9Wv18.mjs} +1 -1
- package/dist/{state-CnkSwi5E.mjs → state-4Dz7r-_n.mjs} +5 -6
- package/dist/{state-CnkSwi5E.mjs.map → state-4Dz7r-_n.mjs.map} +1 -1
- package/dist/{shared-B8lb63iG.mjs → state-DDpxeTVd.mjs} +1 -1
- package/dist/{stdio-CZb1NNIa.mjs → stdio-20SBFdww.mjs} +3 -4
- package/dist/{stdio-CZb1NNIa.mjs.map → stdio-20SBFdww.mjs.map} +1 -1
- package/dist/{supervisor-B9lkK4ey.mjs → supervisor-Cu-xRt1k.mjs} +23 -27
- package/dist/{supervisor-B9lkK4ey.mjs.map → supervisor-Cu-xRt1k.mjs.map} +1 -1
- package/dist/{task-storage-recovery-_JdAWD5X.mjs → task-storage-recovery-fSo2eskS.mjs} +6 -7
- package/dist/{task-storage-recovery-_JdAWD5X.mjs.map → task-storage-recovery-fSo2eskS.mjs.map} +1 -1
- package/dist/thread-stream-worker.mjs +5 -6
- package/dist/thread-stream-worker.mjs.map +1 -1
- package/dist/{types-BEqvvpHh.mjs → types-C8GH0osr.mjs} +1 -1
- package/dist/{types-gJ5HkL66.mjs → types-kNTSQOnR.mjs} +4 -6
- package/dist/{types-gJ5HkL66.mjs.map → types-kNTSQOnR.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/config-CM4LsvW5.mjs.map +0 -1
- package/dist/hub-runtime-j_CZJnWz.mjs.map +0 -1
- package/dist/pino-CLoB7tK6.mjs.map +0 -1
- package/dist/probe-B6KQJxXU.mjs.map +0 -1
- package/dist/protocol-DNswG6F2.mjs.map +0 -1
- package/dist/runtime-platform-EULgJm_w.mjs.map +0 -1
- package/dist/schemas-BgOH6OcJ.mjs.map +0 -1
- package/dist/server-C-tcoOT7.mjs.map +0 -1
- package/dist/stable-edge-DQmYi4Mf.mjs.map +0 -1
package/dist/log-transport.mjs
CHANGED
|
@@ -4,12 +4,12 @@ globalThis.__bundlerPathsOverrides = {
|
|
|
4
4
|
'pino-worker': runtimeFilePath(new URL('./pino-worker.mjs', import.meta.url)),
|
|
5
5
|
'pino/file': runtimeFilePath(new URL('./pino-file.mjs', import.meta.url))
|
|
6
6
|
};
|
|
7
|
-
import { i as __toESM, r as __require, t as __commonJSMin } from "./rolldown-runtime-
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
7
|
+
import { i as __toESM, r as __require, t as __commonJSMin } from "./rolldown-runtime-BH1-_iVd.mjs";
|
|
8
|
+
import { t as require_pino_abstract_transport } from "./pino-abstract-transport-BBwCGDga.mjs";
|
|
9
|
+
import { n as require_atomic_sleep, t as require_on_exit_leak_free } from "./on-exit-leak-free-By20-eFK.mjs";
|
|
10
10
|
import { Writable } from "node:stream";
|
|
11
11
|
import { closeSync, fstatSync, ftruncateSync, openSync, writeSync } from "node:fs";
|
|
12
|
-
|
|
12
|
+
// ../../node_modules/.pnpm/colorette@2.0.20/node_modules/colorette/index.cjs
|
|
13
13
|
var require_colorette = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
var tty = __require("tty");
|
|
@@ -135,8 +135,7 @@ var require_colorette = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
135
135
|
exports.yellow = yellow;
|
|
136
136
|
exports.yellowBright = yellowBright;
|
|
137
137
|
}));
|
|
138
|
-
|
|
139
|
-
//#region ../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js
|
|
138
|
+
// ../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js
|
|
140
139
|
var require_wrappy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
141
140
|
module.exports = wrappy;
|
|
142
141
|
function wrappy(fn, cb) {
|
|
@@ -158,8 +157,7 @@ var require_wrappy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
158
157
|
}
|
|
159
158
|
}
|
|
160
159
|
}));
|
|
161
|
-
|
|
162
|
-
//#region ../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js
|
|
160
|
+
// ../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js
|
|
163
161
|
var require_once = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
164
162
|
var wrappy = require_wrappy();
|
|
165
163
|
module.exports = wrappy(once);
|
|
@@ -198,8 +196,7 @@ var require_once = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
198
196
|
return f;
|
|
199
197
|
}
|
|
200
198
|
}));
|
|
201
|
-
|
|
202
|
-
//#region ../../node_modules/.pnpm/end-of-stream@1.4.5/node_modules/end-of-stream/index.js
|
|
199
|
+
// ../../node_modules/.pnpm/end-of-stream@1.4.5/node_modules/end-of-stream/index.js
|
|
203
200
|
var require_end_of_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
204
201
|
var once = require_once();
|
|
205
202
|
var noop = function() {};
|
|
@@ -278,8 +275,7 @@ var require_end_of_stream = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
278
275
|
};
|
|
279
276
|
module.exports = eos;
|
|
280
277
|
}));
|
|
281
|
-
|
|
282
|
-
//#region ../../node_modules/.pnpm/pump@3.0.3/node_modules/pump/index.js
|
|
278
|
+
// ../../node_modules/.pnpm/pump@3.0.3/node_modules/pump/index.js
|
|
283
279
|
var require_pump = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
284
280
|
var once = require_once();
|
|
285
281
|
var eos = require_end_of_stream();
|
|
@@ -351,8 +347,7 @@ var require_pump = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
351
347
|
};
|
|
352
348
|
module.exports = pump;
|
|
353
349
|
}));
|
|
354
|
-
|
|
355
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/constants.js
|
|
350
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/constants.js
|
|
356
351
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
357
352
|
/**
|
|
358
353
|
* A set of property names that indicate the value represents an error object.
|
|
@@ -398,8 +393,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
398
393
|
]
|
|
399
394
|
};
|
|
400
395
|
}));
|
|
401
|
-
|
|
402
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-level-label-data.js
|
|
396
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-level-label-data.js
|
|
403
397
|
var require_get_level_label_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
404
398
|
module.exports = getLevelLabelData;
|
|
405
399
|
const { LEVELS, LEVEL_NAMES } = require_constants();
|
|
@@ -424,8 +418,7 @@ var require_get_level_label_data = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
424
418
|
};
|
|
425
419
|
}
|
|
426
420
|
}));
|
|
427
|
-
|
|
428
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/colors.js
|
|
421
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/colors.js
|
|
429
422
|
var require_colors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
430
423
|
const nocolor = (input) => input;
|
|
431
424
|
const plain = {
|
|
@@ -545,8 +538,7 @@ var require_colors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
545
538
|
return plainColorizer(useOnlyCustomProps);
|
|
546
539
|
};
|
|
547
540
|
}));
|
|
548
|
-
|
|
549
|
-
//#region ../../node_modules/.pnpm/sonic-boom@5.0.2/node_modules/sonic-boom/index.js
|
|
541
|
+
// ../../node_modules/.pnpm/sonic-boom@5.0.2/node_modules/sonic-boom/index.js
|
|
550
542
|
var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
551
543
|
const fs = __require("node:fs");
|
|
552
544
|
const EventEmitter = __require("node:events");
|
|
@@ -1168,13 +1160,11 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1168
1160
|
SonicBoom.default = SonicBoom;
|
|
1169
1161
|
module.exports = SonicBoom;
|
|
1170
1162
|
}));
|
|
1171
|
-
|
|
1172
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/noop.js
|
|
1163
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/noop.js
|
|
1173
1164
|
var require_noop = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1174
1165
|
module.exports = function noop() {};
|
|
1175
1166
|
}));
|
|
1176
|
-
|
|
1177
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/build-safe-sonic-boom.js
|
|
1167
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/build-safe-sonic-boom.js
|
|
1178
1168
|
var require_build_safe_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1179
1169
|
module.exports = buildSafeSonicBoom;
|
|
1180
1170
|
const { isMainThread } = __require("node:worker_threads");
|
|
@@ -1224,8 +1214,7 @@ var require_build_safe_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, mod
|
|
|
1224
1214
|
} else stream.flushSync();
|
|
1225
1215
|
}
|
|
1226
1216
|
}));
|
|
1227
|
-
|
|
1228
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/is-valid-date.js
|
|
1217
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/is-valid-date.js
|
|
1229
1218
|
var require_is_valid_date = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1230
1219
|
module.exports = isValidDate;
|
|
1231
1220
|
/**
|
|
@@ -1239,8 +1228,7 @@ var require_is_valid_date = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1239
1228
|
return date instanceof Date && !Number.isNaN(date.getTime());
|
|
1240
1229
|
}
|
|
1241
1230
|
}));
|
|
1242
|
-
|
|
1243
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/create-date.js
|
|
1231
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/create-date.js
|
|
1244
1232
|
var require_create_date = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1245
1233
|
module.exports = createDate;
|
|
1246
1234
|
const isValidDate = require_is_valid_date();
|
|
@@ -1260,8 +1248,7 @@ var require_create_date = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1260
1248
|
return date;
|
|
1261
1249
|
}
|
|
1262
1250
|
}));
|
|
1263
|
-
|
|
1264
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/split-property-key.js
|
|
1251
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/split-property-key.js
|
|
1265
1252
|
var require_split_property_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1266
1253
|
module.exports = splitPropertyKey;
|
|
1267
1254
|
/**
|
|
@@ -1299,8 +1286,7 @@ var require_split_property_key = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
1299
1286
|
return result;
|
|
1300
1287
|
}
|
|
1301
1288
|
}));
|
|
1302
|
-
|
|
1303
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-property-value.js
|
|
1289
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/get-property-value.js
|
|
1304
1290
|
var require_get_property_value = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1305
1291
|
module.exports = getPropertyValue;
|
|
1306
1292
|
const splitPropertyKey = require_split_property_key();
|
|
@@ -1325,8 +1311,7 @@ var require_get_property_value = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
1325
1311
|
return obj;
|
|
1326
1312
|
}
|
|
1327
1313
|
}));
|
|
1328
|
-
|
|
1329
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/delete-log-property.js
|
|
1314
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/delete-log-property.js
|
|
1330
1315
|
var require_delete_log_property = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1331
1316
|
module.exports = deleteLogProperty;
|
|
1332
1317
|
const getPropertyValue = require_get_property_value();
|
|
@@ -1349,9 +1334,22 @@ var require_delete_log_property = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
1349
1334
|
if (log !== null && typeof log === "object" && Object.prototype.hasOwnProperty.call(log, propToDelete)) delete log[propToDelete];
|
|
1350
1335
|
}
|
|
1351
1336
|
}));
|
|
1352
|
-
|
|
1353
|
-
//#region ../../node_modules/.pnpm/fast-copy@4.0.2/node_modules/fast-copy/dist/cjs/index.cjs
|
|
1337
|
+
// ../../node_modules/.pnpm/fast-copy@4.3.1/node_modules/fast-copy/dist/cjs/index.cjs
|
|
1354
1338
|
var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1339
|
+
/**
|
|
1340
|
+
* Error thrown when the copier traverses deeper than the configured `maxDepth`.
|
|
1341
|
+
*
|
|
1342
|
+
* @note
|
|
1343
|
+
* Extends `RangeError` for backwards compatibility, since exceeding the maximum depth
|
|
1344
|
+
* previously surfaced as a native `RangeError` from stack exhaustion.
|
|
1345
|
+
*/
|
|
1346
|
+
var MaxDepthExceededError = class extends RangeError {
|
|
1347
|
+
constructor(maxDepth) {
|
|
1348
|
+
super(`Maximum copy depth of ${String(maxDepth)} exceeded; the value copied is nested too deeply.`);
|
|
1349
|
+
this.maxDepth = maxDepth;
|
|
1350
|
+
this.name = "MaxDepthExceededError";
|
|
1351
|
+
}
|
|
1352
|
+
};
|
|
1355
1353
|
const toStringFunction = Function.prototype.toString;
|
|
1356
1354
|
const toStringObject = Object.prototype.toString;
|
|
1357
1355
|
/**
|
|
@@ -1361,7 +1359,7 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1361
1359
|
if (!prototype) return Object.create(null);
|
|
1362
1360
|
const Constructor = prototype.constructor;
|
|
1363
1361
|
if (Constructor === Object) return prototype === Object.prototype ? {} : Object.create(prototype);
|
|
1364
|
-
if (Constructor && ~toStringFunction.call(Constructor).indexOf("[native code]")) try {
|
|
1362
|
+
if (typeof Constructor === "function" && ~toStringFunction.call(Constructor).indexOf("[native code]")) try {
|
|
1365
1363
|
return new Constructor();
|
|
1366
1364
|
} catch (_a) {}
|
|
1367
1365
|
return Object.create(prototype);
|
|
@@ -1375,7 +1373,18 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1375
1373
|
const type = toStringObject.call(value);
|
|
1376
1374
|
return type.substring(8, type.length - 1);
|
|
1377
1375
|
}
|
|
1378
|
-
|
|
1376
|
+
/**
|
|
1377
|
+
* The shared `%TypedArray%.prototype.slice`, which every typed array inherits.
|
|
1378
|
+
*
|
|
1379
|
+
* @note
|
|
1380
|
+
* This is used instead of the `slice` found on the value itself because subclasses can
|
|
1381
|
+
* override it with one that does not copy. `Buffer` is the notable case: its `slice`
|
|
1382
|
+
* returns a view over the same memory, so copying through it would alias the original.
|
|
1383
|
+
*/
|
|
1384
|
+
const sliceTypedArray = Object.getPrototypeOf(Int8Array.prototype).slice;
|
|
1385
|
+
/**
|
|
1386
|
+
* Copy the descriptor from the original value to the clone.
|
|
1387
|
+
*/
|
|
1379
1388
|
function copyOwnDescriptor(original, clone, property, state) {
|
|
1380
1389
|
const ownDescriptor = Object.getOwnPropertyDescriptor(original, property) || {
|
|
1381
1390
|
configurable: true,
|
|
@@ -1396,19 +1405,21 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1396
1405
|
}
|
|
1397
1406
|
}
|
|
1398
1407
|
/**
|
|
1399
|
-
*
|
|
1408
|
+
* Strictly copy all properties contained on the object, starting with the name at the `start` index.
|
|
1409
|
+
*
|
|
1410
|
+
* @note
|
|
1411
|
+
* `Object.getOwnPropertyNames` lists integer keys first in ascending order, so array-like values
|
|
1412
|
+
* whose indices are already copied can pass their count as `start` to skip them.
|
|
1400
1413
|
*/
|
|
1401
|
-
function copyOwnPropertiesStrict(value, clone, state) {
|
|
1402
|
-
|
|
1403
|
-
for (
|
|
1404
|
-
const symbols = Object.getOwnPropertySymbols(value);
|
|
1405
|
-
for (let index = 0; index < symbols.length; ++index) copyOwnDescriptor(value, clone, symbols[index], state);
|
|
1414
|
+
function copyOwnPropertiesStrict(value, clone, state, names, start) {
|
|
1415
|
+
for (let index = start; index < names.length; ++index) copyOwnDescriptor(value, clone, names[index], state);
|
|
1416
|
+
for (const symbol of Object.getOwnPropertySymbols(value)) copyOwnDescriptor(value, clone, symbol, state);
|
|
1406
1417
|
return clone;
|
|
1407
1418
|
}
|
|
1408
1419
|
/**
|
|
1409
1420
|
* Deeply copy the indexed values in the array.
|
|
1410
1421
|
*/
|
|
1411
|
-
function
|
|
1422
|
+
function copyArray(array, state) {
|
|
1412
1423
|
const clone = new state.Constructor();
|
|
1413
1424
|
state.cache.set(array, clone);
|
|
1414
1425
|
for (let index = 0; index < array.length; ++index) clone[index] = state.copier(array[index], state);
|
|
@@ -1420,25 +1431,68 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1420
1431
|
function copyArrayStrict(array, state) {
|
|
1421
1432
|
const clone = new state.Constructor();
|
|
1422
1433
|
state.cache.set(array, clone);
|
|
1423
|
-
return copyOwnPropertiesStrict(array, clone, state);
|
|
1434
|
+
return copyOwnPropertiesStrict(array, clone, state, Object.getOwnPropertyNames(array), 0);
|
|
1424
1435
|
}
|
|
1425
1436
|
/**
|
|
1426
|
-
* Copy the contents of the ArrayBuffer.
|
|
1427
|
-
|
|
1428
|
-
|
|
1437
|
+
* Copy the contents of the ArrayBuffer, or of the typed array viewing one.
|
|
1438
|
+
*
|
|
1439
|
+
* @note
|
|
1440
|
+
* `slice` always returns a fixed-length buffer, so a resizable or growable buffer that can change
|
|
1441
|
+
* size is instead constructed with the same `maxByteLength` and has its contents copied in.
|
|
1442
|
+
*/
|
|
1443
|
+
function copyArrayBuffer(arrayBuffer, state) {
|
|
1444
|
+
if (ArrayBuffer.isView(arrayBuffer)) return sliceTypedArray.call(arrayBuffer, 0);
|
|
1445
|
+
if (arrayBuffer.resizable || arrayBuffer.growable) {
|
|
1446
|
+
const maxByteLength = arrayBuffer.maxByteLength;
|
|
1447
|
+
const clone = new state.Constructor(arrayBuffer.byteLength, { maxByteLength });
|
|
1448
|
+
new Uint8Array(clone).set(new Uint8Array(arrayBuffer));
|
|
1449
|
+
return clone;
|
|
1450
|
+
}
|
|
1451
|
+
if (!arrayBuffer.byteLength && getTag(arrayBuffer) === "SharedArrayBuffer") return new state.Constructor(0);
|
|
1429
1452
|
return arrayBuffer.slice(0);
|
|
1430
1453
|
}
|
|
1431
1454
|
/**
|
|
1455
|
+
* Copy the contents of the ArrayBuffer, or of the typed array viewing one, as well as
|
|
1456
|
+
* any custom properties.
|
|
1457
|
+
*/
|
|
1458
|
+
function copyArrayBufferStrict(arrayBuffer, state) {
|
|
1459
|
+
const clone = copyArrayBuffer(arrayBuffer, state);
|
|
1460
|
+
state.cache.set(arrayBuffer, clone);
|
|
1461
|
+
const start = ArrayBuffer.isView(clone) ? clone.length || 0 : 0;
|
|
1462
|
+
return copyOwnPropertiesStrict(arrayBuffer, clone, state, Object.getOwnPropertyNames(arrayBuffer), start);
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1432
1465
|
* Create a new Blob with the contents of the original.
|
|
1433
1466
|
*/
|
|
1434
1467
|
function copyBlob(blob, _state) {
|
|
1435
1468
|
return blob.slice(0, blob.size, blob.type);
|
|
1436
1469
|
}
|
|
1437
1470
|
/**
|
|
1471
|
+
* Create a new Blob with the contents of the original, and copy any custom properties.
|
|
1472
|
+
*/
|
|
1473
|
+
const copyBlobStrict = createStrictHandler(copyBlob);
|
|
1474
|
+
/**
|
|
1438
1475
|
* Create a new DataView with the contents of the original.
|
|
1439
1476
|
*/
|
|
1440
1477
|
function copyDataView(dataView, state) {
|
|
1441
|
-
return new state.Constructor(
|
|
1478
|
+
return new state.Constructor(state.copier(dataView.buffer, state), dataView.byteOffset, dataView.byteLength);
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* Create a new DataView with the contents of the original, and copy any custom properties.
|
|
1482
|
+
*
|
|
1483
|
+
* @note
|
|
1484
|
+
* The buffer is shared with any other reference to it in the value being copied, and has
|
|
1485
|
+
* its own custom properties copied, the same as if it were reached directly.
|
|
1486
|
+
*/
|
|
1487
|
+
function copyDataViewStrict(dataView, state) {
|
|
1488
|
+
const { buffer } = dataView;
|
|
1489
|
+
const { cache, Constructor } = state;
|
|
1490
|
+
const bufferCopied = cache.has(buffer);
|
|
1491
|
+
const bufferClone = bufferCopied ? cache.get(buffer) : state.copier(buffer, state);
|
|
1492
|
+
if (!bufferCopied && cache.has(dataView)) return cache.get(dataView);
|
|
1493
|
+
const clone = new Constructor(bufferClone, dataView.byteOffset, dataView.byteLength);
|
|
1494
|
+
state.cache.set(dataView, clone);
|
|
1495
|
+
return copyOwnPropertiesStrict(dataView, clone, state, Object.getOwnPropertyNames(dataView), 0);
|
|
1442
1496
|
}
|
|
1443
1497
|
/**
|
|
1444
1498
|
* Create a new Date based on the time of the original.
|
|
@@ -1447,34 +1501,38 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1447
1501
|
return new state.Constructor(date.getTime());
|
|
1448
1502
|
}
|
|
1449
1503
|
/**
|
|
1504
|
+
* Create a new Date based on the time of the original, and copy any custom properties.
|
|
1505
|
+
*/
|
|
1506
|
+
const copyDateStrict = createStrictHandler(copyDate);
|
|
1507
|
+
/**
|
|
1450
1508
|
* Deeply copy the keys and values of the original.
|
|
1451
1509
|
*/
|
|
1452
|
-
function
|
|
1510
|
+
function copyMap(map, state) {
|
|
1453
1511
|
const clone = new state.Constructor();
|
|
1454
1512
|
state.cache.set(map, clone);
|
|
1455
|
-
map.
|
|
1456
|
-
clone.set(key, state.copier(value, state));
|
|
1457
|
-
});
|
|
1513
|
+
for (const [key, value] of map) clone.set(key, state.copier(value, state));
|
|
1458
1514
|
return clone;
|
|
1459
1515
|
}
|
|
1460
1516
|
/**
|
|
1461
1517
|
* Deeply copy the keys and values of the original, as well as any custom properties.
|
|
1462
1518
|
*/
|
|
1463
1519
|
function copyMapStrict(map, state) {
|
|
1464
|
-
return copyOwnPropertiesStrict(map,
|
|
1520
|
+
return copyOwnPropertiesStrict(map, copyMap(map, state), state, Object.getOwnPropertyNames(map), 0);
|
|
1465
1521
|
}
|
|
1466
1522
|
/**
|
|
1467
1523
|
* Deeply copy the properties (keys and symbols) and values of the original.
|
|
1468
1524
|
*/
|
|
1469
|
-
function
|
|
1525
|
+
function copyObject(object, state) {
|
|
1470
1526
|
const clone = getCleanClone(state.prototype);
|
|
1471
1527
|
state.cache.set(object, clone);
|
|
1472
|
-
for (const key
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
}
|
|
1528
|
+
for (const key of Object.keys(object)) if (key === "__proto__") Object.defineProperty(clone, key, {
|
|
1529
|
+
configurable: true,
|
|
1530
|
+
enumerable: true,
|
|
1531
|
+
value: state.copier(object[key], state),
|
|
1532
|
+
writable: true
|
|
1533
|
+
});
|
|
1534
|
+
else clone[key] = state.copier(object[key], state);
|
|
1535
|
+
for (const symbol of Object.getOwnPropertySymbols(object)) if (Object.prototype.propertyIsEnumerable.call(object, symbol)) clone[symbol] = state.copier(object[symbol], state);
|
|
1478
1536
|
return clone;
|
|
1479
1537
|
}
|
|
1480
1538
|
/**
|
|
@@ -1484,7 +1542,7 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1484
1542
|
function copyObjectStrict(object, state) {
|
|
1485
1543
|
const clone = getCleanClone(state.prototype);
|
|
1486
1544
|
state.cache.set(object, clone);
|
|
1487
|
-
return copyOwnPropertiesStrict(object, clone, state);
|
|
1545
|
+
return copyOwnPropertiesStrict(object, clone, state, Object.getOwnPropertyNames(object), 0);
|
|
1488
1546
|
}
|
|
1489
1547
|
/**
|
|
1490
1548
|
* Create a new primitive wrapper from the value of the original.
|
|
@@ -1493,6 +1551,11 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1493
1551
|
return new state.Constructor(primitiveObject.valueOf());
|
|
1494
1552
|
}
|
|
1495
1553
|
/**
|
|
1554
|
+
* Create a new primitive wrapper from the value of the original, and copy any
|
|
1555
|
+
* custom properties.
|
|
1556
|
+
*/
|
|
1557
|
+
const copyPrimitiveWrapperStrict = createStrictHandler(copyPrimitiveWrapper);
|
|
1558
|
+
/**
|
|
1496
1559
|
* Create a new RegExp based on the value and flags of the original.
|
|
1497
1560
|
*/
|
|
1498
1561
|
function copyRegExp(regExp, state) {
|
|
@@ -1501,6 +1564,10 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1501
1564
|
return clone;
|
|
1502
1565
|
}
|
|
1503
1566
|
/**
|
|
1567
|
+
* Copy the original RegExp, as well as any custom properties.
|
|
1568
|
+
*/
|
|
1569
|
+
const copyRegExpStrict = createStrictHandler(copyRegExp);
|
|
1570
|
+
/**
|
|
1504
1571
|
* Return the original value (an identity function).
|
|
1505
1572
|
*
|
|
1506
1573
|
* @note
|
|
@@ -1512,45 +1579,78 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1512
1579
|
/**
|
|
1513
1580
|
* Deeply copy the values of the original.
|
|
1514
1581
|
*/
|
|
1515
|
-
function
|
|
1582
|
+
function copySet(set, state) {
|
|
1516
1583
|
const clone = new state.Constructor();
|
|
1517
1584
|
state.cache.set(set, clone);
|
|
1518
|
-
set.
|
|
1519
|
-
clone.add(state.copier(value, state));
|
|
1520
|
-
});
|
|
1585
|
+
for (const value of set) clone.add(state.copier(value, state));
|
|
1521
1586
|
return clone;
|
|
1522
1587
|
}
|
|
1523
1588
|
/**
|
|
1524
1589
|
* Deeply copy the values of the original, as well as any custom properties.
|
|
1525
1590
|
*/
|
|
1526
1591
|
function copySetStrict(set, state) {
|
|
1527
|
-
return copyOwnPropertiesStrict(set,
|
|
1592
|
+
return copyOwnPropertiesStrict(set, copySet(set, state), state, Object.getOwnPropertyNames(set), 0);
|
|
1593
|
+
}
|
|
1594
|
+
/**
|
|
1595
|
+
* Copy the original value based on the handler passed, and also copy custom properties.
|
|
1596
|
+
*
|
|
1597
|
+
* @note
|
|
1598
|
+
* The handlers used here have no nested values to copy, so they skip the cache to keep loose
|
|
1599
|
+
* copies fast. Custom properties can reference the value itself, so the clone is cached here
|
|
1600
|
+
* before they are copied.
|
|
1601
|
+
*/
|
|
1602
|
+
function createStrictHandler(handler) {
|
|
1603
|
+
return (value, state) => {
|
|
1604
|
+
const clone = handler(value, state);
|
|
1605
|
+
state.cache.set(value, clone);
|
|
1606
|
+
return copyOwnPropertiesStrict(value, clone, state, Object.getOwnPropertyNames(value), 0);
|
|
1607
|
+
};
|
|
1528
1608
|
}
|
|
1609
|
+
/**
|
|
1610
|
+
* Create a new String wrapper from the value of the original, and copy custom properties.
|
|
1611
|
+
*/
|
|
1612
|
+
function copyStringStrict(string, state) {
|
|
1613
|
+
const clone = copyPrimitiveWrapper(string, state);
|
|
1614
|
+
state.cache.set(string, clone);
|
|
1615
|
+
const { length } = string;
|
|
1616
|
+
const names = Object.getOwnPropertyNames(string);
|
|
1617
|
+
return copyOwnPropertiesStrict(string, clone, state, names, names[length] === "length" ? length + 1 : length);
|
|
1618
|
+
}
|
|
1619
|
+
/**
|
|
1620
|
+
* The maximum depth traversed when none is provided.
|
|
1621
|
+
*
|
|
1622
|
+
* @note
|
|
1623
|
+
* This is deliberately below the depth at which the native call stack is exhausted
|
|
1624
|
+
* (~1875 for strict copies in node), so that untrusted, deeply-nested values fail with a
|
|
1625
|
+
* catchable, descriptive error instead of a raw `RangeError`.
|
|
1626
|
+
*/
|
|
1627
|
+
const DEFAULT_MAX_DEPTH = 1e3;
|
|
1529
1628
|
function createDefaultCache() {
|
|
1530
1629
|
return /* @__PURE__ */ new WeakMap();
|
|
1531
1630
|
}
|
|
1532
|
-
function getOptions({ createCache: createCacheOverride, methods: methodsOverride, strict }) {
|
|
1631
|
+
function getOptions({ createCache: createCacheOverride, maxDepth, methods: methodsOverride, strict }) {
|
|
1533
1632
|
const defaultMethods = {
|
|
1534
|
-
array: strict ? copyArrayStrict :
|
|
1535
|
-
arrayBuffer: copyArrayBuffer,
|
|
1633
|
+
array: strict ? copyArrayStrict : copyArray,
|
|
1634
|
+
arrayBuffer: strict ? copyArrayBufferStrict : copyArrayBuffer,
|
|
1536
1635
|
asyncGenerator: copySelf,
|
|
1537
|
-
blob: copyBlob,
|
|
1538
|
-
dataView: copyDataView,
|
|
1539
|
-
date: copyDate,
|
|
1636
|
+
blob: strict ? copyBlobStrict : copyBlob,
|
|
1637
|
+
dataView: strict ? copyDataViewStrict : copyDataView,
|
|
1638
|
+
date: strict ? copyDateStrict : copyDate,
|
|
1540
1639
|
error: copySelf,
|
|
1541
1640
|
generator: copySelf,
|
|
1542
|
-
map: strict ? copyMapStrict :
|
|
1543
|
-
object: strict ? copyObjectStrict :
|
|
1544
|
-
regExp: copyRegExp,
|
|
1545
|
-
set: strict ? copySetStrict :
|
|
1641
|
+
map: strict ? copyMapStrict : copyMap,
|
|
1642
|
+
object: strict ? copyObjectStrict : copyObject,
|
|
1643
|
+
regExp: strict ? copyRegExpStrict : copyRegExp,
|
|
1644
|
+
set: strict ? copySetStrict : copySet
|
|
1546
1645
|
};
|
|
1547
1646
|
const methods = methodsOverride ? Object.assign(defaultMethods, methodsOverride) : defaultMethods;
|
|
1548
|
-
const copiers = getTagSpecificCopiers(methods);
|
|
1647
|
+
const copiers = getTagSpecificCopiers(methods, strict);
|
|
1549
1648
|
const createCache = createCacheOverride || createDefaultCache;
|
|
1550
1649
|
if (!copiers.Object || !copiers.Array) throw new Error("An object and array copier must be provided.");
|
|
1551
1650
|
return {
|
|
1552
1651
|
createCache,
|
|
1553
1652
|
copiers,
|
|
1653
|
+
maxDepth: maxDepth == null ? DEFAULT_MAX_DEPTH : maxDepth,
|
|
1554
1654
|
methods,
|
|
1555
1655
|
strict: Boolean(strict)
|
|
1556
1656
|
};
|
|
@@ -1558,14 +1658,17 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1558
1658
|
/**
|
|
1559
1659
|
* Get the copiers used for each specific object tag.
|
|
1560
1660
|
*/
|
|
1561
|
-
function getTagSpecificCopiers(methods) {
|
|
1562
|
-
|
|
1661
|
+
function getTagSpecificCopiers(methods, strict) {
|
|
1662
|
+
const copyPrimitive = strict ? copyPrimitiveWrapperStrict : copyPrimitiveWrapper;
|
|
1663
|
+
return Object.assign(Object.create(null), {
|
|
1563
1664
|
Arguments: methods.object,
|
|
1564
1665
|
Array: methods.array,
|
|
1565
1666
|
ArrayBuffer: methods.arrayBuffer,
|
|
1566
1667
|
AsyncGenerator: methods.asyncGenerator,
|
|
1668
|
+
BigInt64Array: methods.arrayBuffer,
|
|
1669
|
+
BigUint64Array: methods.arrayBuffer,
|
|
1567
1670
|
Blob: methods.blob,
|
|
1568
|
-
Boolean:
|
|
1671
|
+
Boolean: copyPrimitive,
|
|
1569
1672
|
DataView: methods.dataView,
|
|
1570
1673
|
Date: methods.date,
|
|
1571
1674
|
Error: methods.error,
|
|
@@ -1576,20 +1679,20 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1576
1679
|
Int16Array: methods.arrayBuffer,
|
|
1577
1680
|
Int32Array: methods.arrayBuffer,
|
|
1578
1681
|
Map: methods.map,
|
|
1579
|
-
Number:
|
|
1682
|
+
Number: copyPrimitive,
|
|
1580
1683
|
Object: methods.object,
|
|
1581
1684
|
Promise: copySelf,
|
|
1582
1685
|
RegExp: methods.regExp,
|
|
1583
1686
|
Set: methods.set,
|
|
1584
|
-
|
|
1687
|
+
SharedArrayBuffer: methods.arrayBuffer,
|
|
1688
|
+
String: strict ? copyStringStrict : copyPrimitiveWrapper,
|
|
1585
1689
|
WeakMap: copySelf,
|
|
1586
1690
|
WeakSet: copySelf,
|
|
1587
1691
|
Uint8Array: methods.arrayBuffer,
|
|
1588
1692
|
Uint8ClampedArray: methods.arrayBuffer,
|
|
1589
1693
|
Uint16Array: methods.arrayBuffer,
|
|
1590
|
-
Uint32Array: methods.arrayBuffer
|
|
1591
|
-
|
|
1592
|
-
};
|
|
1694
|
+
Uint32Array: methods.arrayBuffer
|
|
1695
|
+
});
|
|
1593
1696
|
}
|
|
1594
1697
|
/**
|
|
1595
1698
|
* Create a custom copier based on custom options for any of the following:
|
|
@@ -1598,25 +1701,32 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1598
1701
|
* - `strict` mode to copy all properties with their descriptors
|
|
1599
1702
|
*/
|
|
1600
1703
|
function createCopier(options = {}) {
|
|
1601
|
-
const { createCache, copiers } = getOptions(options);
|
|
1704
|
+
const { createCache, copiers, maxDepth } = getOptions(options);
|
|
1602
1705
|
const { Array: copyArray, Object: copyObject } = copiers;
|
|
1603
1706
|
function copier(value, state) {
|
|
1604
1707
|
state.prototype = state.Constructor = void 0;
|
|
1605
1708
|
if (!value || typeof value !== "object") return value;
|
|
1606
1709
|
if (state.cache.has(value)) return state.cache.get(value);
|
|
1710
|
+
if (++state.depth > maxDepth) throw new MaxDepthExceededError(maxDepth);
|
|
1607
1711
|
state.prototype = Object.getPrototypeOf(value);
|
|
1608
1712
|
state.Constructor = state.prototype && state.prototype.constructor;
|
|
1609
|
-
|
|
1610
|
-
if (
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1713
|
+
let clone;
|
|
1714
|
+
if (!state.Constructor || state.Constructor === Object) clone = copyObject(value, state);
|
|
1715
|
+
else if (Array.isArray(value)) clone = copyArray(value, state);
|
|
1716
|
+
else {
|
|
1717
|
+
const tagSpecificCopier = copiers[getTag(value)];
|
|
1718
|
+
if (tagSpecificCopier) clone = tagSpecificCopier(value, state);
|
|
1719
|
+
else clone = typeof value.then === "function" ? value : copyObject(value, state);
|
|
1720
|
+
}
|
|
1721
|
+
--state.depth;
|
|
1722
|
+
return clone;
|
|
1614
1723
|
}
|
|
1615
1724
|
return function copy(value) {
|
|
1616
1725
|
return copier(value, {
|
|
1617
1726
|
Constructor: void 0,
|
|
1618
1727
|
cache: createCache(),
|
|
1619
1728
|
copier,
|
|
1729
|
+
depth: 0,
|
|
1620
1730
|
prototype: void 0
|
|
1621
1731
|
});
|
|
1622
1732
|
};
|
|
@@ -1627,12 +1737,16 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1627
1737
|
* original property descriptors on both objects and arrays.
|
|
1628
1738
|
*/
|
|
1629
1739
|
const copyStrict = createCopier({ strict: true });
|
|
1630
|
-
|
|
1740
|
+
/**
|
|
1741
|
+
* Copy an value deeply as much as possible.
|
|
1742
|
+
*/
|
|
1743
|
+
const copy = createCopier();
|
|
1744
|
+
exports.MaxDepthExceededError = MaxDepthExceededError;
|
|
1745
|
+
exports.copy = copy;
|
|
1631
1746
|
exports.copyStrict = copyStrict;
|
|
1632
1747
|
exports.createCopier = createCopier;
|
|
1633
1748
|
}));
|
|
1634
|
-
|
|
1635
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/filter-log.js
|
|
1749
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/filter-log.js
|
|
1636
1750
|
var require_filter_log = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1637
1751
|
module.exports = filterLog;
|
|
1638
1752
|
const { createCopier } = require_cjs();
|
|
@@ -1711,8 +1825,7 @@ var require_filter_log = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1711
1825
|
return logCopy;
|
|
1712
1826
|
}
|
|
1713
1827
|
}));
|
|
1714
|
-
|
|
1715
|
-
//#region ../../node_modules/.pnpm/dateformat@4.6.3/node_modules/dateformat/lib/dateformat.js
|
|
1828
|
+
// ../../node_modules/.pnpm/dateformat@4.6.3/node_modules/dateformat/lib/dateformat.js
|
|
1716
1829
|
var require_dateformat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1717
1830
|
function _typeof(obj) {
|
|
1718
1831
|
"@babel/helpers - typeof";
|
|
@@ -2050,8 +2163,7 @@ var require_dateformat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2050
2163
|
else global.dateFormat = dateFormat;
|
|
2051
2164
|
})(void 0);
|
|
2052
2165
|
}));
|
|
2053
|
-
|
|
2054
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/format-time.js
|
|
2166
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/format-time.js
|
|
2055
2167
|
var require_format_time = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2056
2168
|
module.exports = formatTime;
|
|
2057
2169
|
const { DATE_FORMAT, DATE_FORMAT_SIMPLE } = require_constants();
|
|
@@ -2095,8 +2207,7 @@ var require_format_time = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2095
2207
|
return dateformat(instant, `UTC:${translateTime}`);
|
|
2096
2208
|
}
|
|
2097
2209
|
}));
|
|
2098
|
-
|
|
2099
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-names-opts.js
|
|
2210
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-names-opts.js
|
|
2100
2211
|
var require_handle_custom_levels_names_opts = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2101
2212
|
module.exports = handleCustomLevelsNamesOpts;
|
|
2102
2213
|
/**
|
|
@@ -2125,8 +2236,7 @@ var require_handle_custom_levels_names_opts = /* @__PURE__ */ __commonJSMin(((ex
|
|
|
2125
2236
|
else return {};
|
|
2126
2237
|
}
|
|
2127
2238
|
}));
|
|
2128
|
-
|
|
2129
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-opts.js
|
|
2239
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-opts.js
|
|
2130
2240
|
var require_handle_custom_levels_opts = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2131
2241
|
module.exports = handleCustomLevelsOpts;
|
|
2132
2242
|
/**
|
|
@@ -2155,8 +2265,7 @@ var require_handle_custom_levels_opts = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
2155
2265
|
else return {};
|
|
2156
2266
|
}
|
|
2157
2267
|
}));
|
|
2158
|
-
|
|
2159
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/interpret-conditionals.js
|
|
2268
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/interpret-conditionals.js
|
|
2160
2269
|
var require_interpret_conditionals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2161
2270
|
module.exports = interpretConditionals;
|
|
2162
2271
|
const getPropertyValue = require_get_property_value();
|
|
@@ -2186,16 +2295,14 @@ var require_interpret_conditionals = /* @__PURE__ */ __commonJSMin(((exports, mo
|
|
|
2186
2295
|
}
|
|
2187
2296
|
}
|
|
2188
2297
|
}));
|
|
2189
|
-
|
|
2190
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/is-object.js
|
|
2298
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/is-object.js
|
|
2191
2299
|
var require_is_object = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2192
2300
|
module.exports = isObject;
|
|
2193
2301
|
function isObject(input) {
|
|
2194
2302
|
return Object.prototype.toString.apply(input) === "[object Object]";
|
|
2195
2303
|
}
|
|
2196
2304
|
}));
|
|
2197
|
-
|
|
2198
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js
|
|
2305
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js
|
|
2199
2306
|
var require_join_lines_with_indentation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2200
2307
|
module.exports = joinLinesWithIndentation;
|
|
2201
2308
|
/**
|
|
@@ -2221,8 +2328,7 @@ var require_join_lines_with_indentation = /* @__PURE__ */ __commonJSMin(((export
|
|
|
2221
2328
|
return lines.join(eol);
|
|
2222
2329
|
}
|
|
2223
2330
|
}));
|
|
2224
|
-
|
|
2225
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/parse-factory-options.js
|
|
2331
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/parse-factory-options.js
|
|
2226
2332
|
var require_parse_factory_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2227
2333
|
module.exports = parseFactoryOptions;
|
|
2228
2334
|
const { LEVEL_NAMES } = require_constants();
|
|
@@ -2350,8 +2456,7 @@ var require_parse_factory_options = /* @__PURE__ */ __commonJSMin(((exports, mod
|
|
|
2350
2456
|
};
|
|
2351
2457
|
}
|
|
2352
2458
|
}));
|
|
2353
|
-
|
|
2354
|
-
//#region ../../node_modules/.pnpm/fast-safe-stringify@2.1.1/node_modules/fast-safe-stringify/index.js
|
|
2459
|
+
// ../../node_modules/.pnpm/fast-safe-stringify@2.1.1/node_modules/fast-safe-stringify/index.js
|
|
2355
2460
|
var require_fast_safe_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2356
2461
|
module.exports = stringify;
|
|
2357
2462
|
stringify.default = stringify;
|
|
@@ -2521,8 +2626,7 @@ var require_fast_safe_stringify = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
2521
2626
|
};
|
|
2522
2627
|
}
|
|
2523
2628
|
}));
|
|
2524
|
-
|
|
2525
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/strip-unsafe-control-chars.js
|
|
2629
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/strip-unsafe-control-chars.js
|
|
2526
2630
|
var require_strip_unsafe_control_chars = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2527
2631
|
module.exports = stripUnsafeControlChars;
|
|
2528
2632
|
const unsafeControlChars = /[\u0000-\u0008\u000B-\u001F\u007F-\u009F]/g;
|
|
@@ -2537,8 +2641,7 @@ var require_strip_unsafe_control_chars = /* @__PURE__ */ __commonJSMin(((exports
|
|
|
2537
2641
|
return String(input).replace(unsafeControlChars, "");
|
|
2538
2642
|
}
|
|
2539
2643
|
}));
|
|
2540
|
-
|
|
2541
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-error.js
|
|
2644
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-error.js
|
|
2542
2645
|
var require_prettify_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2543
2646
|
module.exports = prettifyError;
|
|
2544
2647
|
const joinLinesWithIndentation = require_join_lines_with_indentation();
|
|
@@ -2586,8 +2689,7 @@ var require_prettify_error = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
2586
2689
|
return result;
|
|
2587
2690
|
}
|
|
2588
2691
|
}));
|
|
2589
|
-
|
|
2590
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-object.js
|
|
2692
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-object.js
|
|
2591
2693
|
var require_prettify_object = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2592
2694
|
module.exports = prettifyObject;
|
|
2593
2695
|
const { LOGGER_KEYS } = require_constants();
|
|
@@ -2667,8 +2769,7 @@ var require_prettify_object = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
2667
2769
|
return result;
|
|
2668
2770
|
}
|
|
2669
2771
|
}));
|
|
2670
|
-
|
|
2671
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-error-log.js
|
|
2772
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-error-log.js
|
|
2672
2773
|
var require_prettify_error_log = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2673
2774
|
module.exports = prettifyErrorLog;
|
|
2674
2775
|
const { LOGGER_KEYS } = require_constants();
|
|
@@ -2726,8 +2827,7 @@ var require_prettify_error_log = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
2726
2827
|
return result;
|
|
2727
2828
|
}
|
|
2728
2829
|
}));
|
|
2729
|
-
|
|
2730
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-level.js
|
|
2830
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-level.js
|
|
2731
2831
|
var require_prettify_level = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2732
2832
|
module.exports = prettifyLevel;
|
|
2733
2833
|
const getPropertyValue = require_get_property_value();
|
|
@@ -2767,8 +2867,7 @@ var require_prettify_level = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
2767
2867
|
return labelColorized;
|
|
2768
2868
|
}
|
|
2769
2869
|
}));
|
|
2770
|
-
|
|
2771
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-message.js
|
|
2870
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-message.js
|
|
2772
2871
|
var require_prettify_message = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2773
2872
|
module.exports = prettifyMessage;
|
|
2774
2873
|
const { LEVELS } = require_constants();
|
|
@@ -2811,8 +2910,7 @@ var require_prettify_message = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
2811
2910
|
return colorizer.message(stripUnsafeControlChars(log[messageKey]));
|
|
2812
2911
|
}
|
|
2813
2912
|
}));
|
|
2814
|
-
|
|
2815
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-metadata.js
|
|
2913
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-metadata.js
|
|
2816
2914
|
var require_prettify_metadata = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2817
2915
|
module.exports = prettifyMetadata;
|
|
2818
2916
|
const stripUnsafeControlChars = require_strip_unsafe_control_chars();
|
|
@@ -2858,8 +2956,7 @@ var require_prettify_metadata = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
2858
2956
|
else return line;
|
|
2859
2957
|
}
|
|
2860
2958
|
}));
|
|
2861
|
-
|
|
2862
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-time.js
|
|
2959
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/prettify-time.js
|
|
2863
2960
|
var require_prettify_time = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2864
2961
|
module.exports = prettifyTime;
|
|
2865
2962
|
const formatTime = require_format_time();
|
|
@@ -2891,8 +2988,7 @@ var require_prettify_time = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
2891
2988
|
return prettifier ? prettifier(output) : `[${stripUnsafeControlChars(output)}]`;
|
|
2892
2989
|
}
|
|
2893
2990
|
}));
|
|
2894
|
-
|
|
2895
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/index.js
|
|
2991
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/utils/index.js
|
|
2896
2992
|
var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2897
2993
|
module.exports = {
|
|
2898
2994
|
buildSafeSonicBoom: require_build_safe_sonic_boom(),
|
|
@@ -2989,8 +3085,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2989
3085
|
* return `${log[levelLabel]} - ${log[messageKey]}`
|
|
2990
3086
|
* }
|
|
2991
3087
|
*/
|
|
2992
|
-
|
|
2993
|
-
//#region ../../node_modules/.pnpm/secure-json-parse@4.1.0/node_modules/secure-json-parse/index.js
|
|
3088
|
+
// ../../node_modules/.pnpm/secure-json-parse@4.1.0/node_modules/secure-json-parse/index.js
|
|
2994
3089
|
var require_secure_json_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2995
3090
|
const hasBuffer = typeof Buffer !== "undefined";
|
|
2996
3091
|
const suspectProtoRx = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/;
|
|
@@ -3103,8 +3198,7 @@ var require_secure_json_parse = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
3103
3198
|
module.exports.safeParse = safeParse;
|
|
3104
3199
|
module.exports.scan = filter;
|
|
3105
3200
|
}));
|
|
3106
|
-
|
|
3107
|
-
//#region ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/pretty.js
|
|
3201
|
+
// ../../node_modules/.pnpm/pino-pretty@13.2.0/node_modules/pino-pretty/lib/pretty.js
|
|
3108
3202
|
var require_pretty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3109
3203
|
module.exports = pretty;
|
|
3110
3204
|
const sjs = require_secure_json_parse();
|
|
@@ -3216,12 +3310,11 @@ var require_pretty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3216
3310
|
return line;
|
|
3217
3311
|
}
|
|
3218
3312
|
}));
|
|
3219
|
-
|
|
3220
|
-
//#region src/log-destination.ts
|
|
3313
|
+
// src/log-destination.ts
|
|
3221
3314
|
var import_pino_pretty = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3222
3315
|
const { isColorSupported } = require_colorette();
|
|
3223
3316
|
const pump = require_pump();
|
|
3224
|
-
const { Transform
|
|
3317
|
+
const { Transform } = __require("node:stream");
|
|
3225
3318
|
const abstractTransport = require_pino_abstract_transport();
|
|
3226
3319
|
const colors = require_colors();
|
|
3227
3320
|
const { ERROR_LIKE_KEYS, LEVEL_KEY, LEVEL_LABEL, MESSAGE_KEY, TIMESTAMP_KEY } = require_constants();
|
|
@@ -3382,7 +3475,7 @@ var import_pino_pretty = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(
|
|
|
3382
3475
|
pretty = prettyFactory(opts);
|
|
3383
3476
|
source.off("message", pinoConfigListener);
|
|
3384
3477
|
});
|
|
3385
|
-
const stream = new Transform
|
|
3478
|
+
const stream = new Transform({
|
|
3386
3479
|
objectMode: true,
|
|
3387
3480
|
autoDestroy: true,
|
|
3388
3481
|
transform(chunk, enc, cb) {
|
|
@@ -3469,8 +3562,7 @@ function createLogDestination(path) {
|
|
|
3469
3562
|
}
|
|
3470
3563
|
});
|
|
3471
3564
|
}
|
|
3472
|
-
|
|
3473
|
-
//#region src/log-transport.ts
|
|
3565
|
+
// src/log-transport.ts
|
|
3474
3566
|
function logTransport(options) {
|
|
3475
3567
|
const destination = createLogDestination(options.destination);
|
|
3476
3568
|
try {
|
|
@@ -3490,7 +3582,6 @@ function logTransport(options) {
|
|
|
3490
3582
|
throw error;
|
|
3491
3583
|
}
|
|
3492
3584
|
}
|
|
3493
|
-
//#endregion
|
|
3494
3585
|
export { logTransport as default };
|
|
3495
3586
|
|
|
3496
3587
|
//# sourceMappingURL=log-transport.mjs.map
|