@putout/babel 5.2.12 → 5.2.14

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 CHANGED
@@ -6,6 +6,8 @@
6
6
  Pre-builts of [Babel 8](https://github.com/babel/babel/releases/tag/v8.0.0-rc.1).
7
7
 
8
8
  Includes:
9
+ - [`fix: properly handle await in finally`](https://github.com/babel/babel/pull/17797);
10
+ - [`fix: preserve trailing comma in optional call args`](https://github.com/babel/babel/pull/17781);
9
11
  - [`remove deprecated default export from @babel/code-frame`](https://github.com/babel/babel/pull/17772);
10
12
  - [`clean up unused error message`](https://github.com/babel/babel/pull/17764);
11
13
 
package/bundle/index.js CHANGED
@@ -18564,14 +18564,6 @@ var estree = (superClass) => class ESTreeParserMixin extends superClass {
18564
18564
  return node;
18565
18565
  }
18566
18566
 
18567
- toReferencedArguments(node) {
18568
- if (node.type === 'ImportExpression') {
18569
- return;
18570
- }
18571
-
18572
- super.toReferencedArguments(node);
18573
- }
18574
-
18575
18567
  parseExport(unfinished, decorators) {
18576
18568
  const exportStartLoc = this.state.lastTokStartLoc;
18577
18569
  const node = super.parseExport(unfinished, decorators);
@@ -21095,7 +21087,7 @@ var jsx = (superClass) => class JSXParserMixin extends superClass {
21095
21087
 
21096
21088
  do {
21097
21089
  ch = this.input.charCodeAt(++this.state.pos);
21098
- } while (isIdentifierChar2(ch) || ch === 45)
21090
+ } while (isIdentifierChar2(ch) || ch === 45);
21099
21091
  this.finishToken(136, this.input.slice(start, this.state.pos));
21100
21092
  }
21101
21093
 
@@ -21854,7 +21846,7 @@ var CommentsParser = class extends BaseParser {
21854
21846
  };
21855
21847
 
21856
21848
  var State = class _State {
21857
- flags = 1024;
21849
+ flags = 512;
21858
21850
  get strict() {
21859
21851
  return (this.flags & 1) > 0;
21860
21852
  }
@@ -21884,107 +21876,96 @@ var State = class _State {
21884
21876
  potentialArrowAt = -1;
21885
21877
  noArrowAt = [];
21886
21878
  noArrowParamsConversionAt = [];
21887
- get maybeInArrowParameters() {
21879
+ get inType() {
21888
21880
  return (this.flags & 2) > 0;
21889
21881
  }
21890
21882
 
21891
- set maybeInArrowParameters(v) {
21883
+ set inType(v) {
21892
21884
  if (v)
21893
21885
  this.flags |= 2;
21894
21886
  else
21895
21887
  this.flags &= -3;
21896
21888
  }
21897
21889
 
21898
- get inType() {
21890
+ get noAnonFunctionType() {
21899
21891
  return (this.flags & 4) > 0;
21900
21892
  }
21901
21893
 
21902
- set inType(v) {
21894
+ set noAnonFunctionType(v) {
21903
21895
  if (v)
21904
21896
  this.flags |= 4;
21905
21897
  else
21906
21898
  this.flags &= -5;
21907
21899
  }
21908
21900
 
21909
- get noAnonFunctionType() {
21901
+ get hasFlowComment() {
21910
21902
  return (this.flags & 8) > 0;
21911
21903
  }
21912
21904
 
21913
- set noAnonFunctionType(v) {
21905
+ set hasFlowComment(v) {
21914
21906
  if (v)
21915
21907
  this.flags |= 8;
21916
21908
  else
21917
21909
  this.flags &= -9;
21918
21910
  }
21919
21911
 
21920
- get hasFlowComment() {
21912
+ get isAmbientContext() {
21921
21913
  return (this.flags & 16) > 0;
21922
21914
  }
21923
21915
 
21924
- set hasFlowComment(v) {
21916
+ set isAmbientContext(v) {
21925
21917
  if (v)
21926
21918
  this.flags |= 16;
21927
21919
  else
21928
21920
  this.flags &= -17;
21929
21921
  }
21930
21922
 
21931
- get isAmbientContext() {
21923
+ get inAbstractClass() {
21932
21924
  return (this.flags & 32) > 0;
21933
21925
  }
21934
21926
 
21935
- set isAmbientContext(v) {
21927
+ set inAbstractClass(v) {
21936
21928
  if (v)
21937
21929
  this.flags |= 32;
21938
21930
  else
21939
21931
  this.flags &= -33;
21940
21932
  }
21941
21933
 
21942
- get inAbstractClass() {
21934
+ get inDisallowConditionalTypesContext() {
21943
21935
  return (this.flags & 64) > 0;
21944
21936
  }
21945
21937
 
21946
- set inAbstractClass(v) {
21938
+ set inDisallowConditionalTypesContext(v) {
21947
21939
  if (v)
21948
21940
  this.flags |= 64;
21949
21941
  else
21950
21942
  this.flags &= -65;
21951
21943
  }
21952
21944
 
21953
- get inDisallowConditionalTypesContext() {
21954
- return (this.flags & 128) > 0;
21955
- }
21956
-
21957
- set inDisallowConditionalTypesContext(v) {
21958
- if (v)
21959
- this.flags |= 128;
21960
- else
21961
- this.flags &= -129;
21962
- }
21963
-
21964
21945
  topicContext = {
21965
21946
  maxNumOfResolvableTopics: 0,
21966
21947
  maxTopicIndex: null,
21967
21948
  };
21968
21949
  get soloAwait() {
21969
- return (this.flags & 256) > 0;
21950
+ return (this.flags & 128) > 0;
21970
21951
  }
21971
21952
 
21972
21953
  set soloAwait(v) {
21973
21954
  if (v)
21974
- this.flags |= 256;
21955
+ this.flags |= 128;
21975
21956
  else
21976
- this.flags &= -257;
21957
+ this.flags &= -129;
21977
21958
  }
21978
21959
 
21979
21960
  get inFSharpPipelineDirectBody() {
21980
- return (this.flags & 512) > 0;
21961
+ return (this.flags & 256) > 0;
21981
21962
  }
21982
21963
 
21983
21964
  set inFSharpPipelineDirectBody(v) {
21984
21965
  if (v)
21985
- this.flags |= 512;
21966
+ this.flags |= 256;
21986
21967
  else
21987
- this.flags &= -513;
21968
+ this.flags &= -257;
21988
21969
  }
21989
21970
 
21990
21971
  labels = [];
@@ -21999,37 +21980,37 @@ var State = class _State {
21999
21980
  lastTokStartLoc = null;
22000
21981
  context = [types.brace];
22001
21982
  get canStartJSXElement() {
22002
- return (this.flags & 1024) > 0;
21983
+ return (this.flags & 512) > 0;
22003
21984
  }
22004
21985
 
22005
21986
  set canStartJSXElement(v) {
22006
21987
  if (v)
22007
- this.flags |= 1024;
21988
+ this.flags |= 512;
22008
21989
  else
22009
- this.flags &= -1025;
21990
+ this.flags &= -513;
22010
21991
  }
22011
21992
 
22012
21993
  get containsEsc() {
22013
- return (this.flags & 2048) > 0;
21994
+ return (this.flags & 1024) > 0;
22014
21995
  }
22015
21996
 
22016
21997
  set containsEsc(v) {
22017
21998
  if (v)
22018
- this.flags |= 2048;
21999
+ this.flags |= 1024;
22019
22000
  else
22020
- this.flags &= -2049;
22001
+ this.flags &= -1025;
22021
22002
  }
22022
22003
 
22023
22004
  firstInvalidTemplateEscapePos = null;
22024
22005
  get hasTopLevelAwait() {
22025
- return (this.flags & 4096) > 0;
22006
+ return (this.flags & 2048) > 0;
22026
22007
  }
22027
22008
 
22028
22009
  set hasTopLevelAwait(v) {
22029
22010
  if (v)
22030
- this.flags |= 4096;
22011
+ this.flags |= 2048;
22031
22012
  else
22032
- this.flags &= -4097;
22013
+ this.flags &= -2049;
22033
22014
  }
22034
22015
 
22035
22016
  strictErrors = /* @__PURE__ */new Map();
@@ -24489,15 +24470,6 @@ var LValParser = class extends NodeUtils {
24489
24470
  return exprList;
24490
24471
  }
24491
24472
 
24492
- toReferencedListDeep(exprList, isParenthesizedExpr) {
24493
- this.toReferencedList(exprList, isParenthesizedExpr);
24494
- for (const expr of exprList) {
24495
- if (expr?.type === 'ArrayExpression') {
24496
- this.toReferencedListDeep(expr.elements);
24497
- }
24498
- }
24499
- }
24500
-
24501
24473
  parseSpread(refExpressionErrors) {
24502
24474
  const node = this.startNode();
24503
24475
  this.next();
@@ -26060,7 +26032,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
26060
26032
 
26061
26033
  do {
26062
26034
  types2.push(parseConstituentType());
26063
- } while (this.eat(operator))
26035
+ } while (this.eat(operator));
26064
26036
  if (types2.length === 1 && !hasLeadingOperator) {
26065
26037
  return types2[0];
26066
26038
  }
@@ -26738,9 +26710,6 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
26738
26710
  if (!this.match(43))
26739
26711
  return;
26740
26712
 
26741
- const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
26742
-
26743
- this.state.maybeInArrowParameters = true;
26744
26713
  const res = this.tsTryParseAndCatch(() => {
26745
26714
  const node = this.startNodeAt(startLoc);
26746
26715
 
@@ -26751,8 +26720,6 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
26751
26720
  return node;
26752
26721
  });
26753
26722
 
26754
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
26755
-
26756
26723
  if (!res)
26757
26724
  return;
26758
26725
 
@@ -27437,7 +27404,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
27437
27404
  if (!this.match(13))
27438
27405
  return expr;
27439
27406
 
27440
- if (this.state.maybeInArrowParameters) {
27407
+ if (refExpressionErrors != null) {
27441
27408
  const nextCh = this.lookaheadCharCode();
27442
27409
 
27443
27410
  if (nextCh === 44 || nextCh === 61 || nextCh === 58 || nextCh === 41) {
@@ -29337,7 +29304,7 @@ var ExpressionParser = class extends LValParser {
29337
29304
  do {
29338
29305
  base = this.parseSubscript(base, startLoc, noCalls, state);
29339
29306
  state.maybeAsyncArrow = false;
29340
- } while (!state.stop)
29307
+ } while (!state.stop);
29341
29308
 
29342
29309
  return base;
29343
29310
  }
@@ -29424,10 +29391,7 @@ var ExpressionParser = class extends LValParser {
29424
29391
  }
29425
29392
 
29426
29393
  parseCoverCallAndAsyncArrowHead(base, startLoc, state, optional) {
29427
- const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
29428
29394
  let refExpressionErrors = null;
29429
-
29430
- this.state.maybeInArrowParameters = true;
29431
29395
  this.next();
29432
29396
  const node = this.startNodeAt(startLoc);
29433
29397
 
@@ -29466,17 +29430,12 @@ var ExpressionParser = class extends LValParser {
29466
29430
  this.expressionScope.exit();
29467
29431
  }
29468
29432
 
29469
- this.toReferencedArguments(finishedNode);
29433
+ this.toReferencedList(node.arguments);
29470
29434
  }
29471
29435
 
29472
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
29473
29436
  return finishedNode;
29474
29437
  }
29475
29438
 
29476
- toReferencedArguments(node, isParenthesizedExpr) {
29477
- this.toReferencedListDeep(node.arguments, isParenthesizedExpr);
29478
- }
29479
-
29480
29439
  parseTaggedTemplateExpression(base, startLoc, state) {
29481
29440
  const node = this.startNodeAt(startLoc);
29482
29441
 
@@ -29995,10 +29954,8 @@ var ExpressionParser = class extends LValParser {
29995
29954
  let val;
29996
29955
  this.next();
29997
29956
  this.expressionScope.enter(newArrowHeadScope());
29998
- const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
29999
29957
  const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
30000
29958
 
30001
- this.state.maybeInArrowParameters = true;
30002
29959
  this.state.inFSharpPipelineDirectBody = false;
30003
29960
  const innerStartLoc = this.state.startLoc;
30004
29961
  const exprList = [];
@@ -30042,7 +29999,6 @@ var ExpressionParser = class extends LValParser {
30042
29999
 
30043
30000
  const innerEndLoc = this.state.lastTokEndLoc;
30044
30001
  this.expect(7);
30045
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
30046
30002
  this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
30047
30003
  let arrowNode = this.startNodeAt(startLoc);
30048
30004
 
@@ -30067,7 +30023,7 @@ var ExpressionParser = class extends LValParser {
30067
30023
  this.unexpected(spreadStartLoc);
30068
30024
 
30069
30025
  this.checkExpressionErrors(refExpressionErrors, true);
30070
- this.toReferencedListDeep(exprList, true);
30026
+ this.toReferencedList(exprList, true);
30071
30027
 
30072
30028
  if (exprList.length > 1) {
30073
30029
  val = this.startNodeAt(innerStartLoc);
@@ -30513,18 +30469,14 @@ var ExpressionParser = class extends LValParser {
30513
30469
 
30514
30470
  this.prodParam.enter(flags);
30515
30471
  this.initFunction(node, isAsync);
30516
- const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
30517
30472
 
30518
30473
  if (params) {
30519
- this.state.maybeInArrowParameters = true;
30520
30474
  this.setArrowFunctionParameters(node, params, trailingCommaLoc);
30521
30475
  }
30522
30476
 
30523
- this.state.maybeInArrowParameters = false;
30524
30477
  this.parseFunctionBody(node, true);
30525
30478
  this.prodParam.exit();
30526
30479
  this.scope.exit();
30527
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
30528
30480
  return this.finishNode(node, 'ArrowFunctionExpression');
30529
30481
  }
30530
30482
 
@@ -30845,7 +30797,7 @@ var ExpressionParser = class extends LValParser {
30845
30797
  if (!this.match(7)) {
30846
30798
  do {
30847
30799
  this.parseMaybeAssignAllowIn();
30848
- } while (this.eat(8) && !this.match(7))
30800
+ } while (this.eat(8) && !this.match(7));
30849
30801
  this.raise(Errors.ImportCallArity, node);
30850
30802
  }
30851
30803
  }
@@ -31427,7 +31379,7 @@ var StatementParser = class extends ExpressionParser {
31427
31379
 
31428
31380
  do {
31429
31381
  decorators.push(this.parseDecorator());
31430
- } while (this.match(22))
31382
+ } while (this.match(22));
31431
31383
  if (this.match(78)) {
31432
31384
  if (!allowExport) {
31433
31385
  this.unexpected();
@@ -32057,9 +32009,6 @@ var StatementParser = class extends ExpressionParser {
32057
32009
  node.id = this.parseFunctionId(requireId);
32058
32010
  }
32059
32011
 
32060
- const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
32061
-
32062
- this.state.maybeInArrowParameters = false;
32063
32012
  this.scope.enter(514);
32064
32013
  this.prodParam.enter(functionFlags(isAsync, node.generator));
32065
32014
 
@@ -32076,7 +32025,6 @@ var StatementParser = class extends ExpressionParser {
32076
32025
  this.registerFunctionStatementId(node);
32077
32026
  }
32078
32027
 
32079
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
32080
32028
  return node;
32081
32029
  }
32082
32030
 
@@ -33065,7 +33013,7 @@ var StatementParser = class extends ExpressionParser {
33065
33013
 
33066
33014
  node.value = this.parseStringLiteral(this.state.value);
33067
33015
  attrs.push(this.finishNode(node, 'ImportAttribute'));
33068
- } while (this.eat(8))
33016
+ } while (this.eat(8));
33069
33017
  this.expect(4);
33070
33018
  return attrs;
33071
33019
  }
@@ -34731,7 +34679,7 @@ function buildLiteralData(formatter, tpl, opts) {
34731
34679
 
34732
34680
  do {
34733
34681
  prefix2 = '$$' + prefix2;
34734
- } while (raw.includes(prefix2))
34682
+ } while (raw.includes(prefix2));
34735
34683
  const {names: names2, code: code2} = buildTemplateCode(tpl, prefix2);
34736
34684
 
34737
34685
  const metadata = parseAndBuildMetadata(formatter, formatter.code(code2), {
@@ -34883,7 +34831,7 @@ function decodeInteger(reader, relative) {
34883
34831
  integer = charToInt[c];
34884
34832
  value |= (integer & 31) << shift;
34885
34833
  shift += 5;
34886
- } while (integer & 32)
34834
+ } while (integer & 32);
34887
34835
  const shouldNegate = value & 1;
34888
34836
 
34889
34837
  value >>>= 1;
@@ -34908,7 +34856,7 @@ function encodeInteger(builder, num, relative) {
34908
34856
  clamped |= 32;
34909
34857
 
34910
34858
  builder.write(intToChar[clamped]);
34911
- } while (delta > 0)
34859
+ } while (delta > 0);
34912
34860
 
34913
34861
  return num;
34914
34862
  }
@@ -35051,7 +34999,7 @@ function decode(mappings) {
35051
34999
 
35052
35000
  decoded.push(line);
35053
35001
  reader.pos = semi + 1;
35054
- } while (reader.pos <= length)
35002
+ } while (reader.pos <= length);
35055
35003
 
35056
35004
  return decoded;
35057
35005
  }
@@ -36776,6 +36724,14 @@ function ConditionalExpression2(node) {
36776
36724
  this.print(node.alternate);
36777
36725
  }
36778
36726
 
36727
+ function _printExpressionArguments(node) {
36728
+ this.tokenChar(40);
36729
+ const oldNoLineTerminatorAfterNode = this.enterDelimited();
36730
+ this.printList(node.arguments, this.shouldPrintTrailingComma(')'), void 0, void 0, void 0, true);
36731
+ this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;
36732
+ this.rightParens(node);
36733
+ }
36734
+
36779
36735
  function NewExpression2(node, parent) {
36780
36736
  this.word('new');
36781
36737
  this.space();
@@ -36791,11 +36747,7 @@ function NewExpression2(node, parent) {
36791
36747
  return;
36792
36748
  }
36793
36749
 
36794
- this.tokenChar(40);
36795
- const oldNoLineTerminatorAfterNode = this.enterDelimited();
36796
- this.printList(node.arguments, this.shouldPrintTrailingComma(')'), void 0, void 0, void 0, true);
36797
- this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;
36798
- this.rightParens(node);
36750
+ _printExpressionArguments.call(this, node);
36799
36751
  }
36800
36752
 
36801
36753
  function SequenceExpression2(node) {
@@ -36862,21 +36814,13 @@ function OptionalCallExpression2(node) {
36862
36814
  }
36863
36815
 
36864
36816
  this.print(node.typeArguments);
36865
- this.tokenChar(40);
36866
- const oldNoLineTerminatorAfterNode = this.enterDelimited();
36867
- this.printList(node.arguments, void 0, void 0, void 0, void 0, true);
36868
- this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;
36869
- this.rightParens(node);
36817
+ _printExpressionArguments.call(this, node);
36870
36818
  }
36871
36819
 
36872
36820
  function CallExpression2(node) {
36873
36821
  this.print(node.callee);
36874
36822
  this.print(node.typeArguments);
36875
- this.tokenChar(40);
36876
- const oldNoLineTerminatorAfterNode = this.enterDelimited();
36877
- this.printList(node.arguments, this.shouldPrintTrailingComma(')'), void 0, void 0, void 0, true);
36878
- this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;
36879
- this.rightParens(node);
36823
+ _printExpressionArguments.call(this, node);
36880
36824
  }
36881
36825
 
36882
36826
  function Import2() {
@@ -43338,7 +43282,7 @@ var Scope2 = class _Scope {
43338
43282
 
43339
43283
  if (path?.isScope())
43340
43284
  parent = path;
43341
- } while (path && !parent)
43285
+ } while (path && !parent);
43342
43286
 
43343
43287
  return parent?.scope;
43344
43288
  }
@@ -43382,7 +43326,7 @@ var Scope2 = class _Scope {
43382
43326
  uid2 += i + 1;
43383
43327
 
43384
43328
  i++;
43385
- } while (this.hasLabel(uid2) || this.hasBinding(uid2) || this.hasGlobal(uid2) || this.hasReference(uid2))
43329
+ } while (this.hasLabel(uid2) || this.hasBinding(uid2) || this.hasGlobal(uid2) || this.hasReference(uid2));
43386
43330
  const program3 = this.getProgramParent();
43387
43331
  program3.referencesSet.add(uid2);
43388
43332
  program3.uidsSet.add(uid2);
@@ -43485,7 +43429,7 @@ var Scope2 = class _Scope {
43485
43429
  kind: binding.kind,
43486
43430
  });
43487
43431
  }
43488
- } while (scope2 = scope2.parent)
43432
+ } while (scope2 = scope2.parent);
43489
43433
  console.log(sep);
43490
43434
  }
43491
43435
 
@@ -43617,7 +43561,7 @@ var Scope2 = class _Scope {
43617
43561
  do {
43618
43562
  if (scope2.globals[name])
43619
43563
  return true;
43620
- } while (scope2 = scope2.parent)
43564
+ } while (scope2 = scope2.parent);
43621
43565
 
43622
43566
  return false;
43623
43567
  }
@@ -43757,7 +43701,7 @@ var Scope2 = class _Scope {
43757
43701
 
43758
43702
  if (data != null)
43759
43703
  return data;
43760
- } while (scope2 = scope2.parent)
43704
+ } while (scope2 = scope2.parent);
43761
43705
  }
43762
43706
 
43763
43707
  removeData(key) {
@@ -43768,7 +43712,7 @@ var Scope2 = class _Scope {
43768
43712
 
43769
43713
  if (data != null)
43770
43714
  scope2.data[key] = null;
43771
- } while (scope2 = scope2.parent)
43715
+ } while (scope2 = scope2.parent);
43772
43716
  }
43773
43717
 
43774
43718
  init() {
@@ -43791,7 +43735,7 @@ var Scope2 = class _Scope {
43791
43735
  if (scope2.path.isProgram()) {
43792
43736
  break;
43793
43737
  }
43794
- } while (scope2 = scope2.parent)
43738
+ } while (scope2 = scope2.parent);
43795
43739
  const programParent = scope2;
43796
43740
 
43797
43741
  const state = {
@@ -43907,7 +43851,7 @@ collectorVisitor]);
43907
43851
  if (scope2.path.isProgram()) {
43908
43852
  return scope2;
43909
43853
  }
43910
- } while (scope2 = scope2.parent)
43854
+ } while (scope2 = scope2.parent);
43911
43855
  throw new Error('Couldn\'t find a Program');
43912
43856
  }
43913
43857
 
@@ -43918,7 +43862,7 @@ collectorVisitor]);
43918
43862
  if (scope2.path.isFunctionParent()) {
43919
43863
  return scope2;
43920
43864
  }
43921
- } while (scope2 = scope2.parent)
43865
+ } while (scope2 = scope2.parent);
43922
43866
 
43923
43867
  return null;
43924
43868
  }
@@ -43930,7 +43874,7 @@ collectorVisitor]);
43930
43874
  if (scope2.path.isBlockParent()) {
43931
43875
  return scope2;
43932
43876
  }
