@sentry/craft 2.31.0 → 2.31.2
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/craft +453 -392
- package/package.json +7 -2
package/dist/craft
CHANGED
|
@@ -46873,7 +46873,7 @@ var init_esm14 = __esm({
|
|
|
46873
46873
|
}
|
|
46874
46874
|
});
|
|
46875
46875
|
|
|
46876
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
46876
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/dist/js-yaml.mjs
|
|
46877
46877
|
function getDefaultExportFromCjs(x6) {
|
|
46878
46878
|
return x6 && x6.__esModule && Object.prototype.hasOwnProperty.call(x6, "default") ? x6["default"] : x6;
|
|
46879
46879
|
}
|
|
@@ -48104,16 +48104,21 @@ function requireLoader() {
|
|
|
48104
48104
|
state2.result += _result;
|
|
48105
48105
|
}
|
|
48106
48106
|
}
|
|
48107
|
+
function chargeMergeWork(state2) {
|
|
48108
|
+
state2.totalMergeKeys++;
|
|
48109
|
+
if (state2.maxTotalMergeKeys !== -1 && state2.totalMergeKeys > state2.maxTotalMergeKeys) {
|
|
48110
|
+
throwError(state2, "merge keys exceeded maxTotalMergeKeys (" + state2.maxTotalMergeKeys + ")");
|
|
48111
|
+
}
|
|
48112
|
+
}
|
|
48107
48113
|
function mergeMappings(state2, destination, source, overridableKeys) {
|
|
48108
48114
|
if (!common2.isObject(source)) {
|
|
48109
48115
|
throwError(state2, "cannot merge mappings; the provided source object is unacceptable");
|
|
48110
48116
|
}
|
|
48117
|
+
chargeMergeWork(state2);
|
|
48111
48118
|
const sourceKeys = Object.keys(source);
|
|
48112
48119
|
for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
48113
48120
|
const key = sourceKeys[index];
|
|
48114
|
-
|
|
48115
|
-
throwError(state2, "merge keys exceeded maxTotalMergeKeys (" + state2.maxTotalMergeKeys + ")");
|
|
48116
|
-
}
|
|
48121
|
+
chargeMergeWork(state2);
|
|
48117
48122
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
48118
48123
|
setProperty2(destination, key, source[key]);
|
|
48119
48124
|
overridableKeys[key] = true;
|
|
@@ -48141,6 +48146,9 @@ function requireLoader() {
|
|
|
48141
48146
|
}
|
|
48142
48147
|
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
48143
48148
|
if (Array.isArray(valueNode)) {
|
|
48149
|
+
if (valueNode.length > 100) {
|
|
48150
|
+
throwError(state2, "abnormal merge sequence size");
|
|
48151
|
+
}
|
|
48144
48152
|
for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) {
|
|
48145
48153
|
mergeMappings(state2, _result, valueNode[index], overridableKeys);
|
|
48146
48154
|
}
|
|
@@ -49864,7 +49872,7 @@ function requireJsYaml() {
|
|
|
49864
49872
|
}
|
|
49865
49873
|
var jsYaml, loader, common, hasRequiredCommon, exception, hasRequiredException, snippet, hasRequiredSnippet, type, hasRequiredType, schema, hasRequiredSchema, str, hasRequiredStr, seq, hasRequiredSeq, map, hasRequiredMap, failsafe, hasRequiredFailsafe, _null, hasRequired_null, bool, hasRequiredBool, int, hasRequiredInt, float, hasRequiredFloat, json, hasRequiredJson, core, hasRequiredCore, timestamp, hasRequiredTimestamp, merge2, hasRequiredMerge, binary, hasRequiredBinary, omap, hasRequiredOmap, pairs, hasRequiredPairs, set, hasRequiredSet, _default, hasRequired_default, hasRequiredLoader, dumper, hasRequiredDumper, hasRequiredJsYaml, jsYamlExports, yaml, Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types2, safeLoad, safeLoadAll, safeDump;
|
|
49866
49874
|
var init_js_yaml = __esm({
|
|
49867
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
49875
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/dist/js-yaml.mjs"() {
|
|
49868
49876
|
init_import_meta_url();
|
|
49869
49877
|
jsYaml = {};
|
|
49870
49878
|
loader = {};
|
|
@@ -75131,7 +75139,11 @@ async function spawnProcess(command12, args = [], options = {}, spawnProcessOpti
|
|
|
75131
75139
|
});
|
|
75132
75140
|
child.stderr.pipe((0, import_split.default)()).on("data", (data2) => {
|
|
75133
75141
|
const output = `${command12}: ${data2}`;
|
|
75134
|
-
|
|
75142
|
+
if (spawnProcessOptions.showStderr) {
|
|
75143
|
+
logger.info(output);
|
|
75144
|
+
} else {
|
|
75145
|
+
logger.trace(output);
|
|
75146
|
+
}
|
|
75135
75147
|
stderr += `${output}
|
|
75136
75148
|
`;
|
|
75137
75149
|
});
|
|
@@ -82541,18 +82553,22 @@ var init_github = __esm({
|
|
|
82541
82553
|
const { repoName: repo, repoOwner: owner } = this.config;
|
|
82542
82554
|
const per_page = 100;
|
|
82543
82555
|
this.logger.debug(
|
|
82544
|
-
`Searching GitHub artifacts
|
|
82556
|
+
`Searching GitHub artifacts of ${owner}/${repo} for artifact named "${revision}"`
|
|
82545
82557
|
);
|
|
82546
82558
|
let checkNextPage = true;
|
|
82547
82559
|
for (let page = 0; checkNextPage; page++) {
|
|
82548
82560
|
const artifactResponse = await this.github.actions.listArtifactsForRepo({
|
|
82549
82561
|
owner,
|
|
82550
82562
|
repo,
|
|
82563
|
+
name: revision,
|
|
82551
82564
|
per_page,
|
|
82552
82565
|
page
|
|
82553
82566
|
});
|
|
82554
82567
|
const { artifacts, total_count } = artifactResponse.data;
|
|
82555
|
-
this.logger.trace(
|
|
82568
|
+
this.logger.trace(
|
|
82569
|
+
`Artifacts named "${revision}" on page ${page}:`,
|
|
82570
|
+
artifacts
|
|
82571
|
+
);
|
|
82556
82572
|
const foundArtifact = artifacts.find(
|
|
82557
82573
|
(artifact) => artifact.name === revision
|
|
82558
82574
|
);
|
|
@@ -82589,7 +82605,7 @@ var init_github = __esm({
|
|
|
82589
82605
|
});
|
|
82590
82606
|
for (let tries = 0; tries < MAX_TRIES; tries++) {
|
|
82591
82607
|
this.logger.info(
|
|
82592
|
-
`Fetching GitHub
|
|
82608
|
+
`Fetching GitHub artifact named "${revision}" from ${owner}/${repo} (attempt ${tries + 1} of ${MAX_TRIES})`
|
|
82593
82609
|
);
|
|
82594
82610
|
artifact = await this.searchForRevisionArtifact(
|
|
82595
82611
|
revision,
|
|
@@ -83501,47 +83517,47 @@ var require_retry = __commonJS({
|
|
|
83501
83517
|
}
|
|
83502
83518
|
});
|
|
83503
83519
|
|
|
83504
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83520
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/max.js
|
|
83505
83521
|
var max_default;
|
|
83506
83522
|
var init_max = __esm({
|
|
83507
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83523
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/max.js"() {
|
|
83508
83524
|
init_import_meta_url();
|
|
83509
83525
|
max_default = "ffffffff-ffff-ffff-ffff-ffffffffffff";
|
|
83510
83526
|
}
|
|
83511
83527
|
});
|
|
83512
83528
|
|
|
83513
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83529
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/nil.js
|
|
83514
83530
|
var nil_default;
|
|
83515
83531
|
var init_nil = __esm({
|
|
83516
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83532
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/nil.js"() {
|
|
83517
83533
|
init_import_meta_url();
|
|
83518
83534
|
nil_default = "00000000-0000-0000-0000-000000000000";
|
|
83519
83535
|
}
|
|
83520
83536
|
});
|
|
83521
83537
|
|
|
83522
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83538
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/regex.js
|
|
83523
83539
|
var regex_default;
|
|
83524
83540
|
var init_regex = __esm({
|
|
83525
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83541
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/regex.js"() {
|
|
83526
83542
|
init_import_meta_url();
|
|
83527
83543
|
regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
|
|
83528
83544
|
}
|
|
83529
83545
|
});
|
|
83530
83546
|
|
|
83531
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83547
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/validate.js
|
|
83532
83548
|
function validate(uuid) {
|
|
83533
83549
|
return typeof uuid === "string" && regex_default.test(uuid);
|
|
83534
83550
|
}
|
|
83535
83551
|
var validate_default;
|
|
83536
83552
|
var init_validate = __esm({
|
|
83537
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83553
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/validate.js"() {
|
|
83538
83554
|
init_import_meta_url();
|
|
83539
83555
|
init_regex();
|
|
83540
83556
|
validate_default = validate;
|
|
83541
83557
|
}
|
|
83542
83558
|
});
|
|
83543
83559
|
|
|
83544
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83560
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/parse.js
|
|
83545
83561
|
function parse2(uuid) {
|
|
83546
83562
|
if (!validate_default(uuid)) {
|
|
83547
83563
|
throw TypeError("Invalid UUID");
|
|
@@ -83551,14 +83567,14 @@ function parse2(uuid) {
|
|
|
83551
83567
|
}
|
|
83552
83568
|
var parse_default;
|
|
83553
83569
|
var init_parse = __esm({
|
|
83554
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83570
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/parse.js"() {
|
|
83555
83571
|
init_import_meta_url();
|
|
83556
83572
|
init_validate();
|
|
83557
83573
|
parse_default = parse2;
|
|
83558
83574
|
}
|
|
83559
83575
|
});
|
|
83560
83576
|
|
|
83561
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83577
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/stringify.js
|
|
83562
83578
|
function unsafeStringify(arr, offset = 0) {
|
|
83563
83579
|
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
83564
83580
|
}
|
|
@@ -83571,7 +83587,7 @@ function stringify(arr, offset = 0) {
|
|
|
83571
83587
|
}
|
|
83572
83588
|
var byteToHex, stringify_default;
|
|
83573
83589
|
var init_stringify = __esm({
|
|
83574
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83590
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/stringify.js"() {
|
|
83575
83591
|
init_import_meta_url();
|
|
83576
83592
|
init_validate();
|
|
83577
83593
|
byteToHex = [];
|
|
@@ -83582,19 +83598,19 @@ var init_stringify = __esm({
|
|
|
83582
83598
|
}
|
|
83583
83599
|
});
|
|
83584
83600
|
|
|
83585
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83601
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/rng.js
|
|
83586
83602
|
function rng() {
|
|
83587
83603
|
return crypto.getRandomValues(rnds8);
|
|
83588
83604
|
}
|
|
83589
83605
|
var rnds8;
|
|
83590
83606
|
var init_rng = __esm({
|
|
83591
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83607
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/rng.js"() {
|
|
83592
83608
|
init_import_meta_url();
|
|
83593
83609
|
rnds8 = new Uint8Array(16);
|
|
83594
83610
|
}
|
|
83595
83611
|
});
|
|
83596
83612
|
|
|
83597
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83613
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v1.js
|
|
83598
83614
|
function v1(options, buf, offset) {
|
|
83599
83615
|
let bytes;
|
|
83600
83616
|
const isV6 = options?._v6 ?? false;
|
|
@@ -83651,14 +83667,18 @@ function v1Bytes(rnds, msecs, nsecs, clockseq, node2, buf, offset = 0) {
|
|
|
83651
83667
|
msecs ??= Date.now();
|
|
83652
83668
|
nsecs ??= 0;
|
|
83653
83669
|
clockseq ??= (rnds[8] << 8 | rnds[9]) & 16383;
|
|
83654
|
-
node2
|
|
83670
|
+
if (node2 == null) {
|
|
83671
|
+
node2 = rnds.slice(10, 16);
|
|
83672
|
+
node2[0] |= 1;
|
|
83673
|
+
}
|
|
83655
83674
|
msecs += 122192928e5;
|
|
83656
|
-
const
|
|
83675
|
+
const t5 = (msecs & 268435455) * 1e4 + nsecs;
|
|
83676
|
+
const tl = t5 >>> 0;
|
|
83657
83677
|
buf[offset++] = tl >>> 24 & 255;
|
|
83658
83678
|
buf[offset++] = tl >>> 16 & 255;
|
|
83659
83679
|
buf[offset++] = tl >>> 8 & 255;
|
|
83660
83680
|
buf[offset++] = tl & 255;
|
|
83661
|
-
const tmh = msecs /
|
|
83681
|
+
const tmh = (msecs / 268435456 | 0) * 625 + (t5 / 4294967296 | 0) & 268435455;
|
|
83662
83682
|
buf[offset++] = tmh >>> 8 & 255;
|
|
83663
83683
|
buf[offset++] = tmh & 255;
|
|
83664
83684
|
buf[offset++] = tmh >>> 24 & 15 | 16;
|
|
@@ -83672,7 +83692,7 @@ function v1Bytes(rnds, msecs, nsecs, clockseq, node2, buf, offset = 0) {
|
|
|
83672
83692
|
}
|
|
83673
83693
|
var _state, v1_default;
|
|
83674
83694
|
var init_v1 = __esm({
|
|
83675
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83695
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v1.js"() {
|
|
83676
83696
|
init_import_meta_url();
|
|
83677
83697
|
init_rng();
|
|
83678
83698
|
init_stringify();
|
|
@@ -83681,7 +83701,7 @@ var init_v1 = __esm({
|
|
|
83681
83701
|
}
|
|
83682
83702
|
});
|
|
83683
83703
|
|
|
83684
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83704
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v1ToV6.js
|
|
83685
83705
|
function v1ToV6(uuid) {
|
|
83686
83706
|
const v1Bytes2 = typeof uuid === "string" ? parse_default(uuid) : uuid;
|
|
83687
83707
|
const v6Bytes = _v1ToV6(v1Bytes2);
|
|
@@ -83691,14 +83711,14 @@ function _v1ToV6(v1Bytes2) {
|
|
|
83691
83711
|
return Uint8Array.of((v1Bytes2[6] & 15) << 4 | v1Bytes2[7] >> 4 & 15, (v1Bytes2[7] & 15) << 4 | (v1Bytes2[4] & 240) >> 4, (v1Bytes2[4] & 15) << 4 | (v1Bytes2[5] & 240) >> 4, (v1Bytes2[5] & 15) << 4 | (v1Bytes2[0] & 240) >> 4, (v1Bytes2[0] & 15) << 4 | (v1Bytes2[1] & 240) >> 4, (v1Bytes2[1] & 15) << 4 | (v1Bytes2[2] & 240) >> 4, 96 | v1Bytes2[2] & 15, v1Bytes2[3], v1Bytes2[8], v1Bytes2[9], v1Bytes2[10], v1Bytes2[11], v1Bytes2[12], v1Bytes2[13], v1Bytes2[14], v1Bytes2[15]);
|
|
83692
83712
|
}
|
|
83693
83713
|
var init_v1ToV6 = __esm({
|
|
83694
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83714
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v1ToV6.js"() {
|
|
83695
83715
|
init_import_meta_url();
|
|
83696
83716
|
init_parse();
|
|
83697
83717
|
init_stringify();
|
|
83698
83718
|
}
|
|
83699
83719
|
});
|
|
83700
83720
|
|
|
83701
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83721
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/md5.js
|
|
83702
83722
|
function md5(bytes) {
|
|
83703
83723
|
if (Array.isArray(bytes)) {
|
|
83704
83724
|
bytes = Buffer.from(bytes);
|
|
@@ -83709,14 +83729,14 @@ function md5(bytes) {
|
|
|
83709
83729
|
}
|
|
83710
83730
|
var import_node_crypto2, md5_default;
|
|
83711
83731
|
var init_md5 = __esm({
|
|
83712
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83732
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/md5.js"() {
|
|
83713
83733
|
init_import_meta_url();
|
|
83714
83734
|
import_node_crypto2 = require("node:crypto");
|
|
83715
83735
|
md5_default = md5;
|
|
83716
83736
|
}
|
|
83717
83737
|
});
|
|
83718
83738
|
|
|
83719
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83739
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v35.js
|
|
83720
83740
|
function stringToBytes(str2) {
|
|
83721
83741
|
str2 = unescape(encodeURIComponent(str2));
|
|
83722
83742
|
const bytes = new Uint8Array(str2.length);
|
|
@@ -83754,7 +83774,7 @@ function v35(version2, hash, value, namespace, buf, offset) {
|
|
|
83754
83774
|
}
|
|
83755
83775
|
var DNS, URL2;
|
|
83756
83776
|
var init_v35 = __esm({
|
|
83757
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83777
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v35.js"() {
|
|
83758
83778
|
init_import_meta_url();
|
|
83759
83779
|
init_parse();
|
|
83760
83780
|
init_stringify();
|
|
@@ -83763,13 +83783,13 @@ var init_v35 = __esm({
|
|
|
83763
83783
|
}
|
|
83764
83784
|
});
|
|
83765
83785
|
|
|
83766
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83786
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v3.js
|
|
83767
83787
|
function v3(value, namespace, buf, offset) {
|
|
83768
83788
|
return v35(48, md5_default, value, namespace, buf, offset);
|
|
83769
83789
|
}
|
|
83770
83790
|
var v3_default;
|
|
83771
83791
|
var init_v3 = __esm({
|
|
83772
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83792
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v3.js"() {
|
|
83773
83793
|
init_import_meta_url();
|
|
83774
83794
|
init_md5();
|
|
83775
83795
|
init_v35();
|
|
@@ -83779,7 +83799,7 @@ var init_v3 = __esm({
|
|
|
83779
83799
|
}
|
|
83780
83800
|
});
|
|
83781
83801
|
|
|
83782
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83802
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v4.js
|
|
83783
83803
|
function v4(options, buf, offset) {
|
|
83784
83804
|
if (!buf && !options && crypto.randomUUID) {
|
|
83785
83805
|
return crypto.randomUUID();
|
|
@@ -83808,7 +83828,7 @@ function _v4(options, buf, offset) {
|
|
|
83808
83828
|
}
|
|
83809
83829
|
var v4_default;
|
|
83810
83830
|
var init_v4 = __esm({
|
|
83811
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83831
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v4.js"() {
|
|
83812
83832
|
init_import_meta_url();
|
|
83813
83833
|
init_rng();
|
|
83814
83834
|
init_stringify();
|
|
@@ -83816,7 +83836,7 @@ var init_v4 = __esm({
|
|
|
83816
83836
|
}
|
|
83817
83837
|
});
|
|
83818
83838
|
|
|
83819
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83839
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/sha1.js
|
|
83820
83840
|
function sha1(bytes) {
|
|
83821
83841
|
if (Array.isArray(bytes)) {
|
|
83822
83842
|
bytes = Buffer.from(bytes);
|
|
@@ -83827,20 +83847,20 @@ function sha1(bytes) {
|
|
|
83827
83847
|
}
|
|
83828
83848
|
var import_node_crypto3, sha1_default;
|
|
83829
83849
|
var init_sha1 = __esm({
|
|
83830
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83850
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/sha1.js"() {
|
|
83831
83851
|
init_import_meta_url();
|
|
83832
83852
|
import_node_crypto3 = require("node:crypto");
|
|
83833
83853
|
sha1_default = sha1;
|
|
83834
83854
|
}
|
|
83835
83855
|
});
|
|
83836
83856
|
|
|
83837
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83857
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v5.js
|
|
83838
83858
|
function v5(value, namespace, buf, offset) {
|
|
83839
83859
|
return v35(80, sha1_default, value, namespace, buf, offset);
|
|
83840
83860
|
}
|
|
83841
83861
|
var v5_default;
|
|
83842
83862
|
var init_v5 = __esm({
|
|
83843
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83863
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v5.js"() {
|
|
83844
83864
|
init_import_meta_url();
|
|
83845
83865
|
init_sha1();
|
|
83846
83866
|
init_v35();
|
|
@@ -83850,7 +83870,7 @@ var init_v5 = __esm({
|
|
|
83850
83870
|
}
|
|
83851
83871
|
});
|
|
83852
83872
|
|
|
83853
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83873
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v6.js
|
|
83854
83874
|
function v6(options, buf, offset) {
|
|
83855
83875
|
options ??= {};
|
|
83856
83876
|
offset ??= 0;
|
|
@@ -83869,7 +83889,7 @@ function v6(options, buf, offset) {
|
|
|
83869
83889
|
}
|
|
83870
83890
|
var v6_default;
|
|
83871
83891
|
var init_v6 = __esm({
|
|
83872
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83892
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v6.js"() {
|
|
83873
83893
|
init_import_meta_url();
|
|
83874
83894
|
init_stringify();
|
|
83875
83895
|
init_v1();
|
|
@@ -83878,7 +83898,7 @@ var init_v6 = __esm({
|
|
|
83878
83898
|
}
|
|
83879
83899
|
});
|
|
83880
83900
|
|
|
83881
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83901
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v6ToV1.js
|
|
83882
83902
|
function v6ToV1(uuid) {
|
|
83883
83903
|
const v6Bytes = typeof uuid === "string" ? parse_default(uuid) : uuid;
|
|
83884
83904
|
const v1Bytes2 = _v6ToV1(v6Bytes);
|
|
@@ -83888,14 +83908,14 @@ function _v6ToV1(v6Bytes) {
|
|
|
83888
83908
|
return Uint8Array.of((v6Bytes[3] & 15) << 4 | v6Bytes[4] >> 4 & 15, (v6Bytes[4] & 15) << 4 | (v6Bytes[5] & 240) >> 4, (v6Bytes[5] & 15) << 4 | v6Bytes[6] & 15, v6Bytes[7], (v6Bytes[1] & 15) << 4 | (v6Bytes[2] & 240) >> 4, (v6Bytes[2] & 15) << 4 | (v6Bytes[3] & 240) >> 4, 16 | (v6Bytes[0] & 240) >> 4, (v6Bytes[0] & 15) << 4 | (v6Bytes[1] & 240) >> 4, v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]);
|
|
83889
83909
|
}
|
|
83890
83910
|
var init_v6ToV1 = __esm({
|
|
83891
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83911
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v6ToV1.js"() {
|
|
83892
83912
|
init_import_meta_url();
|
|
83893
83913
|
init_parse();
|
|
83894
83914
|
init_stringify();
|
|
83895
83915
|
}
|
|
83896
83916
|
});
|
|
83897
83917
|
|
|
83898
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83918
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v7.js
|
|
83899
83919
|
function v7(options, buf, offset) {
|
|
83900
83920
|
let bytes;
|
|
83901
83921
|
if (options) {
|
|
@@ -83912,7 +83932,7 @@ function updateV7State(state2, now, rnds) {
|
|
|
83912
83932
|
state2.msecs ??= -Infinity;
|
|
83913
83933
|
state2.seq ??= 0;
|
|
83914
83934
|
if (now > state2.msecs) {
|
|
83915
|
-
state2.seq = rnds
|
|
83935
|
+
state2.seq = v7Sequence(rnds);
|
|
83916
83936
|
state2.msecs = now;
|
|
83917
83937
|
} else {
|
|
83918
83938
|
state2.seq = state2.seq + 1 | 0;
|
|
@@ -83935,7 +83955,7 @@ function v7Bytes(rnds, msecs, seq2, buf, offset = 0) {
|
|
|
83935
83955
|
}
|
|
83936
83956
|
}
|
|
83937
83957
|
msecs ??= Date.now();
|
|
83938
|
-
seq2 ??= rnds
|
|
83958
|
+
seq2 ??= v7Sequence(rnds);
|
|
83939
83959
|
buf[offset++] = msecs / 1099511627776 & 255;
|
|
83940
83960
|
buf[offset++] = msecs / 4294967296 & 255;
|
|
83941
83961
|
buf[offset++] = msecs / 16777216 & 255;
|
|
@@ -83954,9 +83974,12 @@ function v7Bytes(rnds, msecs, seq2, buf, offset = 0) {
|
|
|
83954
83974
|
buf[offset++] = rnds[15];
|
|
83955
83975
|
return buf;
|
|
83956
83976
|
}
|
|
83977
|
+
function v7Sequence(rnds) {
|
|
83978
|
+
return (rnds[6] & 127) << 24 | rnds[7] << 16 | rnds[8] << 8 | rnds[9];
|
|
83979
|
+
}
|
|
83957
83980
|
var _state2, v7_default;
|
|
83958
83981
|
var init_v7 = __esm({
|
|
83959
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
83982
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v7.js"() {
|
|
83960
83983
|
init_import_meta_url();
|
|
83961
83984
|
init_rng();
|
|
83962
83985
|
init_stringify();
|
|
@@ -83965,7 +83988,7 @@ var init_v7 = __esm({
|
|
|
83965
83988
|
}
|
|
83966
83989
|
});
|
|
83967
83990
|
|
|
83968
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
83991
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/version.js
|
|
83969
83992
|
function version(uuid) {
|
|
83970
83993
|
if (!validate_default(uuid)) {
|
|
83971
83994
|
throw TypeError("Invalid UUID");
|
|
@@ -83974,14 +83997,14 @@ function version(uuid) {
|
|
|
83974
83997
|
}
|
|
83975
83998
|
var version_default2;
|
|
83976
83999
|
var init_version8 = __esm({
|
|
83977
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
84000
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/version.js"() {
|
|
83978
84001
|
init_import_meta_url();
|
|
83979
84002
|
init_validate();
|
|
83980
84003
|
version_default2 = version;
|
|
83981
84004
|
}
|
|
83982
84005
|
});
|
|
83983
84006
|
|
|
83984
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
84007
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/index.js
|
|
83985
84008
|
var dist_node_exports = {};
|
|
83986
84009
|
__export(dist_node_exports, {
|
|
83987
84010
|
MAX: () => max_default,
|
|
@@ -84000,7 +84023,7 @@ __export(dist_node_exports, {
|
|
|
84000
84023
|
version: () => version_default2
|
|
84001
84024
|
});
|
|
84002
84025
|
var init_dist_node = __esm({
|
|
84003
|
-
"node_modules/.pnpm/uuid@14.0.
|
|
84026
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/index.js"() {
|
|
84004
84027
|
init_import_meta_url();
|
|
84005
84028
|
init_max();
|
|
84006
84029
|
init_nil();
|
|
@@ -128045,7 +128068,10 @@ var init_npm = __esm({
|
|
|
128045
128068
|
if (options.otp) {
|
|
128046
128069
|
spawnOptions.env.NPM_CONFIG_OTP = options.otp;
|
|
128047
128070
|
}
|
|
128048
|
-
return spawnProcess(bin, args, spawnOptions, {
|
|
128071
|
+
return spawnProcess(bin, args, spawnOptions, {
|
|
128072
|
+
showStdout: true,
|
|
128073
|
+
showStderr: true
|
|
128074
|
+
});
|
|
128049
128075
|
}
|
|
128050
128076
|
return withTempFile((filePath) => {
|
|
128051
128077
|
const spawnOptions = {};
|
|
@@ -128060,7 +128086,8 @@ var init_npm = __esm({
|
|
|
128060
128086
|
`//registry.npmjs.org/:_authToken=\${${NPM_TOKEN_ENV_VAR}}`
|
|
128061
128087
|
);
|
|
128062
128088
|
return spawnProcess(bin, args, spawnOptions, {
|
|
128063
|
-
showStdout: true
|
|
128089
|
+
showStdout: true,
|
|
128090
|
+
showStderr: true
|
|
128064
128091
|
});
|
|
128065
128092
|
});
|
|
128066
128093
|
}
|
|
@@ -167384,9 +167411,9 @@ var require_commonjs3 = __commonJS({
|
|
|
167384
167411
|
}
|
|
167385
167412
|
});
|
|
167386
167413
|
|
|
167387
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
167414
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/common.js
|
|
167388
167415
|
var require_common3 = __commonJS({
|
|
167389
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
167416
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/common.js"(exports2, module2) {
|
|
167390
167417
|
"use strict";
|
|
167391
167418
|
init_import_meta_url();
|
|
167392
167419
|
function isNothing(subject) {
|
|
@@ -167429,9 +167456,9 @@ var require_common3 = __commonJS({
|
|
|
167429
167456
|
}
|
|
167430
167457
|
});
|
|
167431
167458
|
|
|
167432
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
167459
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/exception.js
|
|
167433
167460
|
var require_exception = __commonJS({
|
|
167434
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
167461
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/exception.js"(exports2, module2) {
|
|
167435
167462
|
"use strict";
|
|
167436
167463
|
init_import_meta_url();
|
|
167437
167464
|
function formatError(exception2, compact) {
|
|
@@ -167468,9 +167495,9 @@ var require_exception = __commonJS({
|
|
|
167468
167495
|
}
|
|
167469
167496
|
});
|
|
167470
167497
|
|
|
167471
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
167498
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/snippet.js
|
|
167472
167499
|
var require_snippet = __commonJS({
|
|
167473
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
167500
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/snippet.js"(exports2, module2) {
|
|
167474
167501
|
"use strict";
|
|
167475
167502
|
init_import_meta_url();
|
|
167476
167503
|
var common2 = require_common3();
|
|
@@ -167549,9 +167576,9 @@ var require_snippet = __commonJS({
|
|
|
167549
167576
|
}
|
|
167550
167577
|
});
|
|
167551
167578
|
|
|
167552
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
167579
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type.js
|
|
167553
167580
|
var require_type = __commonJS({
|
|
167554
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
167581
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type.js"(exports2, module2) {
|
|
167555
167582
|
"use strict";
|
|
167556
167583
|
init_import_meta_url();
|
|
167557
167584
|
var YAMLException2 = require_exception();
|
|
@@ -167614,9 +167641,9 @@ var require_type = __commonJS({
|
|
|
167614
167641
|
}
|
|
167615
167642
|
});
|
|
167616
167643
|
|
|
167617
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
167644
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/schema.js
|
|
167618
167645
|
var require_schema = __commonJS({
|
|
167619
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
167646
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/schema.js"(exports2, module2) {
|
|
167620
167647
|
"use strict";
|
|
167621
167648
|
init_import_meta_url();
|
|
167622
167649
|
var YAMLException2 = require_exception();
|
|
@@ -167704,9 +167731,9 @@ var require_schema = __commonJS({
|
|
|
167704
167731
|
}
|
|
167705
167732
|
});
|
|
167706
167733
|
|
|
167707
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
167734
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/str.js
|
|
167708
167735
|
var require_str = __commonJS({
|
|
167709
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
167736
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/str.js"(exports2, module2) {
|
|
167710
167737
|
"use strict";
|
|
167711
167738
|
init_import_meta_url();
|
|
167712
167739
|
var Type2 = require_type();
|
|
@@ -167719,9 +167746,9 @@ var require_str = __commonJS({
|
|
|
167719
167746
|
}
|
|
167720
167747
|
});
|
|
167721
167748
|
|
|
167722
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
167749
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/seq.js
|
|
167723
167750
|
var require_seq = __commonJS({
|
|
167724
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
167751
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/seq.js"(exports2, module2) {
|
|
167725
167752
|
"use strict";
|
|
167726
167753
|
init_import_meta_url();
|
|
167727
167754
|
var Type2 = require_type();
|
|
@@ -167734,9 +167761,9 @@ var require_seq = __commonJS({
|
|
|
167734
167761
|
}
|
|
167735
167762
|
});
|
|
167736
167763
|
|
|
167737
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
167764
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/map.js
|
|
167738
167765
|
var require_map = __commonJS({
|
|
167739
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
167766
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/map.js"(exports2, module2) {
|
|
167740
167767
|
"use strict";
|
|
167741
167768
|
init_import_meta_url();
|
|
167742
167769
|
var Type2 = require_type();
|
|
@@ -167749,9 +167776,9 @@ var require_map = __commonJS({
|
|
|
167749
167776
|
}
|
|
167750
167777
|
});
|
|
167751
167778
|
|
|
167752
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
167779
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/schema/failsafe.js
|
|
167753
167780
|
var require_failsafe = __commonJS({
|
|
167754
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
167781
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/schema/failsafe.js"(exports2, module2) {
|
|
167755
167782
|
"use strict";
|
|
167756
167783
|
init_import_meta_url();
|
|
167757
167784
|
var Schema3 = require_schema();
|
|
@@ -167765,9 +167792,9 @@ var require_failsafe = __commonJS({
|
|
|
167765
167792
|
}
|
|
167766
167793
|
});
|
|
167767
167794
|
|
|
167768
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
167795
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/null.js
|
|
167769
167796
|
var require_null2 = __commonJS({
|
|
167770
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
167797
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/null.js"(exports2, module2) {
|
|
167771
167798
|
"use strict";
|
|
167772
167799
|
init_import_meta_url();
|
|
167773
167800
|
var Type2 = require_type();
|
|
@@ -167809,9 +167836,9 @@ var require_null2 = __commonJS({
|
|
|
167809
167836
|
}
|
|
167810
167837
|
});
|
|
167811
167838
|
|
|
167812
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
167839
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/bool.js
|
|
167813
167840
|
var require_bool = __commonJS({
|
|
167814
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
167841
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/bool.js"(exports2, module2) {
|
|
167815
167842
|
"use strict";
|
|
167816
167843
|
init_import_meta_url();
|
|
167817
167844
|
var Type2 = require_type();
|
|
@@ -167847,9 +167874,9 @@ var require_bool = __commonJS({
|
|
|
167847
167874
|
}
|
|
167848
167875
|
});
|
|
167849
167876
|
|
|
167850
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
167877
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/int.js
|
|
167851
167878
|
var require_int = __commonJS({
|
|
167852
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
167879
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/int.js"(exports2, module2) {
|
|
167853
167880
|
"use strict";
|
|
167854
167881
|
init_import_meta_url();
|
|
167855
167882
|
var common2 = require_common3();
|
|
@@ -167964,9 +167991,9 @@ var require_int = __commonJS({
|
|
|
167964
167991
|
}
|
|
167965
167992
|
});
|
|
167966
167993
|
|
|
167967
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
167994
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/float.js
|
|
167968
167995
|
var require_float = __commonJS({
|
|
167969
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
167996
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/float.js"(exports2, module2) {
|
|
167970
167997
|
"use strict";
|
|
167971
167998
|
init_import_meta_url();
|
|
167972
167999
|
var common2 = require_common3();
|
|
@@ -168050,9 +168077,9 @@ var require_float = __commonJS({
|
|
|
168050
168077
|
}
|
|
168051
168078
|
});
|
|
168052
168079
|
|
|
168053
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
168080
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/schema/json.js
|
|
168054
168081
|
var require_json2 = __commonJS({
|
|
168055
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
168082
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/schema/json.js"(exports2, module2) {
|
|
168056
168083
|
"use strict";
|
|
168057
168084
|
init_import_meta_url();
|
|
168058
168085
|
module2.exports = require_failsafe().extend({
|
|
@@ -168066,18 +168093,18 @@ var require_json2 = __commonJS({
|
|
|
168066
168093
|
}
|
|
168067
168094
|
});
|
|
168068
168095
|
|
|
168069
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
168096
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/schema/core.js
|
|
168070
168097
|
var require_core = __commonJS({
|
|
168071
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
168098
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/schema/core.js"(exports2, module2) {
|
|
168072
168099
|
"use strict";
|
|
168073
168100
|
init_import_meta_url();
|
|
168074
168101
|
module2.exports = require_json2();
|
|
168075
168102
|
}
|
|
168076
168103
|
});
|
|
168077
168104
|
|
|
168078
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
168105
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/timestamp.js
|
|
168079
168106
|
var require_timestamp = __commonJS({
|
|
168080
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
168107
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/timestamp.js"(exports2, module2) {
|
|
168081
168108
|
"use strict";
|
|
168082
168109
|
init_import_meta_url();
|
|
168083
168110
|
var Type2 = require_type();
|
|
@@ -168138,9 +168165,9 @@ var require_timestamp = __commonJS({
|
|
|
168138
168165
|
}
|
|
168139
168166
|
});
|
|
168140
168167
|
|
|
168141
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
168168
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/merge.js
|
|
168142
168169
|
var require_merge2 = __commonJS({
|
|
168143
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
168170
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/merge.js"(exports2, module2) {
|
|
168144
168171
|
"use strict";
|
|
168145
168172
|
init_import_meta_url();
|
|
168146
168173
|
var Type2 = require_type();
|
|
@@ -168154,9 +168181,9 @@ var require_merge2 = __commonJS({
|
|
|
168154
168181
|
}
|
|
168155
168182
|
});
|
|
168156
168183
|
|
|
168157
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
168184
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/binary.js
|
|
168158
168185
|
var require_binary = __commonJS({
|
|
168159
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
168186
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/binary.js"(exports2, module2) {
|
|
168160
168187
|
"use strict";
|
|
168161
168188
|
init_import_meta_url();
|
|
168162
168189
|
var Type2 = require_type();
|
|
@@ -168247,9 +168274,9 @@ var require_binary = __commonJS({
|
|
|
168247
168274
|
}
|
|
168248
168275
|
});
|
|
168249
168276
|
|
|
168250
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
168277
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/omap.js
|
|
168251
168278
|
var require_omap = __commonJS({
|
|
168252
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
168279
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/omap.js"(exports2, module2) {
|
|
168253
168280
|
"use strict";
|
|
168254
168281
|
init_import_meta_url();
|
|
168255
168282
|
var Type2 = require_type();
|
|
@@ -168287,9 +168314,9 @@ var require_omap = __commonJS({
|
|
|
168287
168314
|
}
|
|
168288
168315
|
});
|
|
168289
168316
|
|
|
168290
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
168317
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/pairs.js
|
|
168291
168318
|
var require_pairs = __commonJS({
|
|
168292
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
168319
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/pairs.js"(exports2, module2) {
|
|
168293
168320
|
"use strict";
|
|
168294
168321
|
init_import_meta_url();
|
|
168295
168322
|
var Type2 = require_type();
|
|
@@ -168326,9 +168353,9 @@ var require_pairs = __commonJS({
|
|
|
168326
168353
|
}
|
|
168327
168354
|
});
|
|
168328
168355
|
|
|
168329
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
168356
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/set.js
|
|
168330
168357
|
var require_set = __commonJS({
|
|
168331
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
168358
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/type/set.js"(exports2, module2) {
|
|
168332
168359
|
"use strict";
|
|
168333
168360
|
init_import_meta_url();
|
|
168334
168361
|
var Type2 = require_type();
|
|
@@ -168354,9 +168381,9 @@ var require_set = __commonJS({
|
|
|
168354
168381
|
}
|
|
168355
168382
|
});
|
|
168356
168383
|
|
|
168357
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
168384
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/schema/default.js
|
|
168358
168385
|
var require_default2 = __commonJS({
|
|
168359
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
168386
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/schema/default.js"(exports2, module2) {
|
|
168360
168387
|
"use strict";
|
|
168361
168388
|
init_import_meta_url();
|
|
168362
168389
|
module2.exports = require_core().extend({
|
|
@@ -168374,9 +168401,9 @@ var require_default2 = __commonJS({
|
|
|
168374
168401
|
}
|
|
168375
168402
|
});
|
|
168376
168403
|
|
|
168377
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
168404
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/loader.js
|
|
168378
168405
|
var require_loader = __commonJS({
|
|
168379
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
168406
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/loader.js"(exports2, module2) {
|
|
168380
168407
|
"use strict";
|
|
168381
168408
|
init_import_meta_url();
|
|
168382
168409
|
var common2 = require_common3();
|
|
@@ -168679,16 +168706,21 @@ var require_loader = __commonJS({
|
|
|
168679
168706
|
state2.result += _result;
|
|
168680
168707
|
}
|
|
168681
168708
|
}
|
|
168709
|
+
function chargeMergeWork(state2) {
|
|
168710
|
+
state2.totalMergeKeys++;
|
|
168711
|
+
if (state2.maxTotalMergeKeys !== -1 && state2.totalMergeKeys > state2.maxTotalMergeKeys) {
|
|
168712
|
+
throwError(state2, "merge keys exceeded maxTotalMergeKeys (" + state2.maxTotalMergeKeys + ")");
|
|
168713
|
+
}
|
|
168714
|
+
}
|
|
168682
168715
|
function mergeMappings(state2, destination, source, overridableKeys) {
|
|
168683
168716
|
if (!common2.isObject(source)) {
|
|
168684
168717
|
throwError(state2, "cannot merge mappings; the provided source object is unacceptable");
|
|
168685
168718
|
}
|
|
168719
|
+
chargeMergeWork(state2);
|
|
168686
168720
|
const sourceKeys = Object.keys(source);
|
|
168687
168721
|
for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
168688
168722
|
const key = sourceKeys[index];
|
|
168689
|
-
|
|
168690
|
-
throwError(state2, "merge keys exceeded maxTotalMergeKeys (" + state2.maxTotalMergeKeys + ")");
|
|
168691
|
-
}
|
|
168723
|
+
chargeMergeWork(state2);
|
|
168692
168724
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
168693
168725
|
setProperty2(destination, key, source[key]);
|
|
168694
168726
|
overridableKeys[key] = true;
|
|
@@ -168716,6 +168748,9 @@ var require_loader = __commonJS({
|
|
|
168716
168748
|
}
|
|
168717
168749
|
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
168718
168750
|
if (Array.isArray(valueNode)) {
|
|
168751
|
+
if (valueNode.length > 100) {
|
|
168752
|
+
throwError(state2, "abnormal merge sequence size");
|
|
168753
|
+
}
|
|
168719
168754
|
for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) {
|
|
168720
168755
|
mergeMappings(state2, _result, valueNode[index], overridableKeys);
|
|
168721
168756
|
}
|
|
@@ -169747,9 +169782,9 @@ var require_loader = __commonJS({
|
|
|
169747
169782
|
}
|
|
169748
169783
|
});
|
|
169749
169784
|
|
|
169750
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
169785
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/dumper.js
|
|
169751
169786
|
var require_dumper = __commonJS({
|
|
169752
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
169787
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/lib/dumper.js"(exports2, module2) {
|
|
169753
169788
|
"use strict";
|
|
169754
169789
|
init_import_meta_url();
|
|
169755
169790
|
var common2 = require_common3();
|
|
@@ -170401,9 +170436,9 @@ var require_dumper = __commonJS({
|
|
|
170401
170436
|
}
|
|
170402
170437
|
});
|
|
170403
170438
|
|
|
170404
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
170439
|
+
// node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/index.js
|
|
170405
170440
|
var require_js_yaml = __commonJS({
|
|
170406
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
170441
|
+
"node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/index.js"(exports2, module2) {
|
|
170407
170442
|
"use strict";
|
|
170408
170443
|
init_import_meta_url();
|
|
170409
170444
|
var loader2 = require_loader();
|
|
@@ -170444,9 +170479,9 @@ var require_js_yaml = __commonJS({
|
|
|
170444
170479
|
}
|
|
170445
170480
|
});
|
|
170446
170481
|
|
|
170447
|
-
// node_modules/.pnpm/smol-toml@1.
|
|
170482
|
+
// node_modules/.pnpm/smol-toml@1.8.0/node_modules/smol-toml/dist/index.cjs
|
|
170448
170483
|
var require_dist10 = __commonJS({
|
|
170449
|
-
"node_modules/.pnpm/smol-toml@1.
|
|
170484
|
+
"node_modules/.pnpm/smol-toml@1.8.0/node_modules/smol-toml/dist/index.cjs"(exports2) {
|
|
170450
170485
|
"use strict";
|
|
170451
170486
|
init_import_meta_url();
|
|
170452
170487
|
Object.defineProperties(exports2, {
|
|
@@ -170571,288 +170606,285 @@ ${codeblock}`, options);
|
|
|
170571
170606
|
this.codeblock = codeblock;
|
|
170572
170607
|
}
|
|
170573
170608
|
};
|
|
170609
|
+
function indexOfNewline(str2, start = 0) {
|
|
170610
|
+
let idx = str2.indexOf("\n", start);
|
|
170611
|
+
if (str2.charCodeAt(idx - 1) === 13) idx--;
|
|
170612
|
+
return idx;
|
|
170613
|
+
}
|
|
170614
|
+
function skipComment(ctx) {
|
|
170615
|
+
for (; ctx.p < ctx.s.length; ctx.p++) {
|
|
170616
|
+
let c6 = ctx.s.charCodeAt(ctx.p);
|
|
170617
|
+
if (c6 === 10) break;
|
|
170618
|
+
if (c6 === 13 && ctx.s.charCodeAt(ctx.p + 1) === 10) {
|
|
170619
|
+
ctx.p++;
|
|
170620
|
+
break;
|
|
170621
|
+
}
|
|
170622
|
+
if (c6 < 32 && c6 !== 9 || c6 === 127) throw new TomlError("control characters are not allowed in comments", {
|
|
170623
|
+
toml: ctx.s,
|
|
170624
|
+
ptr: ctx.p
|
|
170625
|
+
});
|
|
170626
|
+
}
|
|
170627
|
+
}
|
|
170628
|
+
function skipVoid(ctx, banNewLines, banComments) {
|
|
170629
|
+
let c6;
|
|
170630
|
+
while (1) {
|
|
170631
|
+
while ((c6 = ctx.s.charCodeAt(ctx.p)) === 32 || c6 === 9 || !banNewLines && (c6 === 10 || c6 === 13 && ctx.s.charCodeAt(ctx.p + 1) === 10)) ctx.p++;
|
|
170632
|
+
if (banComments || c6 !== 35) break;
|
|
170633
|
+
skipComment(ctx);
|
|
170634
|
+
}
|
|
170635
|
+
}
|
|
170636
|
+
function skipUntil(ctx, sep4, end) {
|
|
170637
|
+
let ptr = ctx.p;
|
|
170638
|
+
if (!end) {
|
|
170639
|
+
ptr = indexOfNewline(ctx.s, ptr);
|
|
170640
|
+
ctx.p = ptr < 0 ? ctx.s.length : ptr;
|
|
170641
|
+
return;
|
|
170642
|
+
}
|
|
170643
|
+
for (; ctx.p < ctx.s.length; ctx.p++) {
|
|
170644
|
+
let c6 = ctx.s.charCodeAt(ctx.p);
|
|
170645
|
+
if (c6 === 35) skipComment(ctx);
|
|
170646
|
+
else if (c6 === end || c6 === sep4) return;
|
|
170647
|
+
}
|
|
170648
|
+
throw new TomlError("cannot find end of structure", {
|
|
170649
|
+
toml: ctx.s,
|
|
170650
|
+
ptr
|
|
170651
|
+
});
|
|
170652
|
+
}
|
|
170574
170653
|
var INT_REGEX = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/;
|
|
170575
170654
|
var FLOAT_REGEX = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/;
|
|
170576
170655
|
var LEADING_ZERO = /^[+-]?0[0-9_]/;
|
|
170577
|
-
function parseString(
|
|
170578
|
-
let
|
|
170656
|
+
function parseString(ctx) {
|
|
170657
|
+
let start = ctx.p;
|
|
170658
|
+
let c6 = ctx.s.charCodeAt(ctx.p++);
|
|
170579
170659
|
let first2 = c6;
|
|
170580
|
-
let isLiteral = c6 ===
|
|
170581
|
-
let isMultiline = c6 ===
|
|
170660
|
+
let isLiteral = c6 === 39;
|
|
170661
|
+
let isMultiline = c6 === ctx.s.charCodeAt(ctx.p) && c6 === ctx.s.charCodeAt(ctx.p + 1);
|
|
170582
170662
|
if (isMultiline) {
|
|
170583
|
-
if (
|
|
170584
|
-
else if (
|
|
170663
|
+
if ((c6 = ctx.s.charCodeAt(ctx.p += 2)) === 10) ctx.p++;
|
|
170664
|
+
else if (c6 === 13 && ctx.s.charCodeAt(ctx.p + 1) === 10) ctx.p += 2;
|
|
170585
170665
|
}
|
|
170586
170666
|
let parsed = "";
|
|
170587
|
-
let sliceStart =
|
|
170667
|
+
let sliceStart = ctx.p;
|
|
170588
170668
|
let state2 = 0;
|
|
170589
|
-
for (
|
|
170590
|
-
c6 =
|
|
170591
|
-
if (isMultiline && (c6 ===
|
|
170592
|
-
else if (c6 <
|
|
170593
|
-
toml:
|
|
170594
|
-
ptr:
|
|
170595
|
-
});
|
|
170596
|
-
else if ((!state2 || state2 === 3) && c6 === first2 && (!isMultiline ||
|
|
170669
|
+
for (; ctx.p < ctx.s.length; ctx.p++) {
|
|
170670
|
+
c6 = ctx.s.charCodeAt(ctx.p);
|
|
170671
|
+
if (isMultiline && (c6 === 10 || c6 === 13 && ctx.s.charCodeAt(ctx.p + 1) === 10)) state2 = state2 && 3;
|
|
170672
|
+
else if (c6 < 32 && c6 !== 9 || c6 === 127) throw new TomlError("control characters are not allowed in strings", {
|
|
170673
|
+
toml: ctx.s,
|
|
170674
|
+
ptr: ctx.p
|
|
170675
|
+
});
|
|
170676
|
+
else if ((!state2 || state2 === 3) && c6 === first2 && (!isMultiline || ctx.s.charCodeAt(ctx.p + 1) === first2 && ctx.s.charCodeAt(ctx.p + 2) === first2)) {
|
|
170597
170677
|
if (isMultiline) {
|
|
170598
|
-
if (
|
|
170599
|
-
if (
|
|
170678
|
+
if (ctx.s.charCodeAt(ctx.p + 3) === first2) ctx.p++;
|
|
170679
|
+
if (ctx.s.charCodeAt(ctx.p + 3) === first2) ctx.p++;
|
|
170600
170680
|
}
|
|
170601
|
-
|
|
170681
|
+
if (!state2) parsed += ctx.s.slice(sliceStart, ctx.p);
|
|
170682
|
+
ctx.p += isMultiline ? 3 : 1;
|
|
170683
|
+
return parsed;
|
|
170602
170684
|
} else if (!state2) {
|
|
170603
|
-
if (!isLiteral && c6 ===
|
|
170604
|
-
parsed +=
|
|
170685
|
+
if (!isLiteral && c6 === 92) {
|
|
170686
|
+
parsed += ctx.s.slice(sliceStart, sliceStart = ctx.p);
|
|
170605
170687
|
state2 = 1;
|
|
170606
170688
|
}
|
|
170607
|
-
} else if (state2 === 1)
|
|
170608
|
-
|
|
170609
|
-
|
|
170610
|
-
|
|
170611
|
-
let
|
|
170612
|
-
|
|
170613
|
-
|
|
170614
|
-
|
|
170615
|
-
|
|
170689
|
+
} else if (state2 === 1) {
|
|
170690
|
+
if (c6 === 120 || c6 === 117 || c6 === 85) {
|
|
170691
|
+
let value = 0;
|
|
170692
|
+
let len = c6 === 120 ? 2 : c6 === 117 ? 4 : 8;
|
|
170693
|
+
for (let j7 = 0; j7 < len; j7++, ctx.p++) {
|
|
170694
|
+
let hex = ctx.s.charCodeAt(ctx.p + 1);
|
|
170695
|
+
let digit = hex >= 48 && hex <= 57 ? hex - 48 : hex >= 65 && hex <= 70 ? hex - 65 + 10 : hex >= 97 && hex <= 102 ? hex - 97 + 10 : -1;
|
|
170696
|
+
if (digit < 0) throw new TomlError("invalid non-hex character in unicode escape", {
|
|
170697
|
+
toml: ctx.s,
|
|
170698
|
+
ptr: ctx.p + 1
|
|
170699
|
+
});
|
|
170700
|
+
value = value << 4 | digit;
|
|
170701
|
+
}
|
|
170702
|
+
if (value < 0 || value > 1114111 || value >= 55296 && value <= 57343) throw new TomlError("invalid unicode escape", {
|
|
170703
|
+
toml: ctx.s,
|
|
170704
|
+
ptr: ctx.p
|
|
170616
170705
|
});
|
|
170617
|
-
|
|
170706
|
+
parsed += String.fromCodePoint(value);
|
|
170707
|
+
sliceStart = ctx.p + 1;
|
|
170708
|
+
state2 = 0;
|
|
170709
|
+
} else if (c6 === 32 || c6 === 9) state2 = 2;
|
|
170710
|
+
else {
|
|
170711
|
+
if (c6 === 98) parsed += "\b";
|
|
170712
|
+
else if (c6 === 116) parsed += " ";
|
|
170713
|
+
else if (c6 === 110) parsed += "\n";
|
|
170714
|
+
else if (c6 === 102) parsed += "\f";
|
|
170715
|
+
else if (c6 === 114) parsed += "\r";
|
|
170716
|
+
else if (c6 === 101) parsed += "\x1B";
|
|
170717
|
+
else if (c6 === 34) parsed += '"';
|
|
170718
|
+
else if (c6 === 92) parsed += "\\";
|
|
170719
|
+
else throw new TomlError("unrecognized escape sequence", {
|
|
170720
|
+
toml: ctx.s,
|
|
170721
|
+
ptr: ctx.p
|
|
170722
|
+
});
|
|
170723
|
+
sliceStart = ctx.p + 1;
|
|
170724
|
+
state2 = 0;
|
|
170618
170725
|
}
|
|
170619
|
-
|
|
170620
|
-
toml: str2,
|
|
170621
|
-
ptr: i5
|
|
170622
|
-
});
|
|
170623
|
-
parsed += String.fromCodePoint(value);
|
|
170624
|
-
sliceStart = i5 + 1;
|
|
170625
|
-
state2 = 0;
|
|
170626
|
-
} else if (c6 === " " || c6 === " ") state2 = 2;
|
|
170627
|
-
else {
|
|
170628
|
-
if (c6 === "b") parsed += "\b";
|
|
170629
|
-
else if (c6 === "t") parsed += " ";
|
|
170630
|
-
else if (c6 === "n") parsed += "\n";
|
|
170631
|
-
else if (c6 === "f") parsed += "\f";
|
|
170632
|
-
else if (c6 === "r") parsed += "\r";
|
|
170633
|
-
else if (c6 === "e") parsed += "\x1B";
|
|
170634
|
-
else if (c6 === '"') parsed += '"';
|
|
170635
|
-
else if (c6 === "\\") parsed += "\\";
|
|
170636
|
-
else throw new TomlError("unrecognized escape sequence", {
|
|
170637
|
-
toml: str2,
|
|
170638
|
-
ptr: i5
|
|
170639
|
-
});
|
|
170640
|
-
sliceStart = i5 + 1;
|
|
170641
|
-
state2 = 0;
|
|
170642
|
-
}
|
|
170643
|
-
else if (c6 !== " " && c6 !== " ") {
|
|
170726
|
+
} else if (c6 !== 32 && c6 !== 9) {
|
|
170644
170727
|
if (state2 === 2) throw new TomlError("invalid escape: only line-ending whitespace may be escaped", {
|
|
170645
|
-
toml:
|
|
170728
|
+
toml: ctx.s,
|
|
170646
170729
|
ptr: sliceStart
|
|
170647
170730
|
});
|
|
170648
|
-
state2 = !isLiteral && c6 ===
|
|
170649
|
-
sliceStart =
|
|
170731
|
+
state2 = !isLiteral && c6 === 92 ? 1 : 0;
|
|
170732
|
+
sliceStart = ctx.p;
|
|
170650
170733
|
}
|
|
170651
170734
|
}
|
|
170652
170735
|
throw new TomlError("unfinished string", {
|
|
170653
|
-
toml:
|
|
170654
|
-
ptr
|
|
170736
|
+
toml: ctx.s,
|
|
170737
|
+
ptr: start
|
|
170655
170738
|
});
|
|
170656
170739
|
}
|
|
170657
|
-
function
|
|
170658
|
-
|
|
170659
|
-
|
|
170740
|
+
function sliceAndTrimEndOf(ctx, start, end) {
|
|
170741
|
+
let value = ctx.s.slice(start, end);
|
|
170742
|
+
let commentIdx = value.indexOf("#");
|
|
170743
|
+
if (commentIdx > 0) {
|
|
170744
|
+
skipComment({
|
|
170745
|
+
s: value,
|
|
170746
|
+
p: commentIdx,
|
|
170747
|
+
d: 0
|
|
170748
|
+
});
|
|
170749
|
+
value = value.slice(0, commentIdx);
|
|
170750
|
+
}
|
|
170751
|
+
return value.trimEnd();
|
|
170752
|
+
}
|
|
170753
|
+
function parseValue2(ctx, integersAsBigInt, end) {
|
|
170754
|
+
let ptr = ctx.p;
|
|
170755
|
+
let err = {
|
|
170756
|
+
toml: ctx.s,
|
|
170757
|
+
ptr
|
|
170758
|
+
};
|
|
170759
|
+
skipUntil(ctx, 44, end);
|
|
170760
|
+
let value = sliceAndTrimEndOf(ctx, ptr, ctx.p);
|
|
170761
|
+
if (!value) throw new TomlError("incomplete declaration: value expected", err);
|
|
170660
170762
|
if (value === "-inf") return -Infinity;
|
|
170661
170763
|
if (value === "inf" || value === "+inf") return Infinity;
|
|
170662
170764
|
if (value === "nan" || value === "+nan" || value === "-nan") return NaN;
|
|
170663
170765
|
if (value === "-0") return integersAsBigInt ? 0n : 0;
|
|
170664
170766
|
let isInt = INT_REGEX.test(value);
|
|
170665
170767
|
if (isInt || FLOAT_REGEX.test(value)) {
|
|
170666
|
-
if (LEADING_ZERO.test(value)) throw new TomlError("leading zeroes are not allowed",
|
|
170667
|
-
toml,
|
|
170668
|
-
ptr
|
|
170669
|
-
});
|
|
170768
|
+
if (LEADING_ZERO.test(value)) throw new TomlError("leading zeroes are not allowed", err);
|
|
170670
170769
|
value = value.replace(/_/g, "");
|
|
170671
170770
|
let numeric2 = +value;
|
|
170672
|
-
if (isNaN(numeric2)) throw new TomlError("invalid number",
|
|
170673
|
-
toml,
|
|
170674
|
-
ptr
|
|
170675
|
-
});
|
|
170771
|
+
if (isNaN(numeric2)) throw new TomlError("invalid number", err);
|
|
170676
170772
|
if (isInt) {
|
|
170677
|
-
if ((isInt = !Number.isSafeInteger(numeric2)) && !integersAsBigInt) throw new TomlError("integer value cannot be represented losslessly",
|
|
170678
|
-
toml,
|
|
170679
|
-
ptr
|
|
170680
|
-
});
|
|
170773
|
+
if ((isInt = !Number.isSafeInteger(numeric2)) && !integersAsBigInt) throw new TomlError("integer value cannot be represented losslessly", err);
|
|
170681
170774
|
if (isInt || integersAsBigInt === true) numeric2 = BigInt(value);
|
|
170682
170775
|
}
|
|
170683
170776
|
return numeric2;
|
|
170684
170777
|
}
|
|
170685
170778
|
const date2 = new TomlDate(value);
|
|
170686
|
-
if (!date2.isValid()) throw new TomlError("invalid value",
|
|
170687
|
-
toml,
|
|
170688
|
-
ptr
|
|
170689
|
-
});
|
|
170779
|
+
if (!date2.isValid()) throw new TomlError("invalid value", err);
|
|
170690
170780
|
return date2;
|
|
170691
170781
|
}
|
|
170692
|
-
function
|
|
170693
|
-
let
|
|
170694
|
-
|
|
170695
|
-
|
|
170696
|
-
|
|
170697
|
-
|
|
170698
|
-
for (let i5 = ptr; i5 < str2.length; i5++) {
|
|
170699
|
-
let c6 = str2[i5];
|
|
170700
|
-
if (c6 === "\n") return i5;
|
|
170701
|
-
if (c6 === "\r" && str2[i5 + 1] === "\n") return i5 + 1;
|
|
170702
|
-
if (c6 < " " && c6 !== " " || c6 === "\x7F") throw new TomlError("control characters are not allowed in comments", {
|
|
170703
|
-
toml: str2,
|
|
170782
|
+
function extractValue(ctx, end, integersAsBigInt) {
|
|
170783
|
+
let ptr = ctx.p;
|
|
170784
|
+
let c6 = ctx.s.charCodeAt(ptr);
|
|
170785
|
+
if (c6 === 91 || c6 === 123) {
|
|
170786
|
+
if (!ctx.d--) throw new TomlError("document contains excessively nested structures. aborting.", {
|
|
170787
|
+
toml: ctx.s,
|
|
170704
170788
|
ptr
|
|
170705
170789
|
});
|
|
170790
|
+
let value = c6 === 91 ? parseArray(ctx, integersAsBigInt) : parseInlineTable(ctx, integersAsBigInt);
|
|
170791
|
+
ctx.d++;
|
|
170792
|
+
return value;
|
|
170706
170793
|
}
|
|
170707
|
-
return
|
|
170708
|
-
|
|
170709
|
-
|
|
170710
|
-
|
|
170711
|
-
|
|
170712
|
-
|
|
170713
|
-
|
|
170714
|
-
|
|
170715
|
-
}
|
|
170716
|
-
return ptr;
|
|
170717
|
-
}
|
|
170718
|
-
function skipUntil(str2, ptr, sep4, end, banNewLines = false) {
|
|
170719
|
-
if (!end) {
|
|
170720
|
-
ptr = indexOfNewline(str2, ptr);
|
|
170721
|
-
return ptr < 0 ? str2.length : ptr;
|
|
170722
|
-
}
|
|
170723
|
-
for (let i5 = ptr; i5 < str2.length; i5++) {
|
|
170724
|
-
let c6 = str2[i5];
|
|
170725
|
-
if (c6 === "#") {
|
|
170726
|
-
i5 = indexOfNewline(str2, i5);
|
|
170727
|
-
if (i5 < 0) break;
|
|
170728
|
-
} else if (c6 === sep4) return i5 + 1;
|
|
170729
|
-
else if (c6 === end || banNewLines && (c6 === "\n" || c6 === "\r" && str2[i5 + 1] === "\n")) return i5;
|
|
170730
|
-
}
|
|
170731
|
-
throw new TomlError("cannot find end of structure", {
|
|
170732
|
-
toml: str2,
|
|
170733
|
-
ptr
|
|
170734
|
-
});
|
|
170735
|
-
}
|
|
170736
|
-
function sliceAndTrimEndOf(str2, startPtr, endPtr) {
|
|
170737
|
-
let value = str2.slice(startPtr, endPtr);
|
|
170738
|
-
let commentIdx = value.indexOf("#");
|
|
170739
|
-
if (commentIdx > -1) {
|
|
170740
|
-
skipComment(str2, commentIdx);
|
|
170741
|
-
value = value.slice(0, commentIdx);
|
|
170742
|
-
}
|
|
170743
|
-
return [value.trimEnd(), commentIdx];
|
|
170744
|
-
}
|
|
170745
|
-
function extractValue(str2, ptr, end, depth, integersAsBigInt) {
|
|
170746
|
-
if (depth === 0) throw new TomlError("document contains excessively nested structures. aborting.", {
|
|
170747
|
-
toml: str2,
|
|
170748
|
-
ptr
|
|
170749
|
-
});
|
|
170750
|
-
let c6 = str2[ptr];
|
|
170751
|
-
if (c6 === "[" || c6 === "{") {
|
|
170752
|
-
let [value, endPtr2] = c6 === "[" ? parseArray(str2, ptr, depth, integersAsBigInt) : parseInlineTable(str2, ptr, depth, integersAsBigInt);
|
|
170753
|
-
if (end) {
|
|
170754
|
-
endPtr2 = skipVoid(str2, endPtr2);
|
|
170755
|
-
if (str2[endPtr2] === ",") endPtr2++;
|
|
170756
|
-
else if (str2[endPtr2] !== end) throw new TomlError("expected comma or end of structure", {
|
|
170757
|
-
toml: str2,
|
|
170758
|
-
ptr: endPtr2
|
|
170759
|
-
});
|
|
170760
|
-
}
|
|
170761
|
-
return [value, endPtr2];
|
|
170762
|
-
}
|
|
170763
|
-
if (c6 === '"' || c6 === "'") {
|
|
170764
|
-
let [parsed, endPtr2] = parseString(str2, ptr);
|
|
170765
|
-
if (end) {
|
|
170766
|
-
endPtr2 = skipVoid(str2, endPtr2);
|
|
170767
|
-
if (str2[endPtr2] && str2[endPtr2] !== "," && str2[endPtr2] !== end && str2[endPtr2] !== "\n" && str2[endPtr2] !== "\r") throw new TomlError("unexpected character encountered", {
|
|
170768
|
-
toml: str2,
|
|
170769
|
-
ptr: endPtr2
|
|
170770
|
-
});
|
|
170771
|
-
if (str2[endPtr2] === ",") endPtr2++;
|
|
170772
|
-
}
|
|
170773
|
-
return [parsed, endPtr2];
|
|
170794
|
+
if (c6 === 34 || c6 === 39) return parseString(ctx);
|
|
170795
|
+
if (c6 === 116) {
|
|
170796
|
+
if (ctx.s.charCodeAt(++ctx.p) !== 114 || ctx.s.charCodeAt(++ctx.p) !== 117 || ctx.s.charCodeAt(++ctx.p) !== 101) throw new TomlError("invalid value", {
|
|
170797
|
+
toml: ctx.s,
|
|
170798
|
+
ptr
|
|
170799
|
+
});
|
|
170800
|
+
ctx.p++;
|
|
170801
|
+
return true;
|
|
170774
170802
|
}
|
|
170775
|
-
|
|
170776
|
-
|
|
170777
|
-
|
|
170778
|
-
|
|
170779
|
-
|
|
170780
|
-
|
|
170781
|
-
|
|
170782
|
-
endPtr = skipVoid(str2, ptr + slice[1]);
|
|
170783
|
-
if (str2[endPtr] === ",") endPtr++;
|
|
170803
|
+
if (c6 === 102) {
|
|
170804
|
+
if (ctx.s.charCodeAt(++ctx.p) !== 97 || ctx.s.charCodeAt(++ctx.p) !== 108 || ctx.s.charCodeAt(++ctx.p) !== 115 || ctx.s.charCodeAt(++ctx.p) !== 101) throw new TomlError("invalid value", {
|
|
170805
|
+
toml: ctx.s,
|
|
170806
|
+
ptr
|
|
170807
|
+
});
|
|
170808
|
+
ctx.p++;
|
|
170809
|
+
return false;
|
|
170784
170810
|
}
|
|
170785
|
-
return
|
|
170811
|
+
return parseValue2(ctx, integersAsBigInt, end);
|
|
170786
170812
|
}
|
|
170787
170813
|
var KEY_PART_RE = /^[a-zA-Z0-9-_]+[ \t]*$/;
|
|
170788
|
-
function parseKey(
|
|
170789
|
-
let
|
|
170814
|
+
function parseKey(ctx, end = "=") {
|
|
170815
|
+
let start = ctx.p;
|
|
170816
|
+
let dot = start - 1;
|
|
170790
170817
|
let parsed = [];
|
|
170791
|
-
let endPtr =
|
|
170818
|
+
let endPtr = ctx.s.indexOf(end, start);
|
|
170792
170819
|
if (endPtr < 0) throw new TomlError("incomplete key-value: cannot find end of key", {
|
|
170793
|
-
toml:
|
|
170794
|
-
ptr
|
|
170820
|
+
toml: ctx.s,
|
|
170821
|
+
ptr: start
|
|
170795
170822
|
});
|
|
170796
170823
|
do {
|
|
170797
|
-
let c6 =
|
|
170798
|
-
if (c6 !==
|
|
170799
|
-
if (c6 ===
|
|
170800
|
-
|
|
170801
|
-
|
|
170802
|
-
|
|
170803
|
-
|
|
170804
|
-
|
|
170805
|
-
|
|
170806
|
-
|
|
170807
|
-
|
|
170808
|
-
|
|
170809
|
-
|
|
170810
|
-
|
|
170811
|
-
|
|
170812
|
-
|
|
170813
|
-
|
|
170814
|
-
|
|
170815
|
-
if (endPtr < eos) {
|
|
170816
|
-
endPtr = str2.indexOf(end, eos);
|
|
170817
|
-
if (endPtr < 0) throw new TomlError("incomplete key-value: cannot find end of key", {
|
|
170818
|
-
toml: str2,
|
|
170819
|
-
ptr
|
|
170824
|
+
let c6 = ctx.s.charCodeAt(ctx.p = ++dot);
|
|
170825
|
+
if (c6 !== 32 && c6 !== 9) {
|
|
170826
|
+
if (c6 === 34 || c6 === 39) {
|
|
170827
|
+
if (c6 === ctx.s.charCodeAt(ctx.p + 1) && c6 === ctx.s.charCodeAt(ctx.p + 2)) throw new TomlError("multiline strings are not allowed in keys", {
|
|
170828
|
+
toml: ctx.s,
|
|
170829
|
+
ptr: ctx.p
|
|
170830
|
+
});
|
|
170831
|
+
let part = parseString(ctx);
|
|
170832
|
+
dot = ctx.s.indexOf(".", ctx.p);
|
|
170833
|
+
let strEnd = ctx.s.slice(ctx.p, dot < 0 || dot > endPtr ? endPtr : dot);
|
|
170834
|
+
let newLine = indexOfNewline(strEnd);
|
|
170835
|
+
if (newLine > -1) throw new TomlError("newlines are not allowed in keys", {
|
|
170836
|
+
toml: ctx.s,
|
|
170837
|
+
ptr: newLine
|
|
170838
|
+
});
|
|
170839
|
+
if (strEnd.trimStart()) throw new TomlError("found extra tokens after the string part", {
|
|
170840
|
+
toml: ctx.s,
|
|
170841
|
+
ptr: ctx.p
|
|
170820
170842
|
});
|
|
170843
|
+
if (endPtr < ctx.p) {
|
|
170844
|
+
endPtr = ctx.s.indexOf(end, ctx.p);
|
|
170845
|
+
if (endPtr < 0) throw new TomlError("incomplete key-value: cannot find end of key", {
|
|
170846
|
+
toml: ctx.s,
|
|
170847
|
+
ptr: start
|
|
170848
|
+
});
|
|
170849
|
+
}
|
|
170850
|
+
parsed.push(part);
|
|
170851
|
+
} else {
|
|
170852
|
+
dot = ctx.s.indexOf(".", ctx.p);
|
|
170853
|
+
let part = ctx.s.slice(ctx.p, dot < 0 || dot > endPtr ? endPtr : dot);
|
|
170854
|
+
if (!KEY_PART_RE.test(part)) throw new TomlError("only letter, numbers, dashes and underscores are allowed in keys", {
|
|
170855
|
+
toml: ctx.s,
|
|
170856
|
+
ptr: ctx.p
|
|
170857
|
+
});
|
|
170858
|
+
parsed.push(part.trimEnd());
|
|
170821
170859
|
}
|
|
170822
|
-
parsed.push(part);
|
|
170823
|
-
} else {
|
|
170824
|
-
dot = str2.indexOf(".", ptr);
|
|
170825
|
-
let part = str2.slice(ptr, dot < 0 || dot > endPtr ? endPtr : dot);
|
|
170826
|
-
if (!KEY_PART_RE.test(part)) throw new TomlError("only letter, numbers, dashes and underscores are allowed in keys", {
|
|
170827
|
-
toml: str2,
|
|
170828
|
-
ptr
|
|
170829
|
-
});
|
|
170830
|
-
parsed.push(part.trimEnd());
|
|
170831
170860
|
}
|
|
170832
170861
|
} while (dot + 1 && dot < endPtr);
|
|
170833
|
-
|
|
170862
|
+
ctx.p = endPtr + 1;
|
|
170863
|
+
skipVoid(ctx, true, true);
|
|
170864
|
+
return parsed;
|
|
170834
170865
|
}
|
|
170835
|
-
function parseInlineTable(
|
|
170866
|
+
function parseInlineTable(ctx, integersAsBigInt) {
|
|
170836
170867
|
let res = {};
|
|
170837
170868
|
let seen = /* @__PURE__ */ new Set();
|
|
170838
170869
|
let c6;
|
|
170839
|
-
|
|
170840
|
-
while (
|
|
170841
|
-
|
|
170842
|
-
|
|
170843
|
-
|
|
170844
|
-
|
|
170845
|
-
|
|
170870
|
+
ctx.p++;
|
|
170871
|
+
while (ctx.p < ctx.s.length) {
|
|
170872
|
+
skipVoid(ctx);
|
|
170873
|
+
if ((c6 = ctx.s.charCodeAt(ctx.p)) === 125) {
|
|
170874
|
+
ctx.p++;
|
|
170875
|
+
return res;
|
|
170876
|
+
}
|
|
170846
170877
|
let k7;
|
|
170847
170878
|
let t5 = res;
|
|
170848
170879
|
let hasOwn = false;
|
|
170849
|
-
let
|
|
170880
|
+
let p6 = ctx.p;
|
|
170881
|
+
let key = parseKey(ctx);
|
|
170850
170882
|
for (let i5 = 0; i5 < key.length; i5++) {
|
|
170851
170883
|
if (i5) t5 = hasOwn ? t5[k7] : t5[k7] = {};
|
|
170852
170884
|
k7 = key[i5];
|
|
170853
170885
|
if ((hasOwn = Object.hasOwn(t5, k7)) && (typeof t5[k7] !== "object" || seen.has(t5[k7]))) throw new TomlError("trying to redefine an already defined value", {
|
|
170854
|
-
toml:
|
|
170855
|
-
ptr
|
|
170886
|
+
toml: ctx.s,
|
|
170887
|
+
ptr: p6
|
|
170856
170888
|
});
|
|
170857
170889
|
if (!hasOwn && k7 === "__proto__") Object.defineProperty(t5, k7, {
|
|
170858
170890
|
enumerable: true,
|
|
@@ -170861,39 +170893,45 @@ ${codeblock}`, options);
|
|
|
170861
170893
|
});
|
|
170862
170894
|
}
|
|
170863
170895
|
if (hasOwn) throw new TomlError("trying to redefine an already defined value", {
|
|
170864
|
-
toml:
|
|
170865
|
-
ptr
|
|
170896
|
+
toml: ctx.s,
|
|
170897
|
+
ptr: ctx.p
|
|
170898
|
+
});
|
|
170899
|
+
let value = extractValue(ctx, 125, integersAsBigInt);
|
|
170900
|
+
seen.add(t5[k7] = value);
|
|
170901
|
+
skipVoid(ctx);
|
|
170902
|
+
if ((c6 = ctx.s.charCodeAt(ctx.p++)) === 125) return res;
|
|
170903
|
+
if (c6 !== 44) throw new TomlError("expected comma or end of structure", {
|
|
170904
|
+
toml: ctx.s,
|
|
170905
|
+
ptr: ctx.p - 1
|
|
170866
170906
|
});
|
|
170867
|
-
let [value, valueEndPtr] = extractValue(str2, keyEndPtr, "}", depth - 1, integersAsBigInt);
|
|
170868
|
-
seen.add(value);
|
|
170869
|
-
t5[k7] = value;
|
|
170870
|
-
ptr = valueEndPtr;
|
|
170871
170907
|
}
|
|
170872
|
-
|
|
170873
|
-
toml:
|
|
170874
|
-
ptr
|
|
170908
|
+
throw new TomlError("unfinished table encountered", {
|
|
170909
|
+
toml: ctx.s,
|
|
170910
|
+
ptr: ctx.p
|
|
170875
170911
|
});
|
|
170876
|
-
return [res, ptr];
|
|
170877
170912
|
}
|
|
170878
|
-
function parseArray(
|
|
170913
|
+
function parseArray(ctx, integersAsBigInt) {
|
|
170879
170914
|
let res = [];
|
|
170880
170915
|
let c6;
|
|
170881
|
-
|
|
170882
|
-
while (
|
|
170883
|
-
|
|
170884
|
-
|
|
170885
|
-
|
|
170886
|
-
|
|
170887
|
-
|
|
170888
|
-
|
|
170889
|
-
|
|
170890
|
-
|
|
170916
|
+
ctx.p++;
|
|
170917
|
+
while (ctx.p < ctx.s.length) {
|
|
170918
|
+
skipVoid(ctx);
|
|
170919
|
+
if ((c6 = ctx.s.charCodeAt(ctx.p)) === 93) {
|
|
170920
|
+
ctx.p++;
|
|
170921
|
+
return res;
|
|
170922
|
+
}
|
|
170923
|
+
res.push(extractValue(ctx, 93, integersAsBigInt));
|
|
170924
|
+
skipVoid(ctx);
|
|
170925
|
+
if ((c6 = ctx.s.charCodeAt(ctx.p++)) === 93) return res;
|
|
170926
|
+
if (c6 !== 44) throw new TomlError("expected comma or end of structure", {
|
|
170927
|
+
toml: ctx.s,
|
|
170928
|
+
ptr: ctx.p - 1
|
|
170929
|
+
});
|
|
170891
170930
|
}
|
|
170892
|
-
|
|
170893
|
-
toml:
|
|
170894
|
-
ptr
|
|
170931
|
+
throw new TomlError("unfinished array encountered", {
|
|
170932
|
+
toml: ctx.s,
|
|
170933
|
+
ptr: ctx.p
|
|
170895
170934
|
});
|
|
170896
|
-
return [res, ptr];
|
|
170897
170935
|
}
|
|
170898
170936
|
function peekTable(key, table, meta, type2) {
|
|
170899
170937
|
let t5 = table;
|
|
@@ -170961,46 +170999,51 @@ ${codeblock}`, options);
|
|
|
170961
170999
|
];
|
|
170962
171000
|
}
|
|
170963
171001
|
function parse8(toml, { maxDepth = 1e3, integersAsBigInt } = {}) {
|
|
171002
|
+
let ctx = {
|
|
171003
|
+
s: toml,
|
|
171004
|
+
p: 0,
|
|
171005
|
+
d: maxDepth
|
|
171006
|
+
};
|
|
170964
171007
|
let res = {};
|
|
170965
171008
|
let meta = {};
|
|
171009
|
+
let tmp2;
|
|
170966
171010
|
let tbl = res;
|
|
170967
171011
|
let m6 = meta;
|
|
170968
|
-
|
|
170969
|
-
|
|
170970
|
-
|
|
170971
|
-
let
|
|
171012
|
+
skipVoid(ctx);
|
|
171013
|
+
while (ctx.p < toml.length) {
|
|
171014
|
+
if (toml.charCodeAt(ctx.p) === 91) {
|
|
171015
|
+
let isTableArray = toml.charCodeAt(++ctx.p) === 91;
|
|
171016
|
+
tmp2 = ctx.p += +isTableArray;
|
|
171017
|
+
let k7 = parseKey(ctx, "]");
|
|
170972
171018
|
if (isTableArray) {
|
|
170973
|
-
if (toml
|
|
171019
|
+
if (toml.charCodeAt(ctx.p - 1) !== 93) throw new TomlError("expected end of table declaration", {
|
|
170974
171020
|
toml,
|
|
170975
|
-
ptr:
|
|
171021
|
+
ptr: ctx.p - 1
|
|
170976
171022
|
});
|
|
170977
|
-
|
|
171023
|
+
ctx.p++;
|
|
170978
171024
|
}
|
|
170979
|
-
let p6 = peekTable(k7
|
|
171025
|
+
let p6 = peekTable(k7, res, meta, isTableArray ? 2 : 1);
|
|
170980
171026
|
if (!p6) throw new TomlError("trying to redefine an already defined table or value", {
|
|
170981
171027
|
toml,
|
|
170982
|
-
ptr
|
|
171028
|
+
ptr: tmp2
|
|
170983
171029
|
});
|
|
170984
171030
|
m6 = p6[2];
|
|
170985
171031
|
tbl = p6[1];
|
|
170986
|
-
ptr = k7[1];
|
|
170987
171032
|
} else {
|
|
170988
|
-
|
|
170989
|
-
let p6 = peekTable(
|
|
171033
|
+
tmp2 = ctx.p;
|
|
171034
|
+
let p6 = peekTable(parseKey(ctx), tbl, m6, 0);
|
|
170990
171035
|
if (!p6) throw new TomlError("trying to redefine an already defined table or value", {
|
|
170991
171036
|
toml,
|
|
170992
|
-
ptr
|
|
171037
|
+
ptr: tmp2
|
|
170993
171038
|
});
|
|
170994
|
-
|
|
170995
|
-
p6[1][p6[0]] = v11[0];
|
|
170996
|
-
ptr = v11[1];
|
|
171039
|
+
p6[1][p6[0]] = extractValue(ctx, void 0, integersAsBigInt);
|
|
170997
171040
|
}
|
|
170998
|
-
|
|
170999
|
-
if (toml
|
|
171041
|
+
skipVoid(ctx, true);
|
|
171042
|
+
if (ctx.p < toml.length && (tmp2 = toml.charCodeAt(ctx.p)) !== 10 && tmp2 !== 13) throw new TomlError("each key-value declaration must be followed by an end-of-line", {
|
|
171000
171043
|
toml,
|
|
171001
|
-
ptr
|
|
171044
|
+
ptr: ctx.p
|
|
171002
171045
|
});
|
|
171003
|
-
|
|
171046
|
+
skipVoid(ctx);
|
|
171004
171047
|
}
|
|
171005
171048
|
return res;
|
|
171006
171049
|
}
|
|
@@ -171009,7 +171052,8 @@ ${codeblock}`, options);
|
|
|
171009
171052
|
let type2 = typeof obj;
|
|
171010
171053
|
if (type2 === "object") {
|
|
171011
171054
|
if (Array.isArray(obj)) return "array";
|
|
171012
|
-
if (obj instanceof Date) return "date";
|
|
171055
|
+
if (typeof obj?.getUTCDate === "function" && obj instanceof Date) return "date";
|
|
171056
|
+
if (globalThis.Temporal && typeof obj?.since === "function" && (obj instanceof Temporal.Instant || obj instanceof Temporal.PlainDate || obj instanceof Temporal.PlainDateTime || obj instanceof Temporal.PlainTime || obj instanceof Temporal.ZonedDateTime)) return "temporal";
|
|
171013
171057
|
}
|
|
171014
171058
|
return type2;
|
|
171015
171059
|
}
|
|
@@ -171020,23 +171064,35 @@ ${codeblock}`, options);
|
|
|
171020
171064
|
function formatString(s6) {
|
|
171021
171065
|
return JSON.stringify(s6).replace(/\x7f/g, "\\u007f");
|
|
171022
171066
|
}
|
|
171067
|
+
function stringifyTemporal(temporal) {
|
|
171068
|
+
return temporal.toString({
|
|
171069
|
+
calendarName: "never",
|
|
171070
|
+
timeZoneName: "never"
|
|
171071
|
+
});
|
|
171072
|
+
}
|
|
171023
171073
|
function stringifyValue2(val, type2, depth, numberAsFloat) {
|
|
171024
171074
|
if (depth === 0) throw new Error("Could not stringify the object: maximum object depth exceeded");
|
|
171025
|
-
|
|
171026
|
-
|
|
171027
|
-
|
|
171028
|
-
|
|
171029
|
-
|
|
171030
|
-
|
|
171031
|
-
|
|
171032
|
-
|
|
171033
|
-
|
|
171034
|
-
|
|
171035
|
-
|
|
171036
|
-
|
|
171037
|
-
|
|
171038
|
-
|
|
171039
|
-
|
|
171075
|
+
switch (type2) {
|
|
171076
|
+
case "number":
|
|
171077
|
+
if (isNaN(val)) return "nan";
|
|
171078
|
+
if (val === Infinity) return "inf";
|
|
171079
|
+
if (val === -Infinity) return "-inf";
|
|
171080
|
+
if (Number.isInteger(val) && (numberAsFloat || !Number.isSafeInteger(val))) return val.toFixed(1);
|
|
171081
|
+
case "bigint":
|
|
171082
|
+
case "boolean":
|
|
171083
|
+
return val.toString();
|
|
171084
|
+
case "string":
|
|
171085
|
+
return formatString(val);
|
|
171086
|
+
case "date":
|
|
171087
|
+
if (isNaN(val.getTime())) throw new TypeError("cannot serialize invalid date");
|
|
171088
|
+
return val.toISOString();
|
|
171089
|
+
case "object":
|
|
171090
|
+
return stringifyInlineTable(val, depth, numberAsFloat);
|
|
171091
|
+
case "array":
|
|
171092
|
+
return stringifyArray(val, depth, numberAsFloat);
|
|
171093
|
+
case "temporal":
|
|
171094
|
+
return stringifyTemporal(val);
|
|
171095
|
+
}
|
|
171040
171096
|
}
|
|
171041
171097
|
function stringifyInlineTable(obj, depth, numberAsFloat) {
|
|
171042
171098
|
let keys = Object.keys(obj);
|
|
@@ -233175,7 +233231,7 @@ var require_package7 = __commonJS({
|
|
|
233175
233231
|
"package.json"(exports2, module2) {
|
|
233176
233232
|
module2.exports = {
|
|
233177
233233
|
name: "@sentry/craft",
|
|
233178
|
-
version: "2.31.
|
|
233234
|
+
version: "2.31.2",
|
|
233179
233235
|
description: "The universal sentry workflow CLI",
|
|
233180
233236
|
main: "dist/craft",
|
|
233181
233237
|
repository: "https://github.com/getsentry/craft",
|
|
@@ -233223,7 +233279,7 @@ var require_package7 = __commonJS({
|
|
|
233223
233279
|
"git-url-parse": "^16.1.0",
|
|
233224
233280
|
glob: "^11.0.0",
|
|
233225
233281
|
"is-ci": "^2.0.0",
|
|
233226
|
-
"js-yaml": "4.3.
|
|
233282
|
+
"js-yaml": "4.3.2",
|
|
233227
233283
|
mkdirp: "^1.0.4",
|
|
233228
233284
|
mustache: "3.0.1",
|
|
233229
233285
|
nock: "^13.2.4",
|
|
@@ -233293,6 +233349,11 @@ var require_package7 = __commonJS({
|
|
|
233293
233349
|
vite: "^7.3.5",
|
|
233294
233350
|
"@babel/core": "^7.29.6",
|
|
233295
233351
|
"js-yaml": "^4.3.1",
|
|
233352
|
+
"baseline-browser-mapping": "^2.11.0",
|
|
233353
|
+
browserslist: "^4.28.7",
|
|
233354
|
+
"fast-uri": "^3.1.6",
|
|
233355
|
+
"@humanfs/node": "^0.16.8",
|
|
233356
|
+
nanoid: "^3.3.18",
|
|
233296
233357
|
"path-to-regexp@<6.3.0": "^6.3.0",
|
|
233297
233358
|
"tar-fs@<1.16.4": "1.16.6",
|
|
233298
233359
|
"smol-toml@<1.6.1": "^1.6.1",
|
|
@@ -233362,7 +233423,7 @@ function getPackage() {
|
|
|
233362
233423
|
}
|
|
233363
233424
|
function getPackageVersion() {
|
|
233364
233425
|
const { version: version2 } = getPackage();
|
|
233365
|
-
const buildInfo = "
|
|
233426
|
+
const buildInfo = "25028d0646040cc0a669ae3314cbf884f4c4347a";
|
|
233366
233427
|
return buildInfo ? `${version2} (${buildInfo})` : version2;
|
|
233367
233428
|
}
|
|
233368
233429
|
function semVerToString(s6) {
|