@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
|
@@ -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":
|
|
@@ -34401,6 +34401,11 @@ var init_acorn = __esm({
|
|
|
34401
34401
|
}
|
|
34402
34402
|
}
|
|
34403
34403
|
return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports2);
|
|
34404
|
+
// If the statement does not start with a statement keyword or a
|
|
34405
|
+
// brace, it's an ExpressionStatement or LabeledStatement. We
|
|
34406
|
+
// simply start parsing an expression, and afterwards, if the
|
|
34407
|
+
// next token is a colon and the expression was a simple
|
|
34408
|
+
// Identifier node, we switch to interpreting it as a label.
|
|
34404
34409
|
default:
|
|
34405
34410
|
if (this.isAsyncFunction()) {
|
|
34406
34411
|
if (context) {
|
|
@@ -38445,8 +38450,11 @@ var init_acorn = __esm({
|
|
|
38445
38450
|
};
|
|
38446
38451
|
pp.getTokenFromCode = function(code) {
|
|
38447
38452
|
switch (code) {
|
|
38453
|
+
// The interpretation of a dot depends on whether it is followed
|
|
38454
|
+
// by a digit or another two dots.
|
|
38448
38455
|
case 46:
|
|
38449
38456
|
return this.readToken_dot();
|
|
38457
|
+
// Punctuation tokens.
|
|
38450
38458
|
case 40:
|
|
38451
38459
|
++this.pos;
|
|
38452
38460
|
return this.finishToken(types$1.parenL);
|
|
@@ -38493,6 +38501,8 @@ var init_acorn = __esm({
|
|
|
38493
38501
|
return this.readRadixNumber(2);
|
|
38494
38502
|
}
|
|
38495
38503
|
}
|
|
38504
|
+
// Anything else beginning with a digit is an integer, octal
|
|
38505
|
+
// number, or float.
|
|
38496
38506
|
case 49:
|
|
38497
38507
|
case 50:
|
|
38498
38508
|
case 51:
|
|
@@ -38503,9 +38513,14 @@ var init_acorn = __esm({
|
|
|
38503
38513
|
case 56:
|
|
38504
38514
|
case 57:
|
|
38505
38515
|
return this.readNumber(false);
|
|
38516
|
+
// Quotes produce strings.
|
|
38506
38517
|
case 34:
|
|
38507
38518
|
case 39:
|
|
38508
38519
|
return this.readString(code);
|
|
38520
|
+
// Operators are parsed inline in tiny state machines. '=' (61) is
|
|
38521
|
+
// often referred to. `finishOp` simply skips the amount of
|
|
38522
|
+
// characters it is given as second argument, and returns a token
|
|
38523
|
+
// of the type given by its first argument.
|
|
38509
38524
|
case 47:
|
|
38510
38525
|
return this.readToken_slash();
|
|
38511
38526
|
case 37:
|
|
@@ -38809,12 +38824,14 @@ var init_acorn = __esm({
|
|
|
38809
38824
|
if (this.input[this.pos + 1] !== "{") {
|
|
38810
38825
|
break;
|
|
38811
38826
|
}
|
|
38827
|
+
// fall through
|
|
38812
38828
|
case "`":
|
|
38813
38829
|
return this.finishToken(types$1.invalidTemplate, this.input.slice(this.start, this.pos));
|
|
38814
38830
|
case "\r":
|
|
38815
38831
|
if (this.input[this.pos + 1] === "\n") {
|
|
38816
38832
|
++this.pos;
|
|
38817
38833
|
}
|
|
38834
|
+
// fall through
|
|
38818
38835
|
case "\n":
|
|
38819
38836
|
case "\u2028":
|
|
38820
38837
|
case "\u2029":
|
|
@@ -38831,24 +38848,33 @@ var init_acorn = __esm({
|
|
|
38831
38848
|
switch (ch) {
|
|
38832
38849
|
case 110:
|
|
38833
38850
|
return "\n";
|
|
38851
|
+
// 'n' -> '\n'
|
|
38834
38852
|
case 114:
|
|
38835
38853
|
return "\r";
|
|
38854
|
+
// 'r' -> '\r'
|
|
38836
38855
|
case 120:
|
|
38837
38856
|
return String.fromCharCode(this.readHexChar(2));
|
|
38857
|
+
// 'x'
|
|
38838
38858
|
case 117:
|
|
38839
38859
|
return codePointToString(this.readCodePoint());
|
|
38860
|
+
// 'u'
|
|
38840
38861
|
case 116:
|
|
38841
38862
|
return " ";
|
|
38863
|
+
// 't' -> '\t'
|
|
38842
38864
|
case 98:
|
|
38843
38865
|
return "\b";
|
|
38866
|
+
// 'b' -> '\b'
|
|
38844
38867
|
case 118:
|
|
38845
38868
|
return "\v";
|
|
38869
|
+
// 'v' -> '\u000b'
|
|
38846
38870
|
case 102:
|
|
38847
38871
|
return "\f";
|
|
38872
|
+
// 'f' -> '\f'
|
|
38848
38873
|
case 13:
|
|
38849
38874
|
if (this.input.charCodeAt(this.pos) === 10) {
|
|
38850
38875
|
++this.pos;
|
|
38851
38876
|
}
|
|
38877
|
+
// '\r\n'
|
|
38852
38878
|
case 10:
|
|
38853
38879
|
if (this.options.locations) {
|
|
38854
38880
|
this.lineStart = this.pos;
|
|
@@ -45017,6 +45043,8 @@ var require_read_entry = __commonJS({
|
|
|
45017
45043
|
case "OldExtendedHeader":
|
|
45018
45044
|
this.meta = true;
|
|
45019
45045
|
break;
|
|
45046
|
+
// NOTE: gnutar and bsdtar treat unrecognized types as 'File'
|
|
45047
|
+
// it may be worth doing the same, but with a warning.
|
|
45020
45048
|
default:
|
|
45021
45049
|
this.ignore = true;
|
|
45022
45050
|
}
|
|
@@ -45773,6 +45801,7 @@ var require_write_entry = __commonJS({
|
|
|
45773
45801
|
return this[DIRECTORY]();
|
|
45774
45802
|
case "SymbolicLink":
|
|
45775
45803
|
return this[SYMLINK]();
|
|
45804
|
+
// unsupported types are ignored.
|
|
45776
45805
|
default:
|
|
45777
45806
|
return this.end();
|
|
45778
45807
|
}
|
|
@@ -47488,6 +47517,7 @@ var require_parse = __commonJS({
|
|
|
47488
47517
|
this[EX] = this[EX] || /* @__PURE__ */ Object.create(null);
|
|
47489
47518
|
this[EX].linkpath = this[META].replace(/\0.*/, "");
|
|
47490
47519
|
break;
|
|
47520
|
+
/* istanbul ignore next */
|
|
47491
47521
|
default:
|
|
47492
47522
|
throw new Error("unknown meta: " + entry.type);
|
|
47493
47523
|
}
|
|
@@ -47626,6 +47656,7 @@ var require_parse = __commonJS({
|
|
|
47626
47656
|
case "meta":
|
|
47627
47657
|
position += this[CONSUMEMETA](chunk, position);
|
|
47628
47658
|
break;
|
|
47659
|
+
/* istanbul ignore next */
|
|
47629
47660
|
default:
|
|
47630
47661
|
throw new Error("invalid state: " + this[STATE]);
|
|
47631
47662
|
}
|
|
@@ -49033,6 +49064,7 @@ var require_unpack = __commonJS({
|
|
|
49033
49064
|
if (entry.mode) {
|
|
49034
49065
|
entry.mode = entry.mode | 448;
|
|
49035
49066
|
}
|
|
49067
|
+
// eslint-disable-next-line no-fallthrough
|
|
49036
49068
|
case "File":
|
|
49037
49069
|
case "OldFile":
|
|
49038
49070
|
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":
|