43933
- } while (scope2 = scope2.parent)
43877
+ } while (scope2 = scope2.parent);
43934
43878
  throw new Error('We couldn\'t find a BlockStatement, For, Switch, Function, Loop or Program...');
43935
43879
  }
43936
43880
 
@@ -43941,7 +43885,7 @@ collectorVisitor]);
43941
43885
  if (!scope2.path.isPattern()) {
43942
43886
  return scope2.getBlockParent();
43943
43887
  }
43944
- } while (scope2 = scope2.parent.parent)
43888
+ } while (scope2 = scope2.parent.parent);
43945
43889
  throw new Error('We couldn\'t find a BlockStatement, For, Switch, Function, Loop or Program...');
43946
43890
  }
43947
43891
 
@@ -43957,7 +43901,7 @@ collectorVisitor]);
43957
43901
  }
43958
43902
 
43959
43903
  scope2 = scope2.parent;
43960
- } while (scope2)
43904
+ } while (scope2);
43961
43905
 
43962
43906
  return ids;
43963
43907
  }
@@ -43983,7 +43927,7 @@ collectorVisitor]);
43983
43927
  }
43984
43928
 
43985
43929
  previousPath = scope2.path;
43986
- } while (scope2 = scope2.parent)
43930
+ } while (scope2 = scope2.parent);
43987
43931
  }
