@storm-software/workspace-tools 1.210.1 → 1.210.3
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/CHANGELOG.md +14 -0
- package/config/nx-cloud.json +5 -0
- package/config/nx-default.json +5 -0
- package/config/nx.json +5 -1
- package/index.js +17350 -21037
- package/meta.json +5230 -4162
- package/package.json +28 -27
- package/src/base/base-executor.js +32 -0
- package/src/base/base-generator.js +32 -0
- package/src/base/index.js +32 -0
- package/src/executors/cargo-build/executor.js +32 -0
- package/src/executors/cargo-check/executor.js +32 -0
- package/src/executors/cargo-clippy/executor.js +32 -0
- package/src/executors/cargo-doc/executor.js +32 -0
- package/src/executors/cargo-format/executor.js +32 -0
- package/src/executors/clean-package/executor.js +32 -0
- package/src/executors/rolldown/executor.js +32 -0
- package/src/executors/rollup/executor.js +95 -0
- package/src/executors/size-limit/executor.js +32 -0
- package/src/executors/tsup/executor.js +32 -0
- package/src/executors/tsup-browser/executor.js +32 -0
- package/src/executors/tsup-neutral/executor.js +32 -0
- package/src/executors/tsup-node/executor.js +32 -0
- package/src/executors/typia/executor.js +16141 -19891
- package/src/executors/unbuild/executor.js +32 -0
- package/src/generators/browser-library/generator.js +32 -0
- package/src/generators/config-schema/generator.js +32 -0
- package/src/generators/neutral-library/generator.js +32 -0
- package/src/generators/node-library/generator.js +32 -0
- package/src/generators/preset/generator.js +32 -0
- package/src/generators/release-version/generator.js +38 -0
- package/src/plugins/typescript/index.js +7625 -7
- package/src/plugins/typescript/tsup.js +1 -1
- package/src/utils/index.js +15949 -19443
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/workspace-tools",
|
|
3
|
-
"version": "1.210.
|
|
3
|
+
"version": "1.210.3",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.",
|
|
6
6
|
"repository": {
|
|
@@ -9,10 +9,7 @@
|
|
|
9
9
|
"directory": "packages/workspace-tools"
|
|
10
10
|
},
|
|
11
11
|
"homepage": "https://stormsoftware.com",
|
|
12
|
-
"bugs":
|
|
13
|
-
"url": "https://github.com/storm-software/storm-ops/issues",
|
|
14
|
-
"email": "support@stormsoftware.com"
|
|
15
|
-
},
|
|
12
|
+
"bugs": "https://github.com/storm-software/storm-ops/issues",
|
|
16
13
|
"author": {
|
|
17
14
|
"name": "Storm Software",
|
|
18
15
|
"email": "contact@stormsoftware.com",
|
|
@@ -45,21 +42,22 @@
|
|
|
45
42
|
},
|
|
46
43
|
"typings": "./declarations.d.ts",
|
|
47
44
|
"keywords": [
|
|
45
|
+
"monorepo",
|
|
46
|
+
"open-system",
|
|
48
47
|
"storm",
|
|
49
48
|
"storm-ops",
|
|
50
|
-
"stormstack",
|
|
51
49
|
"storm-stack",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"monorepo"
|
|
50
|
+
"stormstack",
|
|
51
|
+
"sullivanpj"
|
|
55
52
|
],
|
|
56
53
|
"peerDependencies": {
|
|
57
|
-
"@microsoft/api-extractor": "
|
|
58
|
-
"@nx/devkit": "
|
|
59
|
-
"@nx/esbuild": "
|
|
60
|
-
"@nx/rollup": "
|
|
61
|
-
"
|
|
62
|
-
"
|
|
54
|
+
"@microsoft/api-extractor": "catalog:",
|
|
55
|
+
"@nx/devkit": "catalog:",
|
|
56
|
+
"@nx/esbuild": "catalog:",
|
|
57
|
+
"@nx/rollup": "catalog:",
|
|
58
|
+
"@samchon/openapi": "^2.3.0",
|
|
59
|
+
"nx": "catalog:",
|
|
60
|
+
"typescript": "catalog:"
|
|
63
61
|
},
|
|
64
62
|
"peerDependenciesMeta": {
|
|
65
63
|
"@microsoft/api-extractor": {
|
|
@@ -74,6 +72,9 @@
|
|
|
74
72
|
"@nx/rollup": {
|
|
75
73
|
"optional": false
|
|
76
74
|
},
|
|
75
|
+
"@samchon/openapi": {
|
|
76
|
+
"optional": true
|
|
77
|
+
},
|
|
77
78
|
"nx": {
|
|
78
79
|
"optional": false
|
|
79
80
|
},
|
|
@@ -84,19 +85,18 @@
|
|
|
84
85
|
"dependencies": {
|
|
85
86
|
"@anatine/esbuild-decorators": "0.2.19",
|
|
86
87
|
"@ltd/j-toml": "1.38.0",
|
|
87
|
-
"@nx/devkit": "
|
|
88
|
+
"@nx/devkit": "catalog:",
|
|
88
89
|
"@rollup/plugin-babel": "6.0.4",
|
|
89
90
|
"@rollup/plugin-commonjs": "25.0.8",
|
|
90
91
|
"@rollup/plugin-image": "3.0.3",
|
|
91
92
|
"@rollup/plugin-json": "6.1.0",
|
|
92
93
|
"@rollup/plugin-node-resolve": "15.2.3",
|
|
93
94
|
"@rslib/core": "0.0.5",
|
|
94
|
-
"@ryoppippi/unplugin-typia": "1.0.6",
|
|
95
95
|
"@size-limit/esbuild": "11.1.4",
|
|
96
96
|
"@size-limit/esbuild-why": "11.1.4",
|
|
97
97
|
"@size-limit/file": "11.1.4",
|
|
98
98
|
"bundle-require": "5.0.0",
|
|
99
|
-
"c12": "
|
|
99
|
+
"c12": "catalog:",
|
|
100
100
|
"decky": "1.1.1",
|
|
101
101
|
"deep-clone": "4.0.0",
|
|
102
102
|
"esbuild-plugin-environment": "0.4.0",
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
"glob": "10.4.2",
|
|
107
107
|
"micromatch": "4.0.7",
|
|
108
108
|
"npm-run-path": "5.3.0",
|
|
109
|
-
"pkg-types": "
|
|
110
|
-
"prettier": "
|
|
109
|
+
"pkg-types": "catalog:",
|
|
110
|
+
"prettier": "catalog:",
|
|
111
111
|
"prettier-plugin-packagejson": "2.5.0",
|
|
112
112
|
"rollup": "^4.29.1",
|
|
113
113
|
"rollup-plugin-copy": "3.5.0",
|
|
@@ -116,19 +116,20 @@
|
|
|
116
116
|
"semver": "7.6.2",
|
|
117
117
|
"size-limit": "11.1.4",
|
|
118
118
|
"terser": "5.31.1",
|
|
119
|
-
"tsup": "
|
|
120
|
-
"typia": "
|
|
119
|
+
"tsup": "catalog:",
|
|
120
|
+
"typia": "catalog:",
|
|
121
121
|
"zod": "3.23.8",
|
|
122
122
|
"zod-to-json-schema": "3.23.1"
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
125
|
-
"@microsoft/api-extractor": "
|
|
126
|
-
"@nx/esbuild": "
|
|
127
|
-
"@nx/rollup": "
|
|
125
|
+
"@microsoft/api-extractor": "catalog:",
|
|
126
|
+
"@nx/esbuild": "catalog:",
|
|
127
|
+
"@nx/rollup": "catalog:",
|
|
128
128
|
"@types/micromatch": "4.0.9",
|
|
129
|
+
"@types/node": "catalog:",
|
|
129
130
|
"@types/semver": "7.5.8",
|
|
130
|
-
"nx": "
|
|
131
|
-
"typescript": "
|
|
131
|
+
"nx": "catalog:",
|
|
132
|
+
"typescript": "catalog:"
|
|
132
133
|
},
|
|
133
134
|
"publishConfig": {
|
|
134
135
|
"access": "public"
|
|
@@ -30271,6 +30271,11 @@ var init_acorn = __esm({
|
|
|
30271
30271
|
}
|
|
30272
30272
|
}
|
|
30273
30273
|
return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports2);
|
|
30274
|
+
// If the statement does not start with a statement keyword or a
|
|
30275
|
+
// brace, it's an ExpressionStatement or LabeledStatement. We
|
|
30276
|
+
// simply start parsing an expression, and afterwards, if the
|
|
30277
|
+
// next token is a colon and the expression was a simple
|
|
30278
|
+
// Identifier node, we switch to interpreting it as a label.
|
|
30274
30279
|
default:
|
|
30275
30280
|
if (this.isAsyncFunction()) {
|
|
30276
30281
|
if (context) {
|
|
@@ -34315,8 +34320,11 @@ var init_acorn = __esm({
|
|
|
34315
34320
|
};
|
|
34316
34321
|
pp.getTokenFromCode = function(code) {
|
|
34317
34322
|
switch (code) {
|
|
34323
|
+
// The interpretation of a dot depends on whether it is followed
|
|
34324
|
+
// by a digit or another two dots.
|
|
34318
34325
|
case 46:
|
|
34319
34326
|
return this.readToken_dot();
|
|
34327
|
+
// Punctuation tokens.
|
|
34320
34328
|
case 40:
|
|
34321
34329
|
++this.pos;
|
|
34322
34330
|
return this.finishToken(types$1.parenL);
|
|
@@ -34363,6 +34371,8 @@ var init_acorn = __esm({
|
|
|
34363
34371
|
return this.readRadixNumber(2);
|
|
34364
34372
|
}
|
|
34365
34373
|
}
|
|
34374
|
+
// Anything else beginning with a digit is an integer, octal
|
|
34375
|
+
// number, or float.
|
|
34366
34376
|
case 49:
|
|
34367
34377
|
case 50:
|
|
34368
34378
|
case 51:
|
|
@@ -34373,9 +34383,14 @@ var init_acorn = __esm({
|
|
|
34373
34383
|
case 56:
|
|
34374
34384
|
case 57:
|
|
34375
34385
|
return this.readNumber(false);
|
|
34386
|
+
// Quotes produce strings.
|
|
34376
34387
|
case 34:
|
|
34377
34388
|
case 39:
|
|
34378
34389
|
return this.readString(code);
|
|
34390
|
+
// Operators are parsed inline in tiny state machines. '=' (61) is
|
|
34391
|
+
// often referred to. `finishOp` simply skips the amount of
|
|
34392
|
+
// characters it is given as second argument, and returns a token
|
|
34393
|
+
// of the type given by its first argument.
|
|
34379
34394
|
case 47:
|
|
34380
34395
|
return this.readToken_slash();
|
|
34381
34396
|
case 37:
|
|
@@ -34679,12 +34694,14 @@ var init_acorn = __esm({
|
|
|
34679
34694
|
if (this.input[this.pos + 1] !== "{") {
|
|
34680
34695
|
break;
|
|
34681
34696
|
}
|
|
34697
|
+
// fall through
|
|
34682
34698
|
case "`":
|
|
34683
34699
|
return this.finishToken(types$1.invalidTemplate, this.input.slice(this.start, this.pos));
|
|
34684
34700
|
case "\r":
|
|
34685
34701
|
if (this.input[this.pos + 1] === "\n") {
|
|
34686
34702
|
++this.pos;
|
|
34687
34703
|
}
|
|
34704
|
+
// fall through
|
|
34688
34705
|
case "\n":
|
|
34689
34706
|
case "\u2028":
|
|
34690
34707
|
case "\u2029":
|
|
@@ -34701,24 +34718,33 @@ var init_acorn = __esm({
|
|
|
34701
34718
|
switch (ch) {
|
|
34702
34719
|
case 110:
|
|
34703
34720
|
return "\n";
|
|
34721
|
+
// 'n' -> '\n'
|
|
34704
34722
|
case 114:
|
|
34705
34723
|
return "\r";
|
|
34724
|
+
// 'r' -> '\r'
|
|
34706
34725
|
case 120:
|
|
34707
34726
|
return String.fromCharCode(this.readHexChar(2));
|
|
34727
|
+
// 'x'
|
|
34708
34728
|
case 117:
|
|
34709
34729
|
return codePointToString(this.readCodePoint());
|
|
34730
|
+
// 'u'
|
|
34710
34731
|
case 116:
|
|
34711
34732
|
return " ";
|
|
34733
|
+
// 't' -> '\t'
|
|
34712
34734
|
case 98:
|
|
34713
34735
|
return "\b";
|
|
34736
|
+
// 'b' -> '\b'
|
|
34714
34737
|
case 118:
|
|
34715
34738
|
return "\v";
|
|
34739
|
+
// 'v' -> '\u000b'
|
|
34716
34740
|
case 102:
|
|
34717
34741
|
return "\f";
|
|
34742
|
+
// 'f' -> '\f'
|
|
34718
34743
|
case 13:
|
|
34719
34744
|
if (this.input.charCodeAt(this.pos) === 10) {
|
|
34720
34745
|
++this.pos;
|
|
34721
34746
|
}
|
|
34747
|
+
// '\r\n'
|
|
34722
34748
|
case 10:
|
|
34723
34749
|
if (this.options.locations) {
|
|
34724
34750
|
this.lineStart = this.pos;
|
|
@@ -40887,6 +40913,8 @@ var require_read_entry = __commonJS({
|
|
|
40887
40913
|
case "OldExtendedHeader":
|
|
40888
40914
|
this.meta = true;
|
|
40889
40915
|
break;
|
|
40916
|
+
// NOTE: gnutar and bsdtar treat unrecognized types as 'File'
|
|
40917
|
+
// it may be worth doing the same, but with a warning.
|
|
40890
40918
|
default:
|
|
40891
40919
|
this.ignore = true;
|
|
40892
40920
|
}
|
|
@@ -41643,6 +41671,7 @@ var require_write_entry = __commonJS({
|
|
|
41643
41671
|
return this[DIRECTORY]();
|
|
41644
41672
|
case "SymbolicLink":
|
|
41645
41673
|
return this[SYMLINK]();
|
|
41674
|
+
// unsupported types are ignored.
|
|
41646
41675
|
default:
|
|
41647
41676
|
return this.end();
|
|
41648
41677
|
}
|
|
@@ -43358,6 +43387,7 @@ var require_parse = __commonJS({
|
|
|
43358
43387
|
this[EX] = this[EX] || /* @__PURE__ */ Object.create(null);
|
|
43359
43388
|
this[EX].linkpath = this[META].replace(/\0.*/, "");
|
|
43360
43389
|
break;
|
|
43390
|
+
/* istanbul ignore next */
|
|
43361
43391
|
default:
|
|
43362
43392
|
throw new Error("unknown meta: " + entry.type);
|
|
43363
43393
|
}
|
|
@@ -43496,6 +43526,7 @@ var require_parse = __commonJS({
|
|
|
43496
43526
|
case "meta":
|
|
43497
43527
|
position += this[CONSUMEMETA](chunk, position);
|
|
43498
43528
|
break;
|
|
43529
|
+
/* istanbul ignore next */
|
|
43499
43530
|
default:
|
|
43500
43531
|
throw new Error("invalid state: " + this[STATE]);
|
|
43501
43532
|
}
|
|
@@ -44903,6 +44934,7 @@ var require_unpack = __commonJS({
|
|
|
44903
44934
|
if (entry.mode) {
|
|
44904
44935
|
entry.mode = entry.mode | 448;
|
|
44905
44936
|
}
|
|
44937
|
+
// eslint-disable-next-line no-fallthrough
|
|
44906
44938
|
case "File":
|
|
44907
44939
|
case "OldFile":
|
|
44908
44940
|
case "ContiguousFile":
|
|
@@ -30271,6 +30271,11 @@ var init_acorn = __esm({
|
|
|
30271
30271
|
}
|
|
30272
30272
|
}
|
|
30273
30273
|
return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports2);
|
|
30274
|
+
// If the statement does not start with a statement keyword or a
|
|
30275
|
+
// brace, it's an ExpressionStatement or LabeledStatement. We
|
|
30276
|
+
// simply start parsing an expression, and afterwards, if the
|
|
30277
|
+
// next token is a colon and the expression was a simple
|
|
30278
|
+
// Identifier node, we switch to interpreting it as a label.
|
|
30274
30279
|
default:
|
|
30275
30280
|
if (this.isAsyncFunction()) {
|
|
30276
30281
|
if (context) {
|
|
@@ -34315,8 +34320,11 @@ var init_acorn = __esm({
|
|
|
34315
34320
|
};
|
|
34316
34321
|
pp.getTokenFromCode = function(code) {
|
|
34317
34322
|
switch (code) {
|
|
34323
|
+
// The interpretation of a dot depends on whether it is followed
|
|
34324
|
+
// by a digit or another two dots.
|
|
34318
34325
|
case 46:
|
|
34319
34326
|
return this.readToken_dot();
|
|
34327
|
+
// Punctuation tokens.
|
|
34320
34328
|
case 40:
|
|
34321
34329
|
++this.pos;
|
|
34322
34330
|
return this.finishToken(types$1.parenL);
|
|
@@ -34363,6 +34371,8 @@ var init_acorn = __esm({
|
|
|
34363
34371
|
return this.readRadixNumber(2);
|
|
34364
34372
|
}
|
|
34365
34373
|
}
|
|
34374
|
+
// Anything else beginning with a digit is an integer, octal
|
|
34375
|
+
// number, or float.
|
|
34366
34376
|
case 49:
|
|
34367
34377
|
case 50:
|
|
34368
34378
|
case 51:
|
|
@@ -34373,9 +34383,14 @@ var init_acorn = __esm({
|
|
|
34373
34383
|
case 56:
|
|
34374
34384
|
case 57:
|
|
34375
34385
|
return this.readNumber(false);
|
|
34386
|
+
// Quotes produce strings.
|
|
34376
34387
|
case 34:
|
|
34377
34388
|
case 39:
|
|
34378
34389
|
return this.readString(code);
|
|
34390
|
+
// Operators are parsed inline in tiny state machines. '=' (61) is
|
|
34391
|
+
// often referred to. `finishOp` simply skips the amount of
|
|
34392
|
+
// characters it is given as second argument, and returns a token
|
|
34393
|
+
// of the type given by its first argument.
|
|
34379
34394
|
case 47:
|
|
34380
34395
|
return this.readToken_slash();
|
|
34381
34396
|
case 37:
|
|
@@ -34679,12 +34694,14 @@ var init_acorn = __esm({
|
|
|
34679
34694
|
if (this.input[this.pos + 1] !== "{") {
|
|
34680
34695
|
break;
|
|
34681
34696
|
}
|
|
34697
|
+
// fall through
|
|
34682
34698
|
case "`":
|
|
34683
34699
|
return this.finishToken(types$1.invalidTemplate, this.input.slice(this.start, this.pos));
|
|
34684
34700
|
case "\r":
|
|
34685
34701
|
if (this.input[this.pos + 1] === "\n") {
|
|
34686
34702
|
++this.pos;
|
|
34687
34703
|
}
|
|
34704
|
+
// fall through
|
|
34688
34705
|
case "\n":
|
|
34689
34706
|
case "\u2028":
|
|
34690
34707
|
case "\u2029":
|
|
@@ -34701,24 +34718,33 @@ var init_acorn = __esm({
|
|
|
34701
34718
|
switch (ch) {
|
|
34702
34719
|
case 110:
|
|
34703
34720
|
return "\n";
|
|
34721
|
+
// 'n' -> '\n'
|
|
34704
34722
|
case 114:
|
|
34705
34723
|
return "\r";
|
|
34724
|
+
// 'r' -> '\r'
|
|
34706
34725
|
case 120:
|
|
34707
34726
|
return String.fromCharCode(this.readHexChar(2));
|
|
34727
|
+
// 'x'
|
|
34708
34728
|
case 117:
|
|
34709
34729
|
return codePointToString(this.readCodePoint());
|
|
34730
|
+
// 'u'
|
|
34710
34731
|
case 116:
|
|
34711
34732
|
return " ";
|
|
34733
|
+
// 't' -> '\t'
|
|
34712
34734
|
case 98:
|
|
34713
34735
|
return "\b";
|
|
34736
|
+
// 'b' -> '\b'
|
|
34714
34737
|
case 118:
|
|
34715
34738
|
return "\v";
|
|
34739
|
+
// 'v' -> '\u000b'
|
|
34716
34740
|
case 102:
|
|
34717
34741
|
return "\f";
|
|
34742
|
+
// 'f' -> '\f'
|
|
34718
34743
|
case 13:
|
|
34719
34744
|
if (this.input.charCodeAt(this.pos) === 10) {
|
|
34720
34745
|
++this.pos;
|
|
34721
34746
|
}
|
|
34747
|
+
// '\r\n'
|
|
34722
34748
|
case 10:
|
|
34723
34749
|
if (this.options.locations) {
|
|
34724
34750
|
this.lineStart = this.pos;
|
|
@@ -40887,6 +40913,8 @@ var require_read_entry = __commonJS({
|
|
|
40887
40913
|
case "OldExtendedHeader":
|
|
40888
40914
|
this.meta = true;
|
|
40889
40915
|
break;
|
|
40916
|
+
// NOTE: gnutar and bsdtar treat unrecognized types as 'File'
|
|
40917
|
+
// it may be worth doing the same, but with a warning.
|
|
40890
40918
|
default:
|
|
40891
40919
|
this.ignore = true;
|
|
40892
40920
|
}
|
|
@@ -41643,6 +41671,7 @@ var require_write_entry = __commonJS({
|
|
|
41643
41671
|
return this[DIRECTORY]();
|
|
41644
41672
|
case "SymbolicLink":
|
|
41645
41673
|
return this[SYMLINK]();
|
|
41674
|
+
// unsupported types are ignored.
|
|
41646
41675
|
default:
|
|
41647
41676
|
return this.end();
|
|
41648
41677
|
}
|
|
@@ -43358,6 +43387,7 @@ var require_parse = __commonJS({
|
|
|
43358
43387
|
this[EX] = this[EX] || /* @__PURE__ */ Object.create(null);
|
|
43359
43388
|
this[EX].linkpath = this[META].replace(/\0.*/, "");
|
|
43360
43389
|
break;
|
|
43390
|
+
/* istanbul ignore next */
|
|
43361
43391
|
default:
|
|
43362
43392
|
throw new Error("unknown meta: " + entry.type);
|
|
43363
43393
|
}
|
|
@@ -43496,6 +43526,7 @@ var require_parse = __commonJS({
|
|
|
43496
43526
|
case "meta":
|
|
43497
43527
|
position += this[CONSUMEMETA](chunk, position);
|
|
43498
43528
|
break;
|
|
43529
|
+
/* istanbul ignore next */
|
|
43499
43530
|
default:
|
|
43500
43531
|
throw new Error("invalid state: " + this[STATE]);
|
|
43501
43532
|
}
|
|
@@ -44903,6 +44934,7 @@ var require_unpack = __commonJS({
|
|
|
44903
44934
|
if (entry.mode) {
|
|
44904
44935
|
entry.mode = entry.mode | 448;
|
|
44905
44936
|
}
|
|
44937
|
+
// eslint-disable-next-line no-fallthrough
|
|
44906
44938
|
case "File":
|
|
44907
44939
|
case "OldFile":
|
|
44908
44940
|
case "ContiguousFile":
|
package/src/base/index.js
CHANGED
|
@@ -30271,6 +30271,11 @@ var init_acorn = __esm({
|
|
|
30271
30271
|
}
|
|
30272
30272
|
}
|
|
30273
30273
|
return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports2);
|
|
30274
|
+
// If the statement does not start with a statement keyword or a
|
|
30275
|
+
// brace, it's an ExpressionStatement or LabeledStatement. We
|
|
30276
|
+
// simply start parsing an expression, and afterwards, if the
|
|
30277
|
+
// next token is a colon and the expression was a simple
|
|
30278
|
+
// Identifier node, we switch to interpreting it as a label.
|
|
30274
30279
|
default:
|
|
30275
30280
|
if (this.isAsyncFunction()) {
|
|
30276
30281
|
if (context) {
|
|
@@ -34315,8 +34320,11 @@ var init_acorn = __esm({
|
|
|
34315
34320
|
};
|
|
34316
34321
|
pp.getTokenFromCode = function(code) {
|
|
34317
34322
|
switch (code) {
|
|
34323
|
+
// The interpretation of a dot depends on whether it is followed
|
|
34324
|
+
// by a digit or another two dots.
|
|
34318
34325
|
case 46:
|
|
34319
34326
|
return this.readToken_dot();
|
|
34327
|
+
// Punctuation tokens.
|
|
34320
34328
|
case 40:
|
|
34321
34329
|
++this.pos;
|
|
34322
34330
|
return this.finishToken(types$1.parenL);
|
|
@@ -34363,6 +34371,8 @@ var init_acorn = __esm({
|
|
|
34363
34371
|
return this.readRadixNumber(2);
|
|
34364
34372
|
}
|
|
34365
34373
|
}
|
|
34374
|
+
// Anything else beginning with a digit is an integer, octal
|
|
34375
|
+
// number, or float.
|
|
34366
34376
|
case 49:
|
|
34367
34377
|
case 50:
|
|
34368
34378
|
case 51:
|
|
@@ -34373,9 +34383,14 @@ var init_acorn = __esm({
|
|
|
34373
34383
|
case 56:
|
|
34374
34384
|
case 57:
|
|
34375
34385
|
return this.readNumber(false);
|
|
34386
|
+
// Quotes produce strings.
|
|
34376
34387
|
case 34:
|
|
34377
34388
|
case 39:
|
|
34378
34389
|
return this.readString(code);
|
|
34390
|
+
// Operators are parsed inline in tiny state machines. '=' (61) is
|
|
34391
|
+
// often referred to. `finishOp` simply skips the amount of
|
|
34392
|
+
// characters it is given as second argument, and returns a token
|
|
34393
|
+
// of the type given by its first argument.
|
|
34379
34394
|
case 47:
|
|
34380
34395
|
return this.readToken_slash();
|
|
34381
34396
|
case 37:
|
|
@@ -34679,12 +34694,14 @@ var init_acorn = __esm({
|
|
|
34679
34694
|
if (this.input[this.pos + 1] !== "{") {
|
|
34680
34695
|
break;
|
|
34681
34696
|
}
|
|
34697
|
+
// fall through
|
|
34682
34698
|
case "`":
|
|
34683
34699
|
return this.finishToken(types$1.invalidTemplate, this.input.slice(this.start, this.pos));
|
|
34684
34700
|
case "\r":
|
|
34685
34701
|
if (this.input[this.pos + 1] === "\n") {
|
|
34686
34702
|
++this.pos;
|
|
34687
34703
|
}
|
|
34704
|
+
// fall through
|
|
34688
34705
|
case "\n":
|
|
34689
34706
|
case "\u2028":
|
|
34690
34707
|
case "\u2029":
|
|
@@ -34701,24 +34718,33 @@ var init_acorn = __esm({
|
|
|
34701
34718
|
switch (ch) {
|
|
34702
34719
|
case 110:
|
|
34703
34720
|
return "\n";
|
|
34721
|
+
// 'n' -> '\n'
|
|
34704
34722
|
case 114:
|
|
34705
34723
|
return "\r";
|
|
34724
|
+
// 'r' -> '\r'
|
|
34706
34725
|
case 120:
|
|
34707
34726
|
return String.fromCharCode(this.readHexChar(2));
|
|
34727
|
+
// 'x'
|
|
34708
34728
|
case 117:
|
|
34709
34729
|
return codePointToString(this.readCodePoint());
|
|
34730
|
+
// 'u'
|
|
34710
34731
|
case 116:
|
|
34711
34732
|
return " ";
|
|
34733
|
+
// 't' -> '\t'
|
|
34712
34734
|
case 98:
|
|
34713
34735
|
return "\b";
|
|
34736
|
+
// 'b' -> '\b'
|
|
34714
34737
|
case 118:
|
|
34715
34738
|
return "\v";
|
|
34739
|
+
// 'v' -> '\u000b'
|
|
34716
34740
|
case 102:
|
|
34717
34741
|
return "\f";
|
|
34742
|
+
// 'f' -> '\f'
|
|
34718
34743
|
case 13:
|
|
34719
34744
|
if (this.input.charCodeAt(this.pos) === 10) {
|
|
34720
34745
|
++this.pos;
|
|
34721
34746
|
}
|
|
34747
|
+
// '\r\n'
|
|
34722
34748
|
case 10:
|
|
34723
34749
|
if (this.options.locations) {
|
|
34724
34750
|
this.lineStart = this.pos;
|
|
@@ -40887,6 +40913,8 @@ var require_read_entry = __commonJS({
|
|
|
40887
40913
|
case "OldExtendedHeader":
|
|
40888
40914
|
this.meta = true;
|
|
40889
40915
|
break;
|
|
40916
|
+
// NOTE: gnutar and bsdtar treat unrecognized types as 'File'
|
|
40917
|
+
// it may be worth doing the same, but with a warning.
|
|
40890
40918
|
default:
|
|
40891
40919
|
this.ignore = true;
|
|
40892
40920
|
}
|
|
@@ -41643,6 +41671,7 @@ var require_write_entry = __commonJS({
|
|
|
41643
41671
|
return this[DIRECTORY]();
|
|
41644
41672
|
case "SymbolicLink":
|
|
41645
41673
|
return this[SYMLINK]();
|
|
41674
|
+
// unsupported types are ignored.
|
|
41646
41675
|
default:
|
|
41647
41676
|
return this.end();
|
|
41648
41677
|
}
|
|
@@ -43358,6 +43387,7 @@ var require_parse = __commonJS({
|
|
|
43358
43387
|
this[EX] = this[EX] || /* @__PURE__ */ Object.create(null);
|
|
43359
43388
|
this[EX].linkpath = this[META].replace(/\0.*/, "");
|
|
43360
43389
|
break;
|
|
43390
|
+
/* istanbul ignore next */
|
|
43361
43391
|
default:
|
|
43362
43392
|
throw new Error("unknown meta: " + entry.type);
|
|
43363
43393
|
}
|
|
@@ -43496,6 +43526,7 @@ var require_parse = __commonJS({
|
|
|
43496
43526
|
case "meta":
|
|
43497
43527
|
position += this[CONSUMEMETA](chunk, position);
|
|
43498
43528
|
break;
|
|
43529
|
+
/* istanbul ignore next */
|
|
43499
43530
|
default:
|
|
43500
43531
|
throw new Error("invalid state: " + this[STATE]);
|
|
43501
43532
|
}
|
|
@@ -44903,6 +44934,7 @@ var require_unpack = __commonJS({
|
|
|
44903
44934
|
if (entry.mode) {
|
|
44904
44935
|
entry.mode = entry.mode | 448;
|
|
44905
44936
|
}
|
|
44937
|
+
// eslint-disable-next-line no-fallthrough
|
|
44906
44938
|
case "File":
|
|
44907
44939
|
case "OldFile":
|
|
44908
44940
|
case "ContiguousFile":
|
|
@@ -30271,6 +30271,11 @@ var init_acorn = __esm({
|
|
|
30271
30271
|
}
|
|
30272
30272
|
}
|
|
30273
30273
|
return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports2);
|
|
30274
|
+
// If the statement does not start with a statement keyword or a
|
|
30275
|
+
// brace, it's an ExpressionStatement or LabeledStatement. We
|
|
30276
|
+
// simply start parsing an expression, and afterwards, if the
|
|
30277
|
+
// next token is a colon and the expression was a simple
|
|
30278
|
+
// Identifier node, we switch to interpreting it as a label.
|
|
30274
30279
|
default:
|
|
30275
30280
|
if (this.isAsyncFunction()) {
|
|
30276
30281
|
if (context) {
|
|
@@ -34315,8 +34320,11 @@ var init_acorn = __esm({
|
|
|
34315
34320
|
};
|
|
34316
34321
|
pp.getTokenFromCode = function(code) {
|
|
34317
34322
|
switch (code) {
|
|
34323
|
+
// The interpretation of a dot depends on whether it is followed
|
|
34324
|
+
// by a digit or another two dots.
|
|
34318
34325
|
case 46:
|
|
34319
34326
|
return this.readToken_dot();
|
|
34327
|
+
// Punctuation tokens.
|
|
34320
34328
|
case 40:
|
|
34321
34329
|
++this.pos;
|
|
34322
34330
|
return this.finishToken(types$1.parenL);
|
|
@@ -34363,6 +34371,8 @@ var init_acorn = __esm({
|
|
|
34363
34371
|
return this.readRadixNumber(2);
|
|
34364
34372
|
}
|
|
34365
34373
|
}
|
|
34374
|
+
// Anything else beginning with a digit is an integer, octal
|
|
34375
|
+
// number, or float.
|
|
34366
34376
|
case 49:
|
|
34367
34377
|
case 50:
|
|
34368
34378
|
case 51:
|
|
@@ -34373,9 +34383,14 @@ var init_acorn = __esm({
|
|
|
34373
34383
|
case 56:
|
|
34374
34384
|
case 57:
|
|
34375
34385
|
return this.readNumber(false);
|
|
34386
|
+
// Quotes produce strings.
|
|
34376
34387
|
case 34:
|
|
34377
34388
|
case 39:
|
|
34378
34389
|
return this.readString(code);
|
|
34390
|
+
// Operators are parsed inline in tiny state machines. '=' (61) is
|
|
34391
|
+
// often referred to. `finishOp` simply skips the amount of
|
|
34392
|
+
// characters it is given as second argument, and returns a token
|
|
34393
|
+
// of the type given by its first argument.
|
|
34379
34394
|
case 47:
|
|
34380
34395
|
return this.readToken_slash();
|
|
34381
34396
|
case 37:
|
|
@@ -34679,12 +34694,14 @@ var init_acorn = __esm({
|
|
|
34679
34694
|
if (this.input[this.pos + 1] !== "{") {
|
|
34680
34695
|
break;
|
|
34681
34696
|
}
|
|
34697
|
+
// fall through
|
|
34682
34698
|
case "`":
|
|
34683
34699
|
return this.finishToken(types$1.invalidTemplate, this.input.slice(this.start, this.pos));
|
|
34684
34700
|
case "\r":
|
|
34685
34701
|
if (this.input[this.pos + 1] === "\n") {
|
|
34686
34702
|
++this.pos;
|
|
34687
34703
|
}
|
|
34704
|
+
// fall through
|
|
34688
34705
|
case "\n":
|
|
34689
34706
|
case "\u2028":
|
|
34690
34707
|
case "\u2029":
|
|
@@ -34701,24 +34718,33 @@ var init_acorn = __esm({
|
|
|
34701
34718
|
switch (ch) {
|
|
34702
34719
|
case 110:
|
|
34703
34720
|
return "\n";
|
|
34721
|
+
// 'n' -> '\n'
|
|
34704
34722
|
case 114:
|
|
34705
34723
|
return "\r";
|
|
34724
|
+
// 'r' -> '\r'
|
|
34706
34725
|
case 120:
|
|
34707
34726
|
return String.fromCharCode(this.readHexChar(2));
|
|
34727
|
+
// 'x'
|
|
34708
34728
|
case 117:
|
|
34709
34729
|
return codePointToString(this.readCodePoint());
|
|
34730
|
+
// 'u'
|
|
34710
34731
|
case 116:
|
|
34711
34732
|
return " ";
|
|
34733
|
+
// 't' -> '\t'
|
|
34712
34734
|
case 98:
|
|
34713
34735
|
return "\b";
|
|
34736
|
+
// 'b' -> '\b'
|
|
34714
34737
|
case 118:
|
|
34715
34738
|
return "\v";
|
|
34739
|
+
// 'v' -> '\u000b'
|
|
34716
34740
|
case 102:
|
|
34717
34741
|
return "\f";
|
|
34742
|
+
// 'f' -> '\f'
|
|
34718
34743
|
case 13:
|
|
34719
34744
|
if (this.input.charCodeAt(this.pos) === 10) {
|
|
34720
34745
|
++this.pos;
|
|
34721
34746
|
}
|
|
34747
|
+
// '\r\n'
|
|
34722
34748
|
case 10:
|
|
34723
34749
|
if (this.options.locations) {
|
|
34724
34750
|
this.lineStart = this.pos;
|
|
@@ -40887,6 +40913,8 @@ var require_read_entry = __commonJS({
|
|
|
40887
40913
|
case "OldExtendedHeader":
|
|
40888
40914
|
this.meta = true;
|
|
40889
40915
|
break;
|
|
40916
|
+
// NOTE: gnutar and bsdtar treat unrecognized types as 'File'
|
|
40917
|
+
// it may be worth doing the same, but with a warning.
|
|
40890
40918
|
default:
|
|
40891
40919
|
this.ignore = true;
|
|
40892
40920
|
}
|
|
@@ -41643,6 +41671,7 @@ var require_write_entry = __commonJS({
|
|
|
41643
41671
|
return this[DIRECTORY]();
|
|
41644
41672
|
case "SymbolicLink":
|
|
41645
41673
|
return this[SYMLINK]();
|
|
41674
|
+
// unsupported types are ignored.
|
|
41646
41675
|
default:
|
|
41647
41676
|
return this.end();
|
|
41648
41677
|
}
|
|
@@ -43358,6 +43387,7 @@ var require_parse = __commonJS({
|
|
|
43358
43387
|
this[EX] = this[EX] || /* @__PURE__ */ Object.create(null);
|
|
43359
43388
|
this[EX].linkpath = this[META].replace(/\0.*/, "");
|
|
43360
43389
|
break;
|
|
43390
|
+
/* istanbul ignore next */
|
|
43361
43391
|
default:
|
|
43362
43392
|
throw new Error("unknown meta: " + entry.type);
|
|
43363
43393
|
}
|
|
@@ -43496,6 +43526,7 @@ var require_parse = __commonJS({
|
|
|
43496
43526
|
case "meta":
|
|
43497
43527
|
position += this[CONSUMEMETA](chunk, position);
|
|
43498
43528
|
break;
|
|
43529
|
+
/* istanbul ignore next */
|
|
43499
43530
|
default:
|
|
43500
43531
|
throw new Error("invalid state: " + this[STATE]);
|
|
43501
43532
|
}
|
|
@@ -44903,6 +44934,7 @@ var require_unpack = __commonJS({
|
|
|
44903
44934
|
if (entry.mode) {
|
|
44904
44935
|
entry.mode = entry.mode | 448;
|
|
44905
44936
|
}
|
|
44937
|
+
// eslint-disable-next-line no-fallthrough
|
|
44906
44938
|
case "File":
|
|
44907
44939
|
case "OldFile":
|
|
44908
44940
|
case "ContiguousFile":
|