@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":
|
|
@@ -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":
|
|
@@ -32592,6 +32592,11 @@ var init_acorn = __esm({
|
|
|
32592
32592
|
}
|
|
32593
32593
|
}
|
|
32594
32594
|
return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports2);
|
|
32595
|
+
// If the statement does not start with a statement keyword or a
|
|
32596
|
+
// brace, it's an ExpressionStatement or LabeledStatement. We
|
|
32597
|
+
// simply start parsing an expression, and afterwards, if the
|
|
32598
|
+
// next token is a colon and the expression was a simple
|
|
32599
|
+
// Identifier node, we switch to interpreting it as a label.
|
|
32595
32600
|
default:
|
|
32596
32601
|
if (this.isAsyncFunction()) {
|
|
32597
32602
|
if (context) {
|
|
@@ -36636,8 +36641,11 @@ var init_acorn = __esm({
|
|
|
36636
36641
|
};
|
|
36637
36642
|
pp.getTokenFromCode = function(code) {
|
|
36638
36643
|
switch (code) {
|
|
36644
|
+
// The interpretation of a dot depends on whether it is followed
|
|
36645
|
+
// by a digit or another two dots.
|
|
36639
36646
|
case 46:
|
|
36640
36647
|
return this.readToken_dot();
|
|
36648
|
+
// Punctuation tokens.
|
|
36641
36649
|
case 40:
|
|
36642
36650
|
++this.pos;
|
|
36643
36651
|
return this.finishToken(types$1.parenL);
|
|
@@ -36684,6 +36692,8 @@ var init_acorn = __esm({
|
|
|
36684
36692
|
return this.readRadixNumber(2);
|
|
36685
36693
|
}
|
|
36686
36694
|
}
|
|
36695
|
+
// Anything else beginning with a digit is an integer, octal
|
|
36696
|
+
// number, or float.
|
|
36687
36697
|
case 49:
|
|
36688
36698
|
case 50:
|
|
36689
36699
|
case 51:
|
|
@@ -36694,9 +36704,14 @@ var init_acorn = __esm({
|
|
|
36694
36704
|
case 56:
|
|
36695
36705
|
case 57:
|
|
36696
36706
|
return this.readNumber(false);
|
|
36707
|
+
// Quotes produce strings.
|
|
36697
36708
|
case 34:
|
|
36698
36709
|
case 39:
|
|
36699
36710
|
return this.readString(code);
|
|
36711
|
+
// Operators are parsed inline in tiny state machines. '=' (61) is
|
|
36712
|
+
// often referred to. `finishOp` simply skips the amount of
|
|
36713
|
+
// characters it is given as second argument, and returns a token
|
|
36714
|
+
// of the type given by its first argument.
|
|
36700
36715
|
case 47:
|
|
36701
36716
|
return this.readToken_slash();
|
|
36702
36717
|
case 37:
|
|
@@ -37000,12 +37015,14 @@ var init_acorn = __esm({
|
|
|
37000
37015
|
if (this.input[this.pos + 1] !== "{") {
|
|
37001
37016
|
break;
|
|
37002
37017
|
}
|
|
37018
|
+
// fall through
|
|
37003
37019
|
case "`":
|
|
37004
37020
|
return this.finishToken(types$1.invalidTemplate, this.input.slice(this.start, this.pos));
|
|
37005
37021
|
case "\r":
|
|
37006
37022
|
if (this.input[this.pos + 1] === "\n") {
|
|
37007
37023
|
++this.pos;
|
|
37008
37024
|
}
|
|
37025
|
+
// fall through
|
|
37009
37026
|
case "\n":
|
|
37010
37027
|
case "\u2028":
|
|
37011
37028
|
case "\u2029":
|
|
@@ -37022,24 +37039,33 @@ var init_acorn = __esm({
|
|
|
37022
37039
|
switch (ch) {
|
|
37023
37040
|
case 110:
|
|
37024
37041
|
return "\n";
|
|
37042
|
+
// 'n' -> '\n'
|
|
37025
37043
|
case 114:
|
|
37026
37044
|
return "\r";
|
|
37045
|
+
// 'r' -> '\r'
|
|
37027
37046
|
case 120:
|
|
37028
37047
|
return String.fromCharCode(this.readHexChar(2));
|
|
37048
|
+
// 'x'
|
|
37029
37049
|
case 117:
|
|
37030
37050
|
return codePointToString(this.readCodePoint());
|
|
37051
|
+
// 'u'
|
|
37031
37052
|
case 116:
|
|
37032
37053
|
return " ";
|
|
37054
|
+
// 't' -> '\t'
|
|
37033
37055
|
case 98:
|
|
37034
37056
|
return "\b";
|
|
37057
|
+
// 'b' -> '\b'
|
|
37035
37058
|
case 118:
|
|
37036
37059
|
return "\v";
|
|
37060
|
+
// 'v' -> '\u000b'
|
|
37037
37061
|
case 102:
|
|
37038
37062
|
return "\f";
|
|
37063
|
+
// 'f' -> '\f'
|
|
37039
37064
|
case 13:
|
|
37040
37065
|
if (this.input.charCodeAt(this.pos) === 10) {
|
|
37041
37066
|
++this.pos;
|
|
37042
37067
|
}
|
|
37068
|
+
// '\r\n'
|
|
37043
37069
|
case 10:
|
|
37044
37070
|
if (this.options.locations) {
|
|
37045
37071
|
this.lineStart = this.pos;
|
|
@@ -43208,6 +43234,8 @@ var require_read_entry = __commonJS({
|
|
|
43208
43234
|
case "OldExtendedHeader":
|
|
43209
43235
|
this.meta = true;
|
|
43210
43236
|
break;
|
|
43237
|
+
// NOTE: gnutar and bsdtar treat unrecognized types as 'File'
|
|
43238
|
+
// it may be worth doing the same, but with a warning.
|
|
43211
43239
|
default:
|
|
43212
43240
|
this.ignore = true;
|
|
43213
43241
|
}
|
|
@@ -43964,6 +43992,7 @@ var require_write_entry = __commonJS({
|
|
|
43964
43992
|
return this[DIRECTORY]();
|
|
43965
43993
|
case "SymbolicLink":
|
|
43966
43994
|
return this[SYMLINK]();
|
|
43995
|
+
// unsupported types are ignored.
|
|
43967
43996
|
default:
|
|
43968
43997
|
return this.end();
|
|
43969
43998
|
}
|
|
@@ -45679,6 +45708,7 @@ var require_parse = __commonJS({
|
|
|
45679
45708
|
this[EX] = this[EX] || /* @__PURE__ */ Object.create(null);
|
|
45680
45709
|
this[EX].linkpath = this[META].replace(/\0.*/, "");
|
|
45681
45710
|
break;
|
|
45711
|
+
/* istanbul ignore next */
|
|
45682
45712
|
default:
|
|
45683
45713
|
throw new Error("unknown meta: " + entry.type);
|
|
45684
45714
|
}
|
|
@@ -45817,6 +45847,7 @@ var require_parse = __commonJS({
|
|
|
45817
45847
|
case "meta":
|
|
45818
45848
|
position += this[CONSUMEMETA](chunk, position);
|
|
45819
45849
|
break;
|
|
45850
|
+
/* istanbul ignore next */
|
|
45820
45851
|
default:
|
|
45821
45852
|
throw new Error("invalid state: " + this[STATE]);
|
|
45822
45853
|
}
|
|
@@ -47224,6 +47255,7 @@ var require_unpack = __commonJS({
|
|
|
47224
47255
|
if (entry.mode) {
|
|
47225
47256
|
entry.mode = entry.mode | 448;
|
|
47226
47257
|
}
|
|
47258
|
+
// eslint-disable-next-line no-fallthrough
|
|
47227
47259
|
case "File":
|
|
47228
47260
|
case "OldFile":
|
|
47229
47261
|
case "ContiguousFile":
|