43988
43932
 
43989
43933
  getOwnBinding(name) {
@@ -44029,7 +43973,7 @@ collectorVisitor]);
44029
43973
  if (scope2.hasOwnBinding(name)) {
44030
43974
  return true;
44031
43975
  }
44032
- } while (scope2 = scope2.parent)
43976
+ } while (scope2 = scope2.parent);
44033
43977
  if (!noUids && this.hasUid(name))
44034
43978
  return true;
44035
43979
 
@@ -44144,7 +44088,7 @@ function find(callback) {
44144
44088
  do {
44145
44089
  if (callback(path))
44146
44090
  return path;
44147
- } while (path = path.parentPath)
44091
+ } while (path = path.parentPath);
44148
44092
 
44149
44093
  return null;
44150
44094
  }
@@ -44162,7 +44106,7 @@ function getStatementParent() {
44162
44106
  } else {
44163
44107
  path = path.parentPath;
44164
44108
  }
44165
- } while (path)
44109
+ } while (path);
44166
44110
  if (path && (path.isProgram() || path.isFile())) {
44167
44111
  throw new Error('File/Program node, we can\'t possibly find a statement parent to this');
44168
44112
  }
@@ -44219,7 +44163,7 @@ function getDeepestCommonAncestorFrom(paths, filter) {
44219
44163
 
44220
44164
  do {
44221
44165
  ancestry.unshift(path);
44222
- } while ((path = path.parentPath) && path !== this)
44166
+ } while ((path = path.parentPath) && path !== this);
44223
44167
  if (ancestry.length < minDepth) {
44224
44168
  minDepth = ancestry.length;
44225
44169
  }
