@storm-software/workspace-tools 1.210.2 → 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 +7 -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 +5227 -4159
- 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/utils/index.js +15949 -19443
|
@@ -30759,6 +30759,11 @@ var init_acorn = __esm({
|
|
|
30759
30759
|
}
|
|
30760
30760
|
}
|
|
30761
30761
|
return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports2);
|
|
30762
|
+
// If the statement does not start with a statement keyword or a
|
|
30763
|
+
// brace, it's an ExpressionStatement or LabeledStatement. We
|
|
30764
|
+
// simply start parsing an expression, and afterwards, if the
|
|
30765
|
+
// next token is a colon and the expression was a simple
|
|
30766
|
+
// Identifier node, we switch to interpreting it as a label.
|
|
30762
30767
|
default:
|
|
30763
30768
|
if (this.isAsyncFunction()) {
|
|
30764
30769
|
if (context) {
|
|
@@ -34803,8 +34808,11 @@ var init_acorn = __esm({
|
|
|
34803
34808
|
};
|
|
34804
34809
|
pp.getTokenFromCode = function(code) {
|
|
34805
34810
|
switch (code) {
|
|
34811
|
+
// The interpretation of a dot depends on whether it is followed
|
|
34812
|
+
// by a digit or another two dots.
|
|
34806
34813
|
case 46:
|
|
34807
34814
|
return this.readToken_dot();
|
|
34815
|
+
// Punctuation tokens.
|
|
34808
34816
|
case 40:
|
|
34809
34817
|
++this.pos;
|
|
34810
34818
|
return this.finishToken(types$1.parenL);
|
|
@@ -34851,6 +34859,8 @@ var init_acorn = __esm({
|
|
|
34851
34859
|
return this.readRadixNumber(2);
|
|
34852
34860
|
}
|
|
34853
34861
|
}
|
|
34862
|
+
// Anything else beginning with a digit is an integer, octal
|
|
34863
|
+
// number, or float.
|
|
34854
34864
|
case 49:
|
|
34855
34865
|
case 50:
|
|
34856
34866
|
case 51:
|
|
@@ -34861,9 +34871,14 @@ var init_acorn = __esm({
|
|
|
34861
34871
|
case 56:
|
|
34862
34872
|
case 57:
|
|
34863
34873
|
return this.readNumber(false);
|
|
34874
|
+
// Quotes produce strings.
|
|
34864
34875
|
case 34:
|
|
34865
34876
|
case 39:
|
|
34866
34877
|
return this.readString(code);
|
|
34878
|
+
// Operators are parsed inline in tiny state machines. '=' (61) is
|
|
34879
|
+
// often referred to. `finishOp` simply skips the amount of
|
|
34880
|
+
// characters it is given as second argument, and returns a token
|
|
34881
|
+
// of the type given by its first argument.
|
|
34867
34882
|
case 47:
|
|
34868
34883
|
return this.readToken_slash();
|
|
34869
34884
|
case 37:
|
|
@@ -35167,12 +35182,14 @@ var init_acorn = __esm({
|
|
|
35167
35182
|
if (this.input[this.pos + 1] !== "{") {
|
|
35168
35183
|
break;
|
|
35169
35184
|
}
|
|
35185
|
+
// fall through
|
|
35170
35186
|
case "`":
|
|
35171
35187
|
return this.finishToken(types$1.invalidTemplate, this.input.slice(this.start, this.pos));
|
|
35172
35188
|
case "\r":
|
|
35173
35189
|
if (this.input[this.pos + 1] === "\n") {
|
|
35174
35190
|
++this.pos;
|
|
35175
35191
|
}
|
|
35192
|
+
// fall through
|
|
35176
35193
|
case "\n":
|
|
35177
35194
|
case "\u2028":
|
|
35178
35195
|
case "\u2029":
|
|
@@ -35189,24 +35206,33 @@ var init_acorn = __esm({
|
|
|
35189
35206
|
switch (ch) {
|
|
35190
35207
|
case 110:
|
|
35191
35208
|
return "\n";
|
|
35209
|
+
// 'n' -> '\n'
|
|
35192
35210
|
case 114:
|
|
35193
35211
|
return "\r";
|
|
35212
|
+
// 'r' -> '\r'
|
|
35194
35213
|
case 120:
|
|
35195
35214
|
return String.fromCharCode(this.readHexChar(2));
|
|
35215
|
+
// 'x'
|
|
35196
35216
|
case 117:
|
|
35197
35217
|
return codePointToString(this.readCodePoint());
|
|
35218
|
+
// 'u'
|
|
35198
35219
|
case 116:
|
|
35199
35220
|
return " ";
|
|
35221
|
+
// 't' -> '\t'
|
|
35200
35222
|
case 98:
|
|
35201
35223
|
return "\b";
|
|
35224
|
+
// 'b' -> '\b'
|
|
35202
35225
|
case 118:
|
|
35203
35226
|
return "\v";
|
|
35227
|
+
// 'v' -> '\u000b'
|
|
35204
35228
|
case 102:
|
|
35205
35229
|
return "\f";
|
|
35230
|
+
// 'f' -> '\f'
|
|
35206
35231
|
case 13:
|
|
35207
35232
|
if (this.input.charCodeAt(this.pos) === 10) {
|
|
35208
35233
|
++this.pos;
|
|
35209
35234
|
}
|
|
35235
|
+
// '\r\n'
|
|
35210
35236
|
case 10:
|
|
35211
35237
|
if (this.options.locations) {
|
|
35212
35238
|
this.lineStart = this.pos;
|
|
@@ -41375,6 +41401,8 @@ var require_read_entry = __commonJS({
|
|
|
41375
41401
|
case "OldExtendedHeader":
|
|
41376
41402
|
this.meta = true;
|
|
41377
41403
|
break;
|
|
41404
|
+
// NOTE: gnutar and bsdtar treat unrecognized types as 'File'
|
|
41405
|
+
// it may be worth doing the same, but with a warning.
|
|
41378
41406
|
default:
|
|
41379
41407
|
this.ignore = true;
|
|
41380
41408
|
}
|
|
@@ -42131,6 +42159,7 @@ var require_write_entry = __commonJS({
|
|
|
42131
42159
|
return this[DIRECTORY]();
|
|
42132
42160
|
case "SymbolicLink":
|
|
42133
42161
|
return this[SYMLINK]();
|
|
42162
|
+
// unsupported types are ignored.
|
|
42134
42163
|
default:
|
|
42135
42164
|
return this.end();
|
|
42136
42165
|
}
|
|
@@ -43846,6 +43875,7 @@ var require_parse = __commonJS({
|
|
|
43846
43875
|
this[EX] = this[EX] || /* @__PURE__ */ Object.create(null);
|
|
43847
43876
|
this[EX].linkpath = this[META].replace(/\0.*/, "");
|
|
43848
43877
|
break;
|
|
43878
|
+
/* istanbul ignore next */
|
|
43849
43879
|
default:
|
|
43850
43880
|
throw new Error("unknown meta: " + entry.type);
|
|
43851
43881
|
}
|
|
@@ -43984,6 +44014,7 @@ var require_parse = __commonJS({
|
|
|
43984
44014
|
case "meta":
|
|
43985
44015
|
position += this[CONSUMEMETA](chunk, position);
|
|
43986
44016
|
break;
|
|
44017
|
+
/* istanbul ignore next */
|
|
43987
44018
|
default:
|
|
43988
44019
|
throw new Error("invalid state: " + this[STATE]);
|
|
43989
44020
|
}
|
|
@@ -45391,6 +45422,7 @@ var require_unpack = __commonJS({
|
|
|
45391
45422
|
if (entry.mode) {
|
|
45392
45423
|
entry.mode = entry.mode | 448;
|
|
45393
45424
|
}
|
|
45425
|
+
// eslint-disable-next-line no-fallthrough
|
|
45394
45426
|
case "File":
|
|
45395
45427
|
case "OldFile":
|
|
45396
45428
|
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":
|
|
@@ -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":
|
|
@@ -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":
|