@putout/babel 5.3.1 → 5.3.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/README.md +2 -0
- package/bundle/index.js +141 -164
- package/bundle/metafile-esm.json +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
Pre-builts of [Babel 8](https://github.com/babel/babel/releases/tag/v8.0.0-rc.2).
|
|
7
7
|
Includes:
|
|
8
8
|
|
|
9
|
+
- [`Improve trailing comma comment handling`](https://github.com/babel/babel/pull/117782);
|
|
10
|
+
- [`Fix: parser: async x => {} must be in leading pos`](https://github.com/babel/babel/pull/17839);
|
|
9
11
|
- [`Fix TypeScript parser failing on async calls in ternary consequent`](https://github.com/babel/babel/pull/17799);
|
|
10
12
|
|
|
11
13
|
Usage
|
package/bundle/index.js
CHANGED
|
@@ -9332,7 +9332,7 @@ var classMethodOrPropertyCommon = () => ({
|
|
|
9332
9332
|
},
|
|
9333
9333
|
});
|
|
9334
9334
|
|
|
9335
|
-
var classMethodOrDeclareMethodCommon = () => ({
|
|
9335
|
+
var classMethodOrDeclareMethodCommon = (allowDecorators = true) => ({
|
|
9336
9336
|
...functionCommon(),
|
|
9337
9337
|
...classMethodOrPropertyCommon(),
|
|
9338
9338
|
params: validateArrayOfType('FunctionParameter', 'TSParameterProperty'),
|
|
@@ -9344,10 +9344,12 @@ var classMethodOrDeclareMethodCommon = () => ({
|
|
|
9344
9344
|
validate: chain(assertValueType('string'), assertOneOf('public', 'private', 'protected')),
|
|
9345
9345
|
optional: true,
|
|
9346
9346
|
},
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9347
|
+
...allowDecorators ? {
|
|
9348
|
+
decorators: {
|
|
9349
|
+
validate: arrayOfType('Decorator'),
|
|
9350
|
+
optional: true,
|
|
9351
|
+
},
|
|
9352
|
+
} : {},
|
|
9351
9353
|
});
|
|
9352
9354
|
|
|
9353
9355
|
defineType$4('ClassMethod', {
|
|
@@ -10820,7 +10822,6 @@ defineType('TSDeclareFunction', {
|
|
|
10820
10822
|
});
|
|
10821
10823
|
defineType('TSDeclareMethod', {
|
|
10822
10824
|
visitor: [
|
|
10823
|
-
'decorators',
|
|
10824
10825
|
'key',
|
|
10825
10826
|
'typeParameters',
|
|
10826
10827
|
'params',
|
|
@@ -10828,7 +10829,7 @@ defineType('TSDeclareMethod', {
|
|
|
10828
10829
|
],
|
|
10829
10830
|
...classMethodOrPropertyUnionShapeCommon(),
|
|
10830
10831
|
fields: {
|
|
10831
|
-
...classMethodOrDeclareMethodCommon(),
|
|
10832
|
+
...classMethodOrDeclareMethodCommon(false),
|
|
10832
10833
|
...tSFunctionTypeAnnotationCommon(),
|
|
10833
10834
|
},
|
|
10834
10835
|
});
|
|
@@ -13781,10 +13782,9 @@ function tsDeclareFunction(id = null, typeParameters = null, params, returnType
|
|
|
13781
13782
|
return node;
|
|
13782
13783
|
}
|
|
13783
13784
|
|
|
13784
|
-
function tsDeclareMethod(
|
|
13785
|
+
function tsDeclareMethod(key, typeParameters = null, params, returnType = null) {
|
|
13785
13786
|
const node = {
|
|
13786
13787
|
type: 'TSDeclareMethod',
|
|
13787
|
-
decorators,
|
|
13788
13788
|
key,
|
|
13789
13789
|
typeParameters,
|
|
13790
13790
|
params,
|
|
@@ -13797,7 +13797,6 @@ function tsDeclareMethod(decorators = null, key, typeParameters = null, params,
|
|
|
13797
13797
|
};
|
|
13798
13798
|
|
|
13799
13799
|
const defs2 = NODE_FIELDS.TSDeclareMethod;
|
|
13800
|
-
validate(defs2.decorators, node, 'decorators', decorators, 1);
|
|
13801
13800
|
validate(defs2.key, node, 'key', key, 1);
|
|
13802
13801
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
13803
13802
|
validate(defs2.params, node, 'params', params, 1);
|
|
@@ -16918,8 +16917,8 @@ function toExpression(node) {
|
|
|
16918
16917
|
return node;
|
|
16919
16918
|
}
|
|
16920
16919
|
|
|
16921
|
-
var _skip = Symbol();
|
|
16922
|
-
var _stop = Symbol();
|
|
16920
|
+
var _skip = /* @__PURE__ */Symbol();
|
|
16921
|
+
var _stop = /* @__PURE__ */Symbol();
|
|
16923
16922
|
|
|
16924
16923
|
function traverseFast(node, enter, opts) {
|
|
16925
16924
|
if (!node)
|
|
@@ -17885,6 +17884,7 @@ var StandardErrors = {
|
|
|
17885
17884
|
ConstructorIsAsync: 'Constructor can\'t be an async function.',
|
|
17886
17885
|
ConstructorIsGenerator: 'Constructor can\'t be a generator.',
|
|
17887
17886
|
DeclarationMissingInitializer: ({kind}) => `Missing initializer in ${kind} declaration.`,
|
|
17887
|
+
DecoratorAbstractMethod: 'Decorators can\'t be used with an abstract method.',
|
|
17888
17888
|
DecoratorArgumentsOutsideParentheses: 'Decorator arguments must be moved inside parentheses: use \'@(decorator(args))\' instead of \'@(decorator)(args)\'.',
|
|
17889
17889
|
DecoratorsBeforeAfterExport: 'Decorators can be placed *either* before or after the \'export\' keyword, but not in both locations at the same time.',
|
|
17890
17890
|
DecoratorConstructor: 'Decorators can\'t be used with a constructor. Did you mean \'@dec class { ... }\'?',
|
|
@@ -18045,6 +18045,7 @@ var PipelineOperatorErrors = {
|
|
|
18045
18045
|
PipeUnparenthesizedBody: ({type}) => `Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({
|
|
18046
18046
|
type,
|
|
18047
18047
|
})}; please wrap it in parentheses.`,
|
|
18048
|
+
PipelineUnparenthesized: 'Cannot mix binary operator with solo-await F#-style pipeline. Please wrap the pipeline in parentheses.',
|
|
18048
18049
|
};
|
|
18049
18050
|
|
|
18050
18051
|
function defineHidden(obj, key, value) {
|
|
@@ -21582,6 +21583,10 @@ var ProductionParameterHandler = class {
|
|
|
21582
21583
|
get hasIn() {
|
|
21583
21584
|
return (this.currentFlags() & 8) > 0;
|
|
21584
21585
|
}
|
|
21586
|
+
|
|
21587
|
+
get inFSharpPipelineDirectBody() {
|
|
21588
|
+
return (this.currentFlags() & 16) === 0;
|
|
21589
|
+
}
|
|
21585
21590
|
};
|
|
21586
21591
|
|
|
21587
21592
|
function functionFlags(isAsync, isGenerator) {
|
|
@@ -21739,6 +21744,7 @@ var CommentsParser = class extends BaseParser {
|
|
|
21739
21744
|
break;
|
|
21740
21745
|
|
|
21741
21746
|
case 'CallExpression':
|
|
21747
|
+
case 'NewExpression':
|
|
21742
21748
|
case 'OptionalCallExpression':
|
|
21743
21749
|
adjustInnerComments(node, node.arguments, commentWS);
|
|
21744
21750
|
break;
|
|
@@ -21752,7 +21758,8 @@ var CommentsParser = class extends BaseParser {
|
|
|
21752
21758
|
case 'ArrowFunctionExpression':
|
|
21753
21759
|
case 'ObjectMethod':
|
|
21754
21760
|
case 'ClassMethod':
|
|
21755
|
-
case 'ClassPrivateMethod':
|
|
21761
|
+
case 'ClassPrivateMethod':
|
|
21762
|
+
case 'TSTypeParameterDeclaration':
|
|
21756
21763
|
adjustInnerComments(node, node.params, commentWS);
|
|
21757
21764
|
break;
|
|
21758
21765
|
|
|
@@ -21766,14 +21773,14 @@ var CommentsParser = class extends BaseParser {
|
|
|
21766
21773
|
adjustInnerComments(node, node.specifiers, commentWS);
|
|
21767
21774
|
break;
|
|
21768
21775
|
|
|
21769
|
-
case 'TSEnumDeclaration':
|
|
21770
|
-
setInnerComments(node, comments);
|
|
21771
|
-
break;
|
|
21772
|
-
|
|
21773
21776
|
case 'TSEnumBody':
|
|
21774
21777
|
adjustInnerComments(node, node.members, commentWS);
|
|
21775
21778
|
break;
|
|
21776
21779
|
|
|
21780
|
+
case 'TSInterfaceBody':
|
|
21781
|
+
adjustInnerComments(node, node.body, commentWS);
|
|
21782
|
+
break;
|
|
21783
|
+
|
|
21777
21784
|
default:
|
|
21778
21785
|
setInnerComments(node, comments);
|
|
21779
21786
|
}
|
|
@@ -21836,7 +21843,7 @@ var CommentsParser = class extends BaseParser {
|
|
|
21836
21843
|
};
|
|
21837
21844
|
|
|
21838
21845
|
var State = class _State {
|
|
21839
|
-
flags =
|
|
21846
|
+
flags = 2048;
|
|
21840
21847
|
get strict() {
|
|
21841
21848
|
return (this.flags & 1) > 0;
|
|
21842
21849
|
}
|
|
@@ -21863,130 +21870,118 @@ var State = class _State {
|
|
|
21863
21870
|
}
|
|
21864
21871
|
|
|
21865
21872
|
errors = [];
|
|
21866
|
-
potentialArrowAt = -1;
|
|
21867
21873
|
noArrowAt = [];
|
|
21868
21874
|
noArrowParamsConversionAt = [];
|
|
21869
|
-
get
|
|
21875
|
+
get canStartArrow() {
|
|
21870
21876
|
return (this.flags & 2) > 0;
|
|
21871
21877
|
}
|
|
21872
21878
|
|
|
21873
|
-
set
|
|
21879
|
+
set canStartArrow(v) {
|
|
21874
21880
|
if (v)
|
|
21875
21881
|
this.flags |= 2;
|
|
21876
21882
|
else
|
|
21877
21883
|
this.flags &= -3;
|
|
21878
21884
|
}
|
|
21879
21885
|
|
|
21880
|
-
get
|
|
21886
|
+
get inType() {
|
|
21881
21887
|
return (this.flags & 4) > 0;
|
|
21882
21888
|
}
|
|
21883
21889
|
|
|
21884
|
-
set
|
|
21890
|
+
set inType(v) {
|
|
21885
21891
|
if (v)
|
|
21886
21892
|
this.flags |= 4;
|
|
21887
21893
|
else
|
|
21888
21894
|
this.flags &= -5;
|
|
21889
21895
|
}
|
|
21890
21896
|
|
|
21891
|
-
get
|
|
21897
|
+
get noAnonFunctionType() {
|
|
21892
21898
|
return (this.flags & 8) > 0;
|
|
21893
21899
|
}
|
|
21894
21900
|
|
|
21895
|
-
set
|
|
21901
|
+
set noAnonFunctionType(v) {
|
|
21896
21902
|
if (v)
|
|
21897
21903
|
this.flags |= 8;
|
|
21898
21904
|
else
|
|
21899
21905
|
this.flags &= -9;
|
|
21900
21906
|
}
|
|
21901
21907
|
|
|
21902
|
-
get
|
|
21908
|
+
get hasFlowComment() {
|
|
21903
21909
|
return (this.flags & 16) > 0;
|
|
21904
21910
|
}
|
|
21905
21911
|
|
|
21906
|
-
set
|
|
21912
|
+
set hasFlowComment(v) {
|
|
21907
21913
|
if (v)
|
|
21908
21914
|
this.flags |= 16;
|
|
21909
21915
|
else
|
|
21910
21916
|
this.flags &= -17;
|
|
21911
21917
|
}
|
|
21912
21918
|
|
|
21913
|
-
get
|
|
21919
|
+
get isAmbientContext() {
|
|
21914
21920
|
return (this.flags & 32) > 0;
|
|
21915
21921
|
}
|
|
21916
21922
|
|
|
21917
|
-
set
|
|
21923
|
+
set isAmbientContext(v) {
|
|
21918
21924
|
if (v)
|
|
21919
21925
|
this.flags |= 32;
|
|
21920
21926
|
else
|
|
21921
21927
|
this.flags &= -33;
|
|
21922
21928
|
}
|
|
21923
21929
|
|
|
21924
|
-
get
|
|
21930
|
+
get inAbstractClass() {
|
|
21925
21931
|
return (this.flags & 64) > 0;
|
|
21926
21932
|
}
|
|
21927
21933
|
|
|
21928
|
-
set
|
|
21934
|
+
set inAbstractClass(v) {
|
|
21929
21935
|
if (v)
|
|
21930
21936
|
this.flags |= 64;
|
|
21931
21937
|
else
|
|
21932
21938
|
this.flags &= -65;
|
|
21933
21939
|
}
|
|
21934
21940
|
|
|
21935
|
-
get
|
|
21941
|
+
get inDisallowConditionalTypesContext() {
|
|
21936
21942
|
return (this.flags & 128) > 0;
|
|
21937
21943
|
}
|
|
21938
21944
|
|
|
21939
|
-
set
|
|
21945
|
+
set inDisallowConditionalTypesContext(v) {
|
|
21940
21946
|
if (v)
|
|
21941
21947
|
this.flags |= 128;
|
|
21942
21948
|
else
|
|
21943
21949
|
this.flags &= -129;
|
|
21944
21950
|
}
|
|
21945
21951
|
|
|
21946
|
-
get
|
|
21952
|
+
get inConditionalConsequent() {
|
|
21947
21953
|
return (this.flags & 256) > 0;
|
|
21948
21954
|
}
|
|
21949
21955
|
|
|
21950
|
-
set
|
|
21956
|
+
set inConditionalConsequent(v) {
|
|
21951
21957
|
if (v)
|
|
21952
21958
|
this.flags |= 256;
|
|
21953
21959
|
else
|
|
21954
21960
|
this.flags &= -257;
|
|
21955
21961
|
}
|
|
21956
21962
|
|
|
21957
|
-
get
|
|
21963
|
+
get inHackPipelineBody() {
|
|
21958
21964
|
return (this.flags & 512) > 0;
|
|
21959
21965
|
}
|
|
21960
21966
|
|
|
21961
|
-
set
|
|
21967
|
+
set inHackPipelineBody(v) {
|
|
21962
21968
|
if (v)
|
|
21963
21969
|
this.flags |= 512;
|
|
21964
21970
|
else
|
|
21965
21971
|
this.flags &= -513;
|
|
21966
21972
|
}
|
|
21967
21973
|
|
|
21968
|
-
get
|
|
21974
|
+
get seenTopicReference() {
|
|
21969
21975
|
return (this.flags & 1024) > 0;
|
|
21970
21976
|
}
|
|
21971
21977
|
|
|
21972
|
-
set
|
|
21978
|
+
set seenTopicReference(v) {
|
|
21973
21979
|
if (v)
|
|
21974
21980
|
this.flags |= 1024;
|
|
21975
21981
|
else
|
|
21976
21982
|
this.flags &= -1025;
|
|
21977
21983
|
}
|
|
21978
21984
|
|
|
21979
|
-
get inFSharpPipelineDirectBody() {
|
|
21980
|
-
return (this.flags & 2048) > 0;
|
|
21981
|
-
}
|
|
21982
|
-
|
|
21983
|
-
set inFSharpPipelineDirectBody(v) {
|
|
21984
|
-
if (v)
|
|
21985
|
-
this.flags |= 2048;
|
|
21986
|
-
else
|
|
21987
|
-
this.flags &= -2049;
|
|
21988
|
-
}
|
|
21989
|
-
|
|
21990
21985
|
labels = [];
|
|
21991
21986
|
commentsLen = 0;
|
|
21992
21987
|
commentStack = [];
|
|
@@ -21999,37 +21994,37 @@ var State = class _State {
|
|
|
21999
21994
|
lastTokStartLoc = null;
|
|
22000
21995
|
context = [types.brace];
|
|
22001
21996
|
get canStartJSXElement() {
|
|
22002
|
-
return (this.flags &
|
|
21997
|
+
return (this.flags & 2048) > 0;
|
|
22003
21998
|
}
|
|
22004
21999
|
|
|
22005
22000
|
set canStartJSXElement(v) {
|
|
22006
22001
|
if (v)
|
|
22007
|
-
this.flags |=
|
|
22002
|
+
this.flags |= 2048;
|
|
22008
22003
|
else
|
|
22009
|
-
this.flags &= -
|
|
22004
|
+
this.flags &= -2049;
|
|
22010
22005
|
}
|
|
22011
22006
|
|
|
22012
22007
|
get containsEsc() {
|
|
22013
|
-
return (this.flags &
|
|
22008
|
+
return (this.flags & 4096) > 0;
|
|
22014
22009
|
}
|
|
22015
22010
|
|
|
22016
22011
|
set containsEsc(v) {
|
|
22017
22012
|
if (v)
|
|
22018
|
-
this.flags |=
|
|
22013
|
+
this.flags |= 4096;
|
|
22019
22014
|
else
|
|
22020
|
-
this.flags &= -
|
|
22015
|
+
this.flags &= -4097;
|
|
22021
22016
|
}
|
|
22022
22017
|
|
|
22023
22018
|
firstInvalidTemplateEscapePos = null;
|
|
22024
22019
|
get hasTopLevelAwait() {
|
|
22025
|
-
return (this.flags &
|
|
22020
|
+
return (this.flags & 8192) > 0;
|
|
22026
22021
|
}
|
|
22027
22022
|
|
|
22028
22023
|
set hasTopLevelAwait(v) {
|
|
22029
22024
|
if (v)
|
|
22030
|
-
this.flags |=
|
|
22025
|
+
this.flags |= 8192;
|
|
22031
22026
|
else
|
|
22032
|
-
this.flags &= -
|
|
22027
|
+
this.flags &= -8193;
|
|
22033
22028
|
}
|
|
22034
22029
|
|
|
22035
22030
|
strictErrors = /* @__PURE__ */new Map();
|
|
@@ -22048,7 +22043,6 @@ var State = class _State {
|
|
|
22048
22043
|
state.startLoc = this.startLoc;
|
|
22049
22044
|
state.endLoc = this.endLoc;
|
|
22050
22045
|
state.errors = this.errors.slice();
|
|
22051
|
-
state.potentialArrowAt = this.potentialArrowAt;
|
|
22052
22046
|
state.noArrowAt = this.noArrowAt.slice();
|
|
22053
22047
|
state.noArrowParamsConversionAt = this.noArrowParamsConversionAt.slice();
|
|
22054
22048
|
state.labels = this.labels.slice();
|
|
@@ -23382,6 +23376,13 @@ var Tokenizer = class extends CommentsParser {
|
|
|
23382
23376
|
next = this.input.charCodeAt(this.state.pos);
|
|
23383
23377
|
}
|
|
23384
23378
|
|
|
23379
|
+
const str = this
|
|
23380
|
+
.input
|
|
23381
|
+
.slice(start, this
|
|
23382
|
+
.state
|
|
23383
|
+
.pos)
|
|
23384
|
+
.replaceAll('_', '');
|
|
23385
|
+
|
|
23385
23386
|
if (next === 110) {
|
|
23386
23387
|
if (isFloat || hasLeadingZero) {
|
|
23387
23388
|
this.raise(Errors.InvalidBigIntLiteral, startLoc);
|
|
@@ -23395,13 +23396,6 @@ var Tokenizer = class extends CommentsParser {
|
|
|
23395
23396
|
throw this.raise(Errors.NumberIdentifier, this.state.curPosition());
|
|
23396
23397
|
}
|
|
23397
23398
|
|
|
23398
|
-
const str = this
|
|
23399
|
-
.input
|
|
23400
|
-
.slice(start, this
|
|
23401
|
-
.state
|
|
23402
|
-
.pos)
|
|
23403
|
-
.replace(/[_mn]/g, '');
|
|
23404
|
-
|
|
23405
23399
|
if (isBigInt) {
|
|
23406
23400
|
this.finishToken(132, str);
|
|
23407
23401
|
return;
|
|
@@ -24181,11 +24175,13 @@ var Node = class {
|
|
|
24181
24175
|
this.end = 0;
|
|
24182
24176
|
this.loc = new SourceLocation(loc);
|
|
24183
24177
|
|
|
24184
|
-
if (parser
|
|
24185
|
-
|
|
24186
|
-
|
|
24187
|
-
|
|
24188
|
-
|
|
24178
|
+
if (parser != null) {
|
|
24179
|
+
if (parser.optionFlags & 128)
|
|
24180
|
+
this.range = [pos, 0];
|
|
24181
|
+
|
|
24182
|
+
if (parser.filename)
|
|
24183
|
+
this.loc.filename = parser.filename;
|
|
24184
|
+
}
|
|
24189
24185
|
}
|
|
24190
24186
|
|
|
24191
24187
|
type = '';
|
|
@@ -24212,10 +24208,6 @@ var NodeUtils = class extends UtilParser {
|
|
|
24212
24208
|
}
|
|
24213
24209
|
|
|
24214
24210
|
finishNodeAt(node, type, endLoc) {
|
|
24215
|
-
if (process.env.NODE_ENV !== 'production' && node.end > 0) {
|
|
24216
|
-
throw new Error('Do not call finishNode*() twice on the same node. Instead use resetEndLocation() or change type directly.');
|
|
24217
|
-
}
|
|
24218
|
-
|
|
24219
24211
|
node.type = type;
|
|
24220
24212
|
node.end = endLoc.index;
|
|
24221
24213
|
node.loc.end = endLoc;
|
|
@@ -26295,7 +26287,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
26295
26287
|
tsParseHeritageClause(token) {
|
|
26296
26288
|
const originalStartLoc = this.state.startLoc;
|
|
26297
26289
|
const delimitedList = this.tsParseDelimitedList('HeritageClauseElement', () => {
|
|
26298
|
-
const expression2 = super.parseExprSubscripts();
|
|
26290
|
+
const expression2 = (this.state.canStartArrow = false, super.parseExprSubscripts());
|
|
26299
26291
|
|
|
26300
26292
|
if (!tsIsEntityName(expression2)) {
|
|
26301
26293
|
this.raise(TSErrors.InvalidHeritageClauseType, expression2.loc.start, {
|
|
@@ -28037,11 +28029,11 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
28037
28029
|
return super.shouldParseAsyncArrow();
|
|
28038
28030
|
}
|
|
28039
28031
|
|
|
28040
|
-
parseParenAndDistinguishExpression(
|
|
28032
|
+
parseParenAndDistinguishExpression(canStartArrow) {
|
|
28041
28033
|
const oldInConditionalConsequent = this.state.inConditionalConsequent;
|
|
28042
28034
|
|
|
28043
28035
|
this.state.inConditionalConsequent = false;
|
|
28044
|
-
const result = super.parseParenAndDistinguishExpression(
|
|
28036
|
+
const result = super.parseParenAndDistinguishExpression(canStartArrow);
|
|
28045
28037
|
|
|
28046
28038
|
this.state.inConditionalConsequent = oldInConditionalConsequent;
|
|
28047
28039
|
return result;
|
|
@@ -28927,8 +28919,8 @@ var ExpressionParser = class extends LValParser {
|
|
|
28927
28919
|
return sawProto;
|
|
28928
28920
|
}
|
|
28929
28921
|
|
|
28930
|
-
shouldExitDescending(expr
|
|
28931
|
-
return expr.type === 'ArrowFunctionExpression' &&
|
|
28922
|
+
shouldExitDescending(expr) {
|
|
28923
|
+
return expr.type === 'ArrowFunctionExpression' && !expr.extra?.parenthesized;
|
|
28932
28924
|
}
|
|
28933
28925
|
|
|
28934
28926
|
getExpression() {
|
|
@@ -29023,12 +29015,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
29023
29015
|
ownExpressionErrors = true;
|
|
29024
29016
|
}
|
|
29025
29017
|
|
|
29026
|
-
|
|
29027
|
-
|
|
29028
|
-
if (type === 6 || tokenIsIdentifier(type)) {
|
|
29029
|
-
this.state.potentialArrowAt = this.state.start;
|
|
29030
|
-
}
|
|
29031
|
-
|
|
29018
|
+
this.state.canStartArrow = true;
|
|
29032
29019
|
let left = this.parseMaybeConditional(refExpressionErrors);
|
|
29033
29020
|
|
|
29034
29021
|
if (afterLeftParse) {
|
|
@@ -29075,9 +29062,9 @@ var ExpressionParser = class extends LValParser {
|
|
|
29075
29062
|
}
|
|
29076
29063
|
|
|
29077
29064
|
if (isYield) {
|
|
29078
|
-
const {type
|
|
29065
|
+
const {type} = this.state;
|
|
29079
29066
|
|
|
29080
|
-
const startsExpr2 = this.hasPlugin('v8intrinsic') ? tokenCanStartExpression(
|
|
29067
|
+
const startsExpr2 = this.hasPlugin('v8intrinsic') ? tokenCanStartExpression(type) : tokenCanStartExpression(type) && !this.match(50);
|
|
29081
29068
|
|
|
29082
29069
|
if (startsExpr2 && !this.isAmbiguousPrefixOrIdentifier()) {
|
|
29083
29070
|
this.raiseOverwrite(Errors.YieldNotInGeneratorFunction, startLoc);
|
|
@@ -29090,10 +29077,9 @@ var ExpressionParser = class extends LValParser {
|
|
|
29090
29077
|
|
|
29091
29078
|
parseMaybeConditional(refExpressionErrors) {
|
|
29092
29079
|
const startLoc = this.state.startLoc;
|
|
29093
|
-
const potentialArrowAt = this.state.potentialArrowAt;
|
|
29094
29080
|
const expr = this.parseExprOps(refExpressionErrors);
|
|
29095
29081
|
|
|
29096
|
-
if (this.shouldExitDescending(expr
|
|
29082
|
+
if (this.shouldExitDescending(expr)) {
|
|
29097
29083
|
return expr;
|
|
29098
29084
|
}
|
|
29099
29085
|
|
|
@@ -29120,13 +29106,13 @@ var ExpressionParser = class extends LValParser {
|
|
|
29120
29106
|
|
|
29121
29107
|
parseExprOps(refExpressionErrors) {
|
|
29122
29108
|
const startLoc = this.state.startLoc;
|
|
29123
|
-
const potentialArrowAt = this.state.potentialArrowAt;
|
|
29124
29109
|
const expr = this.parseMaybeUnaryOrPrivate(refExpressionErrors);
|
|
29125
29110
|
|
|
29126
|
-
if (this.shouldExitDescending(expr
|
|
29111
|
+
if (this.shouldExitDescending(expr)) {
|
|
29127
29112
|
return expr;
|
|
29128
29113
|
}
|
|
29129
29114
|
|
|
29115
|
+
this.state.canStartArrow = false;
|
|
29130
29116
|
return this.parseExprOp(expr, startLoc, -1);
|
|
29131
29117
|
}
|
|
29132
29118
|
|
|
@@ -29152,7 +29138,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
29152
29138
|
if (op === 35) {
|
|
29153
29139
|
this.expectPlugin('pipelineOperator');
|
|
29154
29140
|
|
|
29155
|
-
if (this.
|
|
29141
|
+
if (this.prodParam.inFSharpPipelineDirectBody) {
|
|
29156
29142
|
return left;
|
|
29157
29143
|
}
|
|
29158
29144
|
}
|
|
@@ -29194,9 +29180,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
29194
29180
|
});
|
|
29195
29181
|
|
|
29196
29182
|
case 'fsharp':
|
|
29197
|
-
return this.
|
|
29198
|
-
return this.parseFSharpPipelineBody(prec);
|
|
29199
|
-
});
|
|
29183
|
+
return this.parseFSharpPipelineBody(prec);
|
|
29200
29184
|
}
|
|
29201
29185
|
|
|
29202
29186
|
default:
|
|
@@ -29254,6 +29238,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
29254
29238
|
if (tokenIsPrefix(this.state.type)) {
|
|
29255
29239
|
node.operator = this.state.value;
|
|
29256
29240
|
node.prefix = true;
|
|
29241
|
+
this.state.canStartArrow = false;
|
|
29257
29242
|
|
|
29258
29243
|
if (this.match(68)) {
|
|
29259
29244
|
this.expectPlugin('throwExpressions');
|
|
@@ -29301,12 +29286,9 @@ var ExpressionParser = class extends LValParser {
|
|
|
29301
29286
|
|
|
29302
29287
|
parseUpdate(node, update, refExpressionErrors) {
|
|
29303
29288
|
if (update) {
|
|
29304
|
-
const
|
|
29305
|
-
this.checkLVal(
|
|
29306
|
-
|
|
29307
|
-
'UpdateExpression',
|
|
29308
|
-
));
|
|
29309
|
-
return node;
|
|
29289
|
+
const result = this.finishNode(node, 'UpdateExpression');
|
|
29290
|
+
this.checkLVal(result.argument, result);
|
|
29291
|
+
return result;
|
|
29310
29292
|
}
|
|
29311
29293
|
|
|
29312
29294
|
const startLoc = this.state.startLoc;
|
|
@@ -29330,10 +29312,9 @@ var ExpressionParser = class extends LValParser {
|
|
|
29330
29312
|
|
|
29331
29313
|
parseExprSubscripts(refExpressionErrors) {
|
|
29332
29314
|
const startLoc = this.state.startLoc;
|
|
29333
|
-
const potentialArrowAt = this.state.potentialArrowAt;
|
|
29334
29315
|
const expr = this.parseExprAtom(refExpressionErrors);
|
|
29335
29316
|
|
|
29336
|
-
if (this.shouldExitDescending(expr
|
|
29317
|
+
if (this.shouldExitDescending(expr)) {
|
|
29337
29318
|
return expr;
|
|
29338
29319
|
}
|
|
29339
29320
|
|
|
@@ -29501,7 +29482,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
29501
29482
|
&& this.state.lastTokEndLoc.index === base.end
|
|
29502
29483
|
&& !this.canInsertSemicolon()
|
|
29503
29484
|
&& base.end - base.start === 5
|
|
29504
|
-
&& this.
|
|
29485
|
+
&& this.state.canStartArrow;
|
|
29505
29486
|
}
|
|
29506
29487
|
|
|
29507
29488
|
finishCallExpression(node, optional) {
|
|
@@ -29523,9 +29504,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
29523
29504
|
parseCallExpressionArguments(allowPlaceholder, nodeForExtra, refExpressionErrors) {
|
|
29524
29505
|
const elts = [];
|
|
29525
29506
|
let first = true;
|
|
29526
|
-
const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
|
|
29527
29507
|
|
|
29528
|
-
this.state.inFSharpPipelineDirectBody = false;
|
|
29529
29508
|
while (!this.eat(7)) {
|
|
29530
29509
|
if (first) {
|
|
29531
29510
|
first = false;
|
|
@@ -29550,7 +29529,6 @@ var ExpressionParser = class extends LValParser {
|
|
|
29550
29529
|
));
|
|
29551
29530
|
}
|
|
29552
29531
|
|
|
29553
|
-
this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
|
|
29554
29532
|
return elts;
|
|
29555
29533
|
}
|
|
29556
29534
|
|
|
@@ -29638,10 +29616,8 @@ var ExpressionParser = class extends LValParser {
|
|
|
29638
29616
|
case 82:
|
|
29639
29617
|
return this.parseBooleanLiteral(false);
|
|
29640
29618
|
|
|
29641
|
-
case 6:
|
|
29642
|
-
|
|
29643
|
-
return this.parseParenAndDistinguishExpression(canBeArrow);
|
|
29644
|
-
}
|
|
29619
|
+
case 6:
|
|
29620
|
+
return this.parseParenAndDistinguishExpression(this.state.canStartArrow);
|
|
29645
29621
|
|
|
29646
29622
|
case 0:
|
|
29647
29623
|
return this.parseArrayLike(1, refExpressionErrors);
|
|
@@ -29722,8 +29698,8 @@ var ExpressionParser = class extends LValParser {
|
|
|
29722
29698
|
return this.parseModuleExpression();
|
|
29723
29699
|
}
|
|
29724
29700
|
|
|
29725
|
-
const
|
|
29726
|
-
|
|
29701
|
+
const {canStartArrow, containsEsc} = this.state;
|
|
29702
|
+
|
|
29727
29703
|
const id = this.parseIdentifier();
|
|
29728
29704
|
|
|
29729
29705
|
if (!containsEsc && id.name === 'async' && !this.canInsertSemicolon()) {
|
|
@@ -29734,7 +29710,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
29734
29710
|
this.next();
|
|
29735
29711
|
return this.parseAsyncFunctionExpression(this.startNodeAtNode(id));
|
|
29736
29712
|
} else if (tokenIsIdentifier(type2)) {
|
|
29737
|
-
if (this.lookaheadCharCode() === 61) {
|
|
29713
|
+
if (canStartArrow && this.lookaheadCharCode() === 61) {
|
|
29738
29714
|
return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(id));
|
|
29739
29715
|
} else {
|
|
29740
29716
|
return id;
|
|
@@ -29746,7 +29722,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
29746
29722
|
|
|
29747
29723
|
}
|
|
29748
29724
|
|
|
29749
|
-
if (
|
|
29725
|
+
if (canStartArrow && this.match(15) && !this.canInsertSemicolon()) {
|
|
29750
29726
|
this.next();
|
|
29751
29727
|
return this.parseArrowExpression(this.startNodeAtNode(id), [id], false);
|
|
29752
29728
|
}
|
|
@@ -29994,14 +29970,11 @@ var ExpressionParser = class extends LValParser {
|
|
|
29994
29970
|
return this.finishNode(node, 'NullLiteral');
|
|
29995
29971
|
}
|
|
29996
29972
|
|
|
29997
|
-
parseParenAndDistinguishExpression(
|
|
29973
|
+
parseParenAndDistinguishExpression(canStartArrow) {
|
|
29998
29974
|
const startLoc = this.state.startLoc;
|
|
29999
29975
|
let val;
|
|
30000
29976
|
this.next();
|
|
30001
29977
|
this.expressionScope.enter(newArrowHeadScope());
|
|
30002
|
-
const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
|
|
30003
|
-
|
|
30004
|
-
this.state.inFSharpPipelineDirectBody = false;
|
|
30005
29978
|
const innerStartLoc = this.state.startLoc;
|
|
30006
29979
|
const exprList = [];
|
|
30007
29980
|
const refExpressionErrors = new ExpressionErrors();
|
|
@@ -30044,10 +30017,9 @@ var ExpressionParser = class extends LValParser {
|
|
|
30044
30017
|
|
|
30045
30018
|
const innerEndLoc = this.state.lastTokEndLoc;
|
|
30046
30019
|
this.expect(7);
|
|
30047
|
-
this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
|
|
30048
30020
|
let arrowNode = this.startNodeAt(startLoc);
|
|
30049
30021
|
|
|
30050
|
-
if (
|
|
30022
|
+
if (canStartArrow && this.shouldParseArrow(exprList) && (arrowNode = this.parseArrow(arrowNode))) {
|
|
30051
30023
|
this.checkDestructuringPrivate(refExpressionErrors);
|
|
30052
30024
|
this.expressionScope.validateAsPattern();
|
|
30053
30025
|
this.expressionScope.exit();
|
|
@@ -30211,9 +30183,6 @@ var ExpressionParser = class extends LValParser {
|
|
|
30211
30183
|
}
|
|
30212
30184
|
|
|
30213
30185
|
parseObjectLike(close, isPattern3, refExpressionErrors) {
|
|
30214
|
-
const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
|
|
30215
|
-
|
|
30216
|
-
this.state.inFSharpPipelineDirectBody = false;
|
|
30217
30186
|
let sawProto = false;
|
|
30218
30187
|
let first = true;
|
|
30219
30188
|
const node = this.startNode();
|
|
@@ -30245,7 +30214,6 @@ var ExpressionParser = class extends LValParser {
|
|
|
30245
30214
|
}
|
|
30246
30215
|
|
|
30247
30216
|
this.next();
|
|
30248
|
-
this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
|
|
30249
30217
|
const type = isPattern3 ? 'ObjectPattern' : 'ObjectExpression';
|
|
30250
30218
|
|
|
30251
30219
|
return this.finishNode(node, type);
|
|
@@ -30493,13 +30461,9 @@ var ExpressionParser = class extends LValParser {
|
|
|
30493
30461
|
}
|
|
30494
30462
|
|
|
30495
30463
|
parseArrayLike(close, refExpressionErrors) {
|
|
30496
|
-
const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
|
|
30497
|
-
|
|
30498
|
-
this.state.inFSharpPipelineDirectBody = false;
|
|
30499
30464
|
const node = this.startNode();
|
|
30500
30465
|
this.next();
|
|
30501
30466
|
node.elements = this.parseExprList(close, true, refExpressionErrors, node);
|
|
30502
|
-
this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
|
|
30503
30467
|
return this.finishNode(node, 'ArrayExpression');
|
|
30504
30468
|
}
|
|
30505
30469
|
|
|
@@ -30507,8 +30471,8 @@ var ExpressionParser = class extends LValParser {
|
|
|
30507
30471
|
this.scope.enter(514 | 4);
|
|
30508
30472
|
let flags = functionFlags(isAsync, false);
|
|
30509
30473
|
|
|
30510
|
-
if (!this.match(2)
|
|
30511
|
-
flags |= 8;
|
|
30474
|
+
if (!this.match(2)) {
|
|
30475
|
+
flags |= this.prodParam.currentFlags() & (8 | 16);
|
|
30512
30476
|
}
|
|
30513
30477
|
|
|
30514
30478
|
this.prodParam.enter(flags);
|
|
@@ -30756,7 +30720,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
30756
30720
|
return isAwaitAllowed;
|
|
30757
30721
|
}
|
|
30758
30722
|
|
|
30759
|
-
parseAwait(startLoc) {
|
|
30723
|
+
parseAwait(startLoc, soloAwait) {
|
|
30760
30724
|
const node = this.startNodeAt(startLoc);
|
|
30761
30725
|
this.expressionScope.recordParameterInitializerError(Errors.AwaitExpressionFormalParameter, node);
|
|
30762
30726
|
|
|
@@ -30772,7 +30736,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
30772
30736
|
}
|
|
30773
30737
|
}
|
|
30774
30738
|
|
|
30775
|
-
if (!
|
|
30739
|
+
if (!soloAwait) {
|
|
30776
30740
|
node.argument = this.parseMaybeUnary(null, true);
|
|
30777
30741
|
}
|
|
30778
30742
|
|
|
@@ -30869,23 +30833,12 @@ var ExpressionParser = class extends LValParser {
|
|
|
30869
30833
|
}
|
|
30870
30834
|
}
|
|
30871
30835
|
|
|
30872
|
-
withSoloAwaitPermittingContext(callback) {
|
|
30873
|
-
const outerContextSoloAwaitState = this.state.soloAwait;
|
|
30874
|
-
|
|
30875
|
-
this.state.soloAwait = true;
|
|
30876
|
-
try {
|
|
30877
|
-
return callback();
|
|
30878
|
-
} finally {
|
|
30879
|
-
this.state.soloAwait = outerContextSoloAwaitState;
|
|
30880
|
-
}
|
|
30881
|
-
}
|
|
30882
|
-
|
|
30883
30836
|
allowInAnd(callback) {
|
|
30884
30837
|
const flags = this.prodParam.currentFlags();
|
|
30885
|
-
const prodParamToSet = 8 & ~flags;
|
|
30838
|
+
const prodParamToSet = (8 | 16) & ~flags;
|
|
30886
30839
|
|
|
30887
30840
|
if (prodParamToSet) {
|
|
30888
|
-
this.prodParam.enter(flags | 8);
|
|
30841
|
+
this.prodParam.enter(flags | 8 | 16);
|
|
30889
30842
|
try {
|
|
30890
30843
|
return callback();
|
|
30891
30844
|
} finally {
|
|
@@ -30899,9 +30852,10 @@ var ExpressionParser = class extends LValParser {
|
|
|
30899
30852
|
disallowInAnd(callback) {
|
|
30900
30853
|
const flags = this.prodParam.currentFlags();
|
|
30901
30854
|
const prodParamToClear = 8 & flags;
|
|
30855
|
+
const prodParamToSet = 16 & ~flags;
|
|
30902
30856
|
|
|
30903
|
-
if (prodParamToClear) {
|
|
30904
|
-
this.prodParam.enter(flags & ~8);
|
|
30857
|
+
if (prodParamToClear || prodParamToSet) {
|
|
30858
|
+
this.prodParam.enter(flags & ~8 | 16);
|
|
30905
30859
|
try {
|
|
30906
30860
|
return callback();
|
|
30907
30861
|
} finally {
|
|
@@ -30926,14 +30880,23 @@ var ExpressionParser = class extends LValParser {
|
|
|
30926
30880
|
|
|
30927
30881
|
parseFSharpPipelineBody(prec) {
|
|
30928
30882
|
const startLoc = this.state.startLoc;
|
|
30883
|
+
this.prodParam.enter(this.prodParam.currentFlags() & ~16);
|
|
30884
|
+
let ret;
|
|
30929
30885
|
|
|
30930
|
-
this.
|
|
30931
|
-
|
|
30932
|
-
|
|
30933
|
-
|
|
30934
|
-
|
|
30886
|
+
if (this.isContextual(92) && this.recordAwaitIfAllowed()) {
|
|
30887
|
+
this.next();
|
|
30888
|
+
ret = this.parseAwait(startLoc, true);
|
|
30889
|
+
const nextOp = this.state.type;
|
|
30890
|
+
|
|
30891
|
+
if (tokenIsOperator(nextOp) && nextOp !== 35 && (this.prodParam.hasIn || nextOp !== 54)) {
|
|
30892
|
+
this.raise(Errors.PipelineUnparenthesized, startLoc);
|
|
30893
|
+
}
|
|
30894
|
+
} else {
|
|
30895
|
+
this.state.canStartArrow = true;
|
|
30896
|
+
ret = this.parseExprOp(this.parseMaybeUnaryOrPrivate(), startLoc, prec);
|
|
30897
|
+
}
|
|
30935
30898
|
|
|
30936
|
-
this.
|
|
30899
|
+
this.prodParam.exit();
|
|
30937
30900
|
return ret;
|
|
30938
30901
|
}
|
|
30939
30902
|
|
|
@@ -31478,6 +31441,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
31478
31441
|
node.expression = this.parseMaybeDecoratorArguments(expr, startLoc);
|
|
31479
31442
|
}
|
|
31480
31443
|
} else {
|
|
31444
|
+
this.state.canStartArrow = false;
|
|
31481
31445
|
node.expression = this.parseExprSubscripts();
|
|
31482
31446
|
}
|
|
31483
31447
|
|
|
@@ -32154,8 +32118,14 @@ var StatementParser = class extends ExpressionParser {
|
|
|
32154
32118
|
|
|
32155
32119
|
this.parseClassMember(classBody2, member, state);
|
|
32156
32120
|
|
|
32157
|
-
if (member.
|
|
32158
|
-
this.
|
|
32121
|
+
if (member.decorators && member.decorators.length > 0) {
|
|
32122
|
+
if (this.hasPlugin('typescript') && (this.hasPlugin('estree') ? member.type === 'TSAbstractMethodDefinition' : member.type === 'TSDeclareMethod')) {
|
|
32123
|
+
this.raise(Errors.DecoratorAbstractMethod, member);
|
|
32124
|
+
}
|
|
32125
|
+
|
|
32126
|
+
if (member.kind === 'constructor') {
|
|
32127
|
+
this.raise(Errors.DecoratorConstructor, member);
|
|
32128
|
+
}
|
|
32159
32129
|
}
|
|
32160
32130
|
}
|
|
32161
32131
|
|
|
@@ -32482,7 +32452,12 @@ var StatementParser = class extends ExpressionParser {
|
|
|
32482
32452
|
}
|
|
32483
32453
|
|
|
32484
32454
|
parseClassSuper(node) {
|
|
32485
|
-
|
|
32455
|
+
if (this.eat(77)) {
|
|
32456
|
+
this.state.canStartArrow = false;
|
|
32457
|
+
node.superClass = this.parseExprSubscripts();
|
|
32458
|
+
} else {
|
|
32459
|
+
node.superClass = null;
|
|
32460
|
+
}
|
|
32486
32461
|
}
|
|
32487
32462
|
|
|
32488
32463
|
parseExport(node, decorators) {
|
|
@@ -34367,7 +34342,7 @@ function parseAndBuildMetadata(formatter, code2, opts) {
|
|
|
34367
34342
|
const {
|
|
34368
34343
|
placeholderWhitelist,
|
|
34369
34344
|
placeholderPattern,
|
|
34370
|
-
preserveComments,
|
|
34345
|
+
preserveComments = false,
|
|
34371
34346
|
syntacticPlaceholders,
|
|
34372
34347
|
} = opts;
|
|
34373
34348
|
|
|
@@ -37658,7 +37633,7 @@ function TSDeclareFunction2(node, parent) {
|
|
|
37658
37633
|
}
|
|
37659
37634
|
|
|
37660
37635
|
function TSDeclareMethod2(node) {
|
|
37661
|
-
_classMethodHead.call(this, node);
|
|
37636
|
+
_classMethodHead.call(this, node, false);
|
|
37662
37637
|
this.semicolon();
|
|
37663
37638
|
}
|
|
37664
37639
|
|
|
@@ -39707,8 +39682,10 @@ function ClassPrivateMethod2(node) {
|
|
|
39707
39682
|
this.print(node.body);
|
|
39708
39683
|
}
|
|
39709
39684
|
|
|
39710
|
-
function _classMethodHead(node) {
|
|
39711
|
-
|
|
39685
|
+
function _classMethodHead(node, allowDecorators = true) {
|
|
39686
|
+
if (allowDecorators) {
|
|
39687
|
+
this.printJoin(node.decorators);
|
|
39688
|
+
}
|
|
39712
39689
|
|
|
39713
39690
|
if (!this.format.preserveFormat) {
|
|
39714
39691
|
const endLine = node.key.loc?.end?.line;
|
|
@@ -46993,7 +46970,7 @@ function isExecutionUncertainInList(paths, maxIndex) {
|
|
|
46993
46970
|
return false;
|
|
46994
46971
|
}
|
|
46995
46972
|
|
|
46996
|
-
var SYMBOL_CHECKING = Symbol();
|
|
46973
|
+
var SYMBOL_CHECKING = /* @__PURE__ */Symbol();
|
|
46997
46974
|
|
|
46998
46975
|
function _guessExecutionStatusRelativeTo(target) {
|
|
46999
46976
|
return _guessExecutionStatusRelativeToCached(this, target, /* @__PURE__ */new Map());
|
package/bundle/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js":{"bytes":13639,"imports":[],"format":"esm"},"../babel-babel/packages/babel-helper-string-parser/lib/index.js":{"bytes":7680,"imports":[],"format":"esm"},"../babel-babel/packages/babel-types/lib/index.js":{"bytes":
|
|
1
|
+
{"inputs":{"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js":{"bytes":13639,"imports":[],"format":"esm"},"../babel-babel/packages/babel-helper-string-parser/lib/index.js":{"bytes":7680,"imports":[],"format":"esm"},"../babel-babel/packages/babel-types/lib/index.js":{"bytes":352299,"imports":[{"path":"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js","kind":"import-statement","original":"@babel/helper-validator-identifier"},{"path":"../babel-babel/packages/babel-helper-string-parser/lib/index.js","kind":"import-statement","original":"@babel/helper-string-parser"}],"format":"esm"},"../babel-babel/packages/babel-parser/lib/index.js":{"bytes":481355,"imports":[],"format":"esm"},"../babel-babel/packages/babel-code-frame/lib/common-BO7XIBW3.js":{"bytes":3594,"imports":[],"format":"esm"},"../babel-babel/node_modules/js-tokens/index.js":{"bytes":12672,"imports":[],"format":"esm"},"../babel-babel/packages/babel-code-frame/lib/index.js":{"bytes":4080,"imports":[{"path":"../babel-babel/packages/babel-code-frame/lib/common-BO7XIBW3.js","kind":"import-statement","original":"./common-BO7XIBW3.js"},{"path":"util","kind":"import-statement","external":true},{"path":"../babel-babel/node_modules/js-tokens/index.js","kind":"import-statement","original":"js-tokens"},{"path":"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js","kind":"import-statement","original":"@babel/helper-validator-identifier"}],"format":"esm"},"../babel-babel/packages/babel-template/lib/index.js":{"bytes":16579,"imports":[{"path":"../babel-babel/packages/babel-types/lib/index.js","kind":"import-statement","original":"@babel/types"},{"path":"../babel-babel/packages/babel-parser/lib/index.js","kind":"import-statement","original":"@babel/parser"},{"path":"../babel-babel/packages/babel-code-frame/lib/index.js","kind":"import-statement","original":"@babel/code-frame"}],"format":"esm"},"../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs":{"bytes":12869,"imports":[],"format":"esm"},"../babel-babel/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs":{"bytes":8609,"imports":[],"format":"esm"},"../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs":{"bytes":15571,"imports":[{"path":"../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs","kind":"import-statement","original":"@jridgewell/sourcemap-codec"},{"path":"../babel-babel/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs","kind":"import-statement","original":"@jridgewell/resolve-uri"}],"format":"esm"},"../babel-babel/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs":{"bytes":7969,"imports":[{"path":"../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs","kind":"import-statement","original":"@jridgewell/sourcemap-codec"},{"path":"../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs","kind":"import-statement","original":"@jridgewell/trace-mapping"}],"format":"esm"},"../babel-babel/node_modules/jsesc/jsesc.js":{"bytes":8104,"imports":[],"format":"cjs"},"../babel-babel/packages/babel-generator/lib/index.js":{"bytes":128325,"imports":[{"path":"../babel-babel/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs","kind":"import-statement","original":"@jridgewell/gen-mapping"},{"path":"../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs","kind":"import-statement","original":"@jridgewell/trace-mapping"},{"path":"../babel-babel/packages/babel-types/lib/index.js","kind":"import-statement","original":"@babel/types"},{"path":"../babel-babel/node_modules/jsesc/jsesc.js","kind":"import-statement","original":"jsesc"}],"format":"esm"},"../babel-babel/node_modules/obug/dist/core.js":{"bytes":3557,"imports":[],"format":"esm"},"../babel-babel/node_modules/obug/dist/node.js":{"bytes":3091,"imports":[{"path":"../babel-babel/node_modules/obug/dist/core.js","kind":"import-statement","original":"./core.js"},{"path":"tty","kind":"import-statement","external":true},{"path":"util","kind":"import-statement","external":true}],"format":"esm"},"../babel-babel/packages/babel-helper-globals/data/builtin-lower.json":{"bytes":203,"imports":[],"format":"esm","with":{"type":"json"}},"../babel-babel/packages/babel-helper-globals/data/builtin-upper.json":{"bytes":718,"imports":[],"format":"esm","with":{"type":"json"}},"../babel-babel/packages/babel-traverse/lib/index.js":{"bytes":152692,"imports":[{"path":"../babel-babel/node_modules/obug/dist/node.js","kind":"import-statement","original":"obug"},{"path":"../babel-babel/packages/babel-code-frame/lib/index.js","kind":"import-statement","original":"@babel/code-frame"},{"path":"../babel-babel/packages/babel-types/lib/index.js","kind":"import-statement","original":"@babel/types"},{"path":"../babel-babel/packages/babel-parser/lib/index.js","kind":"import-statement","original":"@babel/parser"},{"path":"../babel-babel/packages/babel-helper-globals/data/builtin-lower.json","kind":"import-statement","original":"@babel/helper-globals/data/builtin-lower.json","with":{"type":"json"}},{"path":"../babel-babel/packages/babel-helper-globals/data/builtin-upper.json","kind":"import-statement","original":"@babel/helper-globals/data/builtin-upper.json","with":{"type":"json"}},{"path":"../babel-babel/packages/babel-generator/lib/index.js","kind":"import-statement","original":"@babel/generator"},{"path":"../babel-babel/packages/babel-template/lib/index.js","kind":"import-statement","original":"@babel/template"}],"format":"esm"},"lib/index.js":{"bytes":300,"imports":[{"path":"../babel-babel/packages/babel-template/lib/index.js","kind":"import-statement","original":"@babel/template"},{"path":"../babel-babel/packages/babel-generator/lib/index.js","kind":"import-statement","original":"@babel/generator"},{"path":"../babel-babel/packages/babel-types/lib/index.js","kind":"import-statement","original":"@babel/types"},{"path":"../babel-babel/packages/babel-traverse/lib/index.js","kind":"import-statement","original":"@babel/traverse"},{"path":"../babel-babel/packages/babel-parser/lib/index.js","kind":"import-statement","original":"@babel/parser"},{"path":"../babel-babel/packages/babel-code-frame/lib/index.js","kind":"import-statement","original":"@babel/code-frame"}],"format":"esm"}},"outputs":{"bundle/index.js":{"imports":[{"path":"util","kind":"import-statement","external":true},{"path":"tty","kind":"import-statement","external":true},{"path":"util","kind":"import-statement","external":true}],"exports":["codeFrameColumns","generate","parse","parseExpression","template","tokTypes","traverse","types"],"entryPoint":"lib/index.js","inputs":{"../babel-babel/node_modules/jsesc/jsesc.js":{"bytesInOutput":8976},"../babel-babel/packages/babel-types/lib/index.js":{"bytesInOutput":383585},"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js":{"bytesInOutput":13192},"../babel-babel/packages/babel-helper-string-parser/lib/index.js":{"bytesInOutput":7645},"../babel-babel/packages/babel-parser/lib/index.js":{"bytesInOutput":481136},"../babel-babel/packages/babel-code-frame/lib/common-BO7XIBW3.js":{"bytesInOutput":3540},"../babel-babel/packages/babel-code-frame/lib/index.js":{"bytesInOutput":3834},"../babel-babel/node_modules/js-tokens/index.js":{"bytesInOutput":14697},"../babel-babel/packages/babel-template/lib/index.js":{"bytesInOutput":16926},"../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs":{"bytesInOutput":4609},"../babel-babel/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs":{"bytesInOutput":4373},"../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs":{"bytesInOutput":5805},"../babel-babel/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs":{"bytesInOutput":5767},"../babel-babel/packages/babel-generator/lib/index.js":{"bytesInOutput":129088},"lib/index.js":{"bytesInOutput":0},"../babel-babel/node_modules/obug/dist/core.js":{"bytesInOutput":3434},"../babel-babel/node_modules/obug/dist/node.js":{"bytesInOutput":2805},"../babel-babel/packages/babel-helper-globals/data/builtin-lower.json":{"bytesInOutput":232},"../babel-babel/packages/babel-helper-globals/data/builtin-upper.json":{"bytesInOutput":747},"../babel-babel/packages/babel-traverse/lib/index.js":{"bytesInOutput":154505}},"bytes":1247817}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/babel",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Babel 8 bundled",
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
"@swc/core": "^1.3.101",
|
|
58
58
|
"@types/node": "^25.0.6",
|
|
59
59
|
"acorn-stage3": "^4.0.0",
|
|
60
|
-
"c8": "^10.1.2",
|
|
61
60
|
"check-dts": "^0.9.0",
|
|
62
|
-
"eslint": "^
|
|
61
|
+
"eslint": "^10.0.2",
|
|
63
62
|
"eslint-plugin-n": "^17.9.0",
|
|
64
63
|
"eslint-plugin-putout": "^29.4.0",
|
|
65
64
|
"globals": "^17.0.0",
|
|
66
|
-
"madrun": "^
|
|
65
|
+
"madrun": "^13.0.0",
|
|
67
66
|
"nodemon": "^3.0.1",
|
|
68
|
-
"putout": "^
|
|
67
|
+
"putout": "^42.0.23",
|
|
68
|
+
"superc8": "^12.1.2",
|
|
69
69
|
"supertape": "^12.0.12",
|
|
70
70
|
"tsup": "^8.0.1",
|
|
71
71
|
"typescript": "^5.2.2"
|