@@ -44258,7 +44202,7 @@ function getAncestry() {
44258
44202
 
44259
44203
  do {
44260
44204
  paths.push(path);
44261
- } while (path = path.parentPath)
44205
+ } while (path = path.parentPath);
44262
44206
 
44263
44207
  return paths;
44264
44208
  }
@@ -46618,7 +46562,7 @@ var getScopeInformationVisitor = environmentVisitor({
46618
46562
  if (curr.path.isFunction() && !curr.path.isArrowFunctionExpression()) {
46619
46563
  break;
46620
46564
  }
46621
- } while (curr = curr.parent)
46565
+ } while (curr = curr.parent);
46622
46566
  argumentsPaths.push(child);
46623
46567
  },
46624
46568
  MetaProperty(child, {newTargetPaths}) {
@@ -46880,7 +46824,7 @@ function isCompletionRecord(allowInsideFunction) {
46880
46824
  if (Array.isArray(container) && path.key !== container.length - 1) {
46881
46825
  return false;
46882
46826
  }
46883
- } while ((path = path.parentPath) && !path.isProgram() && !path.isDoExpression())
46827
+ } while ((path = path.parentPath) && !path.isProgram() && !path.isDoExpression());
46884
46828
 
46885
46829
  return true;
46886
46830
  }
