@storm-software/git-tools 2.104.9 → 2.104.11
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 +1 -1
- package/bin/{chunk-MJ243FGH.cjs → chunk-27AR76DX.cjs} +4 -4
- package/bin/{chunk-6GPR6NFP.js → chunk-354JJC4K.js} +1 -1
- package/bin/{chunk-KOSP4IZ7.js → chunk-7B3YMQE6.js} +1 -1
- package/bin/{chunk-5HEUR3SM.js → chunk-AMTARM2Z.js} +2 -2
- package/bin/{chunk-LUO23224.cjs → chunk-CRYAP7RE.cjs} +138 -138
- package/bin/{chunk-P2CHIYIK.cjs → chunk-DKTCGII6.cjs} +192 -180
- package/bin/{chunk-RIKLWZ4B.js → chunk-FGQZUMQ3.js} +20 -15
- package/bin/{chunk-5L6OQPTU.js → chunk-HXL4NOQT.js} +41 -29
- package/bin/{chunk-RWN7NVE5.cjs → chunk-KHKVDYDW.cjs} +388 -388
- package/bin/{chunk-LN4DM34M.cjs → chunk-LQJ6KDDO.cjs} +24 -19
- package/bin/{chunk-WZ6ONU2G.cjs → chunk-LQQPLYSL.cjs} +2254 -2256
- package/bin/{chunk-HI7REZLL.cjs → chunk-LTA6IYNE.cjs} +32 -32
- package/bin/{chunk-7TOVDNAL.js → chunk-OFITARKF.js} +2 -2
- package/bin/{chunk-JT7CY52A.js → chunk-QK2VZAYO.js} +35 -37
- package/bin/{chunk-AX5TUBFG.js → chunk-SDNW6SS2.js} +2 -2
- package/bin/{chunk-44NY3AUB.js → chunk-TZRRTI4N.js} +2 -2
- package/bin/{chunk-2IHA43AP.js → chunk-U5QZOMRT.js} +2 -2
- package/bin/{chunk-FNIN2HF7.cjs → chunk-UGYHVU7F.cjs} +3 -3
- package/bin/{chunk-KK4YC43S.cjs → chunk-UQVAG5OC.cjs} +2 -2
- package/bin/{chunk-NIRUYN54.js → chunk-V6WDK6IE.js} +1 -1
- package/bin/{chunk-ITOSNR37.cjs → chunk-WKKTA2UM.cjs} +44 -44
- package/bin/{chunk-7KAXYFA6.cjs → chunk-WNWAPROL.cjs} +40 -40
- package/bin/{chunk-H4QPTCFG.cjs → chunk-YOOFQTHQ.cjs} +11 -11
- package/bin/{chunk-TX4MSLH2.js → chunk-YXAVKYVW.js} +2 -2
- package/bin/{dist-JFOMQ2K2.cjs → dist-7F5VNBKN.cjs} +1038 -1038
- package/bin/{dist-S4JODREK.cjs → dist-FXWEQRZF.cjs} +11 -11
- package/bin/{dist-3PG6VJUV.js → dist-HFZWZHS5.js} +8 -8
- package/bin/{dist-OIIP73ZJ.js → dist-KNLG2TFG.js} +5 -5
- package/bin/{esm-LDT2MNAM.js → esm-S6P5YNIZ.js} +1 -1
- package/bin/{esm-RMLWR5HA.cjs → esm-XL3G4SE4.cjs} +46 -46
- package/bin/git.cjs +4674 -4674
- package/bin/git.js +141 -141
- package/bin/json5-ACFZDPQL.cjs +10 -0
- package/bin/json5-H4Z3KHBE.js +10 -0
- package/bin/{jsonc-OAPHH7DD.js → jsonc-7U27ED2O.js} +3 -3
- package/bin/jsonc-Z5T3AZVG.cjs +15 -0
- package/bin/{multipart-parser-FVAFNJ2T.js → multipart-parser-NHF4Y7PF.js} +2 -2
- package/bin/{multipart-parser-EQZFOW7Y.cjs → multipart-parser-NZY4RMG3.cjs} +11 -11
- package/bin/post-checkout.cjs +22 -22
- package/bin/post-checkout.js +10 -10
- package/bin/post-commit.cjs +22 -22
- package/bin/post-commit.js +10 -10
- package/bin/post-merge.cjs +22 -22
- package/bin/post-merge.js +10 -10
- package/bin/pre-commit.cjs +20 -20
- package/bin/pre-commit.js +9 -9
- package/bin/pre-install.cjs +19 -19
- package/bin/pre-install.js +9 -9
- package/bin/pre-push.cjs +27 -27
- package/bin/pre-push.js +10 -10
- package/bin/prepare.cjs +17 -17
- package/bin/prepare.js +9 -9
- package/bin/toml-G5RUU775.cjs +10 -0
- package/bin/toml-H3DD35JR.js +10 -0
- package/bin/{utils-HLJIJ5VG.cjs → utils-MEBHFH3K.cjs} +11 -11
- package/bin/{utils-XMMIQNZP.js → utils-RAQ3J2SN.js} +3 -3
- package/bin/version-warning.cjs +15 -15
- package/bin/version-warning.js +9 -9
- package/bin/yaml-6XBWUX2S.js +10 -0
- package/bin/yaml-R6G5Y6VG.cjs +10 -0
- package/package.json +1 -1
- package/bin/json5-ERDFUGRQ.cjs +0 -10
- package/bin/json5-Q2V32JO6.js +0 -10
- package/bin/jsonc-3TBDK5HS.cjs +0 -15
- package/bin/toml-7ROCMEO3.cjs +0 -10
- package/bin/toml-IQYDRFAS.js +0 -10
- package/bin/yaml-4EAVHO5I.js +0 -10
- package/bin/yaml-EFF7FMTL.cjs +0 -10
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__name,
|
|
3
3
|
init_esm_shims
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SDNW6SS2.js";
|
|
5
5
|
|
|
6
|
-
// ../../node_modules/.pnpm/ohash@2.0.
|
|
6
|
+
// ../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs
|
|
7
7
|
init_esm_shims();
|
|
8
8
|
function serialize(o) {
|
|
9
|
-
return typeof o == "string" ? `'${o}'` : new
|
|
9
|
+
return typeof o == "string" ? `'${o}'` : new c().serialize(o);
|
|
10
10
|
}
|
|
11
11
|
__name(serialize, "serialize");
|
|
12
|
-
var
|
|
12
|
+
var c = /* @__PURE__ */ function() {
|
|
13
13
|
class o {
|
|
14
14
|
static {
|
|
15
15
|
__name(this, "o");
|
|
@@ -37,7 +37,12 @@ var l = /* @__PURE__ */ function() {
|
|
|
37
37
|
const r = Object.prototype.toString.call(t);
|
|
38
38
|
if (r !== "[object Object]") return this.serializeBuiltInType(r.length < 10 ? `unknown:${r}` : r.slice(8, -1), t);
|
|
39
39
|
const e = t.constructor, n = e === Object || e === void 0 ? "" : e.name;
|
|
40
|
-
|
|
40
|
+
if (n !== "" && globalThis[n] === e) return this.serializeBuiltInType(n, t);
|
|
41
|
+
if (typeof t.toJSON == "function") {
|
|
42
|
+
const i = t.toJSON();
|
|
43
|
+
return n + (i !== null && typeof i == "object" ? this.$object(i) : `(${this.serialize(i)})`);
|
|
44
|
+
}
|
|
45
|
+
return this.serializeObjectEntries(n, Object.entries(t));
|
|
41
46
|
}
|
|
42
47
|
serializeBuiltInType(t, r) {
|
|
43
48
|
const e = this["$" + t];
|
|
@@ -46,11 +51,11 @@ var l = /* @__PURE__ */ function() {
|
|
|
46
51
|
throw new Error(`Cannot serialize ${t}`);
|
|
47
52
|
}
|
|
48
53
|
serializeObjectEntries(t, r) {
|
|
49
|
-
const e = Array.from(r).sort((
|
|
54
|
+
const e = Array.from(r).sort((i, a) => this.compare(i[0], a[0]));
|
|
50
55
|
let n = `${t}{`;
|
|
51
|
-
for (let
|
|
52
|
-
const [a,
|
|
53
|
-
n += `${a}:${this.serialize(
|
|
56
|
+
for (let i = 0; i < e.length; i++) {
|
|
57
|
+
const [a, l] = e[i];
|
|
58
|
+
n += `${this.serialize(a, true)}:${this.serialize(l)}`, i < e.length - 1 && (n += ",");
|
|
54
59
|
}
|
|
55
60
|
return n + "}";
|
|
56
61
|
}
|
|
@@ -84,14 +89,14 @@ var l = /* @__PURE__ */ function() {
|
|
|
84
89
|
return this.serializeObjectEntries("Map", t.entries());
|
|
85
90
|
}
|
|
86
91
|
}
|
|
87
|
-
for (const
|
|
88
|
-
return `${
|
|
92
|
+
for (const s of ["Error", "RegExp", "URL"]) o.prototype["$" + s] = function(t) {
|
|
93
|
+
return `${s}(${t})`;
|
|
89
94
|
};
|
|
90
|
-
for (const
|
|
91
|
-
return `${
|
|
95
|
+
for (const s of ["Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array"]) o.prototype["$" + s] = function(t) {
|
|
96
|
+
return `${s}[${t.join(",")}]`;
|
|
92
97
|
};
|
|
93
|
-
for (const
|
|
94
|
-
return `${
|
|
98
|
+
for (const s of ["BigInt64Array", "BigUint64Array"]) o.prototype["$" + s] = function(t) {
|
|
99
|
+
return `${s}[${t.join("n,")}${t.length > 0 ? "n" : ""}]`;
|
|
95
100
|
};
|
|
96
101
|
return o;
|
|
97
102
|
}();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
h,
|
|
3
3
|
x
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AMTARM2Z.js";
|
|
5
5
|
import {
|
|
6
6
|
__name,
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SDNW6SS2.js";
|
|
9
9
|
|
|
10
10
|
// ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.mjs
|
|
11
11
|
init_esm_shims();
|
|
@@ -277,7 +277,7 @@ var defuArrayFn = createDefu((object, key, currentValue) => {
|
|
|
277
277
|
}
|
|
278
278
|
});
|
|
279
279
|
|
|
280
|
-
// ../../node_modules/.pnpm/ufo@1.
|
|
280
|
+
// ../../node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.mjs
|
|
281
281
|
init_esm_shims();
|
|
282
282
|
var r = String.fromCharCode;
|
|
283
283
|
var TRAILING_SLASH_RE = /\/$|\/\?|\/#/;
|
|
@@ -299,7 +299,7 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
299
299
|
let path2 = input;
|
|
300
300
|
let fragment = "";
|
|
301
301
|
const fragmentIndex = input.indexOf("#");
|
|
302
|
-
if (fragmentIndex
|
|
302
|
+
if (fragmentIndex !== -1) {
|
|
303
303
|
path2 = input.slice(0, fragmentIndex);
|
|
304
304
|
fragment = input.slice(fragmentIndex);
|
|
305
305
|
if (!path2) {
|
|
@@ -336,7 +336,7 @@ import { statSync as statSync2, promises as promises2 } from "node:fs";
|
|
|
336
336
|
// ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
337
337
|
init_esm_shims();
|
|
338
338
|
|
|
339
|
-
// ../../node_modules/.pnpm/acorn@8.14.
|
|
339
|
+
// ../../node_modules/.pnpm/acorn@8.14.1/node_modules/acorn/dist/acorn.mjs
|
|
340
340
|
init_esm_shims();
|
|
341
341
|
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
342
342
|
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
|
|
@@ -769,6 +769,7 @@ var SCOPE_SIMPLE_CATCH = 32;
|
|
|
769
769
|
var SCOPE_SUPER = 64;
|
|
770
770
|
var SCOPE_DIRECT_SUPER = 128;
|
|
771
771
|
var SCOPE_CLASS_STATIC_BLOCK = 256;
|
|
772
|
+
var SCOPE_CLASS_FIELD_INIT = 512;
|
|
772
773
|
var SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
|
|
773
774
|
function functionFlags(async, generator) {
|
|
774
775
|
return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0);
|
|
@@ -838,19 +839,20 @@ prototypeAccessors.inFunction.get = function() {
|
|
|
838
839
|
return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0;
|
|
839
840
|
};
|
|
840
841
|
prototypeAccessors.inGenerator.get = function() {
|
|
841
|
-
return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0
|
|
842
|
+
return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0;
|
|
842
843
|
};
|
|
843
844
|
prototypeAccessors.inAsync.get = function() {
|
|
844
|
-
return (this.currentVarScope().flags & SCOPE_ASYNC) > 0
|
|
845
|
+
return (this.currentVarScope().flags & SCOPE_ASYNC) > 0;
|
|
845
846
|
};
|
|
846
847
|
prototypeAccessors.canAwait.get = function() {
|
|
847
848
|
for (var i = this.scopeStack.length - 1; i >= 0; i--) {
|
|
848
|
-
var
|
|
849
|
-
|
|
849
|
+
var ref2 = this.scopeStack[i];
|
|
850
|
+
var flags = ref2.flags;
|
|
851
|
+
if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT)) {
|
|
850
852
|
return false;
|
|
851
853
|
}
|
|
852
|
-
if (
|
|
853
|
-
return (
|
|
854
|
+
if (flags & SCOPE_FUNCTION) {
|
|
855
|
+
return (flags & SCOPE_ASYNC) > 0;
|
|
854
856
|
}
|
|
855
857
|
}
|
|
856
858
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
@@ -858,8 +860,7 @@ prototypeAccessors.canAwait.get = function() {
|
|
|
858
860
|
prototypeAccessors.allowSuper.get = function() {
|
|
859
861
|
var ref2 = this.currentThisScope();
|
|
860
862
|
var flags = ref2.flags;
|
|
861
|
-
|
|
862
|
-
return (flags & SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod;
|
|
863
|
+
return (flags & SCOPE_SUPER) > 0 || this.options.allowSuperOutsideMethod;
|
|
863
864
|
};
|
|
864
865
|
prototypeAccessors.allowDirectSuper.get = function() {
|
|
865
866
|
return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0;
|
|
@@ -868,10 +869,14 @@ prototypeAccessors.treatFunctionsAsVar.get = function() {
|
|
|
868
869
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
869
870
|
};
|
|
870
871
|
prototypeAccessors.allowNewDotTarget.get = function() {
|
|
871
|
-
var
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
872
|
+
for (var i = this.scopeStack.length - 1; i >= 0; i--) {
|
|
873
|
+
var ref2 = this.scopeStack[i];
|
|
874
|
+
var flags = ref2.flags;
|
|
875
|
+
if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT) || flags & SCOPE_FUNCTION && !(flags & SCOPE_ARROW)) {
|
|
876
|
+
return true;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
return false;
|
|
875
880
|
};
|
|
876
881
|
prototypeAccessors.inClassStaticBlock.get = function() {
|
|
877
882
|
return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0;
|
|
@@ -1714,11 +1719,9 @@ pp$8.parseClassField = function(field) {
|
|
|
1714
1719
|
this.raise(field.key.start, "Classes can't have a static field named 'prototype'");
|
|
1715
1720
|
}
|
|
1716
1721
|
if (this.eat(types$1.eq)) {
|
|
1717
|
-
|
|
1718
|
-
var inClassFieldInit = scope.inClassFieldInit;
|
|
1719
|
-
scope.inClassFieldInit = true;
|
|
1722
|
+
this.enterScope(SCOPE_CLASS_FIELD_INIT | SCOPE_SUPER);
|
|
1720
1723
|
field.value = this.parseMaybeAssign();
|
|
1721
|
-
|
|
1724
|
+
this.exitScope();
|
|
1722
1725
|
} else {
|
|
1723
1726
|
field.value = null;
|
|
1724
1727
|
}
|
|
@@ -1843,6 +1846,9 @@ pp$8.parseExport = function(node, exports) {
|
|
|
1843
1846
|
}
|
|
1844
1847
|
node.specifiers = [];
|
|
1845
1848
|
node.source = null;
|
|
1849
|
+
if (this.options.ecmaVersion >= 16) {
|
|
1850
|
+
node.attributes = [];
|
|
1851
|
+
}
|
|
1846
1852
|
} else {
|
|
1847
1853
|
node.declaration = null;
|
|
1848
1854
|
node.specifiers = this.parseExportSpecifiers(exports);
|
|
@@ -1864,6 +1870,9 @@ pp$8.parseExport = function(node, exports) {
|
|
|
1864
1870
|
}
|
|
1865
1871
|
}
|
|
1866
1872
|
node.source = null;
|
|
1873
|
+
if (this.options.ecmaVersion >= 16) {
|
|
1874
|
+
node.attributes = [];
|
|
1875
|
+
}
|
|
1867
1876
|
}
|
|
1868
1877
|
this.semicolon();
|
|
1869
1878
|
}
|
|
@@ -3225,9 +3234,10 @@ pp$5.parseProperty = function(isPattern, refDestructuringErrors) {
|
|
|
3225
3234
|
return this.finishNode(prop, "Property");
|
|
3226
3235
|
};
|
|
3227
3236
|
pp$5.parseGetterSetter = function(prop) {
|
|
3228
|
-
|
|
3237
|
+
var kind = prop.key.name;
|
|
3229
3238
|
this.parsePropertyName(prop);
|
|
3230
3239
|
prop.value = this.parseMethod(false);
|
|
3240
|
+
prop.kind = kind;
|
|
3231
3241
|
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
3232
3242
|
if (prop.value.params.length !== paramCount) {
|
|
3233
3243
|
var start = prop.value.start;
|
|
@@ -3253,9 +3263,9 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
|
|
|
3253
3263
|
if (isPattern) {
|
|
3254
3264
|
this.unexpected();
|
|
3255
3265
|
}
|
|
3256
|
-
prop.kind = "init";
|
|
3257
3266
|
prop.method = true;
|
|
3258
3267
|
prop.value = this.parseMethod(isGenerator, isAsync);
|
|
3268
|
+
prop.kind = "init";
|
|
3259
3269
|
} else if (!isPattern && !containsEsc && this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === "Identifier" && (prop.key.name === "get" || prop.key.name === "set") && (this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq)) {
|
|
3260
3270
|
if (isGenerator || isAsync) {
|
|
3261
3271
|
this.unexpected();
|
|
@@ -3269,7 +3279,6 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
|
|
|
3269
3279
|
if (prop.key.name === "await" && !this.awaitIdentPos) {
|
|
3270
3280
|
this.awaitIdentPos = startPos;
|
|
3271
3281
|
}
|
|
3272
|
-
prop.kind = "init";
|
|
3273
3282
|
if (isPattern) {
|
|
3274
3283
|
prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));
|
|
3275
3284
|
} else if (this.type === types$1.eq && refDestructuringErrors) {
|
|
@@ -3280,6 +3289,7 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
|
|
|
3280
3289
|
} else {
|
|
3281
3290
|
prop.value = this.copyNode(prop.key);
|
|
3282
3291
|
}
|
|
3292
|
+
prop.kind = "init";
|
|
3283
3293
|
prop.shorthand = true;
|
|
3284
3294
|
} else {
|
|
3285
3295
|
this.unexpected();
|
|
@@ -3429,7 +3439,7 @@ pp$5.checkUnreserved = function(ref2) {
|
|
|
3429
3439
|
if (this.inAsync && name === "await") {
|
|
3430
3440
|
this.raiseRecoverable(start, "Cannot use 'await' as identifier inside an async function");
|
|
3431
3441
|
}
|
|
3432
|
-
if (this.currentThisScope().
|
|
3442
|
+
if (!(this.currentThisScope().flags & SCOPE_VAR) && name === "arguments") {
|
|
3433
3443
|
this.raiseRecoverable(start, "Cannot use 'arguments' in class field initializer");
|
|
3434
3444
|
}
|
|
3435
3445
|
if (this.inClassStaticBlock && (name === "arguments" || name === "await")) {
|
|
@@ -3522,6 +3532,9 @@ var pp$4 = Parser.prototype;
|
|
|
3522
3532
|
pp$4.raise = function(pos, message) {
|
|
3523
3533
|
var loc = getLineInfo(this.input, pos);
|
|
3524
3534
|
message += " (" + loc.line + ":" + loc.column + ")";
|
|
3535
|
+
if (this.sourceFile) {
|
|
3536
|
+
message += " in " + this.sourceFile;
|
|
3537
|
+
}
|
|
3525
3538
|
var err = new SyntaxError(message);
|
|
3526
3539
|
err.pos = pos;
|
|
3527
3540
|
err.loc = loc;
|
|
@@ -3540,7 +3553,6 @@ var Scope = /* @__PURE__ */ __name(function Scope2(flags) {
|
|
|
3540
3553
|
this.var = [];
|
|
3541
3554
|
this.lexical = [];
|
|
3542
3555
|
this.functions = [];
|
|
3543
|
-
this.inClassFieldInit = false;
|
|
3544
3556
|
}, "Scope");
|
|
3545
3557
|
pp$3.enterScope = function(flags) {
|
|
3546
3558
|
this.scopeStack.push(new Scope(flags));
|
|
@@ -3602,7 +3614,7 @@ pp$3.currentScope = function() {
|
|
|
3602
3614
|
pp$3.currentVarScope = function() {
|
|
3603
3615
|
for (var i = this.scopeStack.length - 1; ; i--) {
|
|
3604
3616
|
var scope = this.scopeStack[i];
|
|
3605
|
-
if (scope.flags & SCOPE_VAR) {
|
|
3617
|
+
if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK)) {
|
|
3606
3618
|
return scope;
|
|
3607
3619
|
}
|
|
3608
3620
|
}
|
|
@@ -3610,7 +3622,7 @@ pp$3.currentVarScope = function() {
|
|
|
3610
3622
|
pp$3.currentThisScope = function() {
|
|
3611
3623
|
for (var i = this.scopeStack.length - 1; ; i--) {
|
|
3612
3624
|
var scope = this.scopeStack[i];
|
|
3613
|
-
if (scope.flags & SCOPE_VAR && !(scope.flags & SCOPE_ARROW)) {
|
|
3625
|
+
if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK) && !(scope.flags & SCOPE_ARROW)) {
|
|
3614
3626
|
return scope;
|
|
3615
3627
|
}
|
|
3616
3628
|
}
|
|
@@ -5879,7 +5891,7 @@ pp.readWord = function() {
|
|
|
5879
5891
|
}
|
|
5880
5892
|
return this.finishToken(type, word);
|
|
5881
5893
|
};
|
|
5882
|
-
var version = "8.14.
|
|
5894
|
+
var version = "8.14.1";
|
|
5883
5895
|
Parser.acorn = {
|
|
5884
5896
|
Parser,
|
|
5885
5897
|
version,
|