@@ -47933,7 +47877,7 @@ var NodePath_Final = class NodePath {
47933
47877
  key = `${path.listKey}[${key}]`;
47934
47878
 
47935
47879
  parts.unshift(key);
47936
- } while (path = path.parentPath)
47880
+ } while (path = path.parentPath);
47937
47881
 
47938
47882
  return parts.join('.');
47939
47883
  }
@@ -1 +1 @@
1
- {"inputs":{"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js":{"bytes":13698,"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":352438,"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":482916,"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":16571,"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":128625,"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":383695},"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js":{"bytesInOutput":13255},"../babel-babel/packages/babel-helper-string-parser/lib/index.js":{"bytesInOutput":7645},"../babel-babel/packages/babel-parser/lib/index.js":{"bytesInOutput":482696},"../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":16918},"../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":129367},"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":154489}},"bytes":1249805}}}
1
+ {"inputs":{"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js":{"bytes":13698,"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":352438,"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":481119,"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":16571,"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":128263,"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":383695},"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js":{"bytesInOutput":13255},"../babel-babel/packages/babel-helper-string-parser/lib/index.js":{"bytesInOutput":7645},"../babel-babel/packages/babel-parser/lib/index.js":{"bytesInOutput":480898},"../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":16918},"../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":129026},"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":154489}},"bytes":1247666}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/babel",
3
- "version": "5.2.12",
3
+ "version": "5.2.14",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Babel 8 bundled",