@putout/babel 5.2.4 → 5.2.6

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,8 +6,11 @@
6
6
  Pre-builts of Babel 8.
7
7
 
8
8
  Includes:
9
- - [`Enable strictNullChecks for @babel/core`](https://github.com/babel/babel/pull/7611);
10
- - [`Improve generator performance`](https://github.com/babel/babel/pull/7718);
9
+ - [`Remove smart pipeline support and remove accessor property from Standardized alias`](https://github.com/babel/babel/pull/17732);
10
+ - [`Fix support super method call`](https://github.com/babel/babel/pull/17662);
11
+ - [`Fix hoisting of function declarations in loops and switch`](https://github.com/babel/babel/pull/17691);
12
+ - [`Enable strictNullChecks for @babel/core`](https://github.com/babel/babel/pull/17611);
13
+ - [`Improve generator performance`](https://github.com/babel/babel/pull/17718);
11
14
  - [`generator: cleanup Babel 8 comments`](https://github.com/babel/babel/pull/17659);
12
15
  - [`Remove @babel/plugin-transform-object-assign`](https://github.com/babel/babel/pull/17619);
13
16
 
package/bundle/index.js CHANGED
@@ -7387,6 +7387,14 @@ function validateOptional(validate4) {
7387
7387
  };
7388
7388
  }
7389
7389
 
7390
+ function validateDefault(validate4, defaultValue) {
7391
+ return {
7392
+ validate: validate4,
7393
+ default: defaultValue,
7394
+ optional: false,
7395
+ };
7396
+ }
7397
+
7390
7398
  function validateOptionalType(...typeNames) {
7391
7399
  return {
7392
7400
  validate: assertNodeType(...typeNames),
@@ -7627,6 +7635,12 @@ function defineAliasedType(...aliases) {
7627
7635
 
7628
7636
  function defineType$5(type, opts = {}) {
7629
7637
  const inherits3 = opts.inherits && store[opts.inherits] || {};
7638
+ const visitor = opts.visitor || inherits3.visitor || [];
7639
+ const aliases = opts.aliases || inherits3.aliases || [];
7640
+ const builder = opts.builder
7641
+ || inherits3.builder
7642
+ || opts.visitor
7643
+ || [];
7630
7644
  let fields = opts.fields;
7631
7645
 
7632
7646
  if (!fields) {
@@ -7653,13 +7667,6 @@ function defineType$5(type, opts = {}) {
7653
7667
  }
7654
7668
  }
7655
7669
 
7656
- const visitor = opts.visitor || inherits3.visitor || [];
7657
- const aliases = opts.aliases || inherits3.aliases || [];
7658
- const builder = opts.builder
7659
- || inherits3.builder
7660
- || opts.visitor
7661
- || [];
7662
-
7663
7670
  for (const k of Object.keys(opts)) {
7664
7671
  if (!validTypeOpts.has(k)) {
7665
7672
  throw new Error(`Unknown type option "${k}" on ${type}`);
@@ -7677,12 +7684,13 @@ function defineType$5(type, opts = {}) {
7677
7684
  for (const key of Object.keys(fields)) {
7678
7685
  const field = fields[key];
7679
7686
 
7680
- if (field.default !== void 0 && !builder.includes(key)) {
7681
- field.optional = true;
7687
+ if (field.default === null) {
7688
+ field.optional ??= true;
7682
7689
  }
7683
7690
 
7684
7691
  if (field.default === void 0) {
7685
7692
  field.default = null;
7693
+ field.optional ??= false;
7686
7694
  } else if (!field.validate && field.default != null) {
7687
7695
  field.validate = assertValueType(getType(field.default));
7688
7696
  }
@@ -7743,6 +7751,7 @@ var utils = /* @__PURE__ */Object.freeze({
7743
7751
  defineAliasedType,
7744
7752
  validate: validate$2,
7745
7753
  validateArrayOfType,
7754
+ validateDefault,
7746
7755
  validateOptional,
7747
7756
  validateOptionalType,
7748
7757
  validateType,
@@ -8982,6 +8991,17 @@ defineType$4('ArrowFunctionExpression', {
8982
8991
  ],
8983
8992
  fields: {
8984
8993
  ...functionCommon(),
8994
+ generator: {
8995
+ default: null,
8996
+ optional: true,
8997
+ validate: Object.assign((node, key, val) => {
8998
+ if (val) {
8999
+ throw new TypeError('ArrowFunctionExpression cannot be a generator');
9000
+ }
9001
+ }, {
9002
+ type: 'boolean',
9003
+ }),
9004
+ },
8985
9005
  ...functionTypeAnnotationCommon(),
8986
9006
  expression: {
8987
9007
  validate: assertValueType('boolean'),
@@ -9124,12 +9144,7 @@ var importAttributes = {
9124
9144
  };
9125
9145
 
9126
9146
  defineType$4('ExportAllDeclaration', {
9127
- builder: ['source'],
9128
- visitor: [
9129
- 'source',
9130
- 'attributes',
9131
- 'assertions',
9132
- ],
9147
+ visitor: ['source', 'attributes'],
9133
9148
  aliases: [
9134
9149
  'Statement',
9135
9150
  'Declaration',
@@ -9411,6 +9426,7 @@ defineType$4('MetaProperty', {
9411
9426
  var classMethodOrPropertyCommon = () => ({
9412
9427
  abstract: {
9413
9428
  validate: assertValueType('boolean'),
9429
+ default: false,
9414
9430
  optional: true,
9415
9431
  },
9416
9432
  accessibility: {
@@ -9421,6 +9437,8 @@ var classMethodOrPropertyCommon = () => ({
9421
9437
  default: false,
9422
9438
  },
9423
9439
  override: {
9440
+ optional: true,
9441
+ validate: assertValueType('boolean'),
9424
9442
  default: false,
9425
9443
  },
9426
9444
  computed: {
@@ -10306,7 +10324,7 @@ defineType$3('ObjectTypeCallProperty', {
10306
10324
  aliases: ['UserWhitespacable'],
10307
10325
  fields: {
10308
10326
  value: validateType('FlowType'),
10309
- static: validate$2(assertValueType('boolean')),
10327
+ static: validateDefault(assertValueType('boolean'), false),
10310
10328
  },
10311
10329
  });
10312
10330
  defineType$3('ObjectTypeIndexer', {
@@ -10327,7 +10345,7 @@ defineType$3('ObjectTypeIndexer', {
10327
10345
  id: validateOptionalType('Identifier'),
10328
10346
  key: validateType('FlowType'),
10329
10347
  value: validateType('FlowType'),
10330
- static: validate$2(assertValueType('boolean')),
10348
+ static: validateDefault(assertValueType('boolean'), false),
10331
10349
  variance: validateOptionalType('Variance'),
10332
10350
  },
10333
10351
  });
@@ -10341,12 +10359,16 @@ defineType$3('ObjectTypeProperty', {
10341
10359
  fields: {
10342
10360
  key: validateType('Identifier', 'StringLiteral'),
10343
10361
  value: validateType('FlowType'),
10344
- kind: validate$2(assertOneOf('init', 'get', 'set')),
10345
- static: validate$2(assertValueType('boolean')),
10346
- proto: validate$2(assertValueType('boolean')),
10347
- optional: validate$2(assertValueType('boolean')),
10362
+ kind: {
10363
+ validate: assertOneOf('init', 'get', 'set'),
10364
+ default: 'init',
10365
+ optional: false,
10366
+ },
10367
+ static: validateDefault(assertValueType('boolean'), false),
10368
+ proto: validateDefault(assertValueType('boolean'), false),
10369
+ optional: validateDefault(assertValueType('boolean'), false),
10348
10370
  variance: validateOptionalType('Variance'),
10349
- method: validate$2(assertValueType('boolean')),
10371
+ method: validateDefault(assertValueType('boolean'), false),
10350
10372
  },
10351
10373
  });
10352
10374
  defineType$3('ObjectTypeSpreadProperty', {
@@ -10445,6 +10467,12 @@ defineType$3('TypeCastExpression', {
10445
10467
  },
10446
10468
  });
10447
10469
  defineType$3('TypeParameter', {
10470
+ builder: [
10471
+ 'name',
10472
+ 'bound',
10473
+ 'default',
10474
+ 'variance',
10475
+ ],
10448
10476
  visitor: [
10449
10477
  'bound',
10450
10478
  'default',
@@ -10493,31 +10521,33 @@ defineType$3('EnumDeclaration', {
10493
10521
  body: validateType('EnumBooleanBody', 'EnumNumberBody', 'EnumStringBody', 'EnumSymbolBody'),
10494
10522
  },
10495
10523
  });
10524
+ var enumBodyBase = {
10525
+ explicitType: validateDefault(assertValueType('boolean'), false),
10526
+ hasUnknownMembers: validateDefault(assertValueType('boolean'), false),
10527
+ };
10528
+
10496
10529
  defineType$3('EnumBooleanBody', {
10497
10530
  aliases: ['EnumBody'],
10498
10531
  visitor: ['members'],
10499
10532
  fields: {
10500
- explicitType: validate$2(assertValueType('boolean')),
10533
+ ...enumBodyBase,
10501
10534
  members: validateArrayOfType('EnumBooleanMember'),
10502
- hasUnknownMembers: validate$2(assertValueType('boolean')),
10503
10535
  },
10504
10536
  });
10505
10537
  defineType$3('EnumNumberBody', {
10506
10538
  aliases: ['EnumBody'],
10507
10539
  visitor: ['members'],
10508
10540
  fields: {
10509
- explicitType: validate$2(assertValueType('boolean')),
10541
+ ...enumBodyBase,
10510
10542
  members: validateArrayOfType('EnumNumberMember'),
10511
- hasUnknownMembers: validate$2(assertValueType('boolean')),
10512
10543
  },
10513
10544
  });
10514
10545
  defineType$3('EnumStringBody', {
10515
10546
  aliases: ['EnumBody'],
10516
10547
  visitor: ['members'],
10517
10548
  fields: {
10518
- explicitType: validate$2(assertValueType('boolean')),
10549
+ ...enumBodyBase,
10519
10550
  members: validateArrayOfType('EnumStringMember', 'EnumDefaultedMember'),
10520
- hasUnknownMembers: validate$2(assertValueType('boolean')),
10521
10551
  },
10522
10552
  });
10523
10553
  defineType$3('EnumSymbolBody', {
@@ -10525,12 +10555,11 @@ defineType$3('EnumSymbolBody', {
10525
10555
  visitor: ['members'],
10526
10556
  fields: {
10527
10557
  members: validateArrayOfType('EnumDefaultedMember'),
10528
- hasUnknownMembers: validate$2(assertValueType('boolean')),
10558
+ hasUnknownMembers: validateDefault(assertValueType('boolean'), false),
10529
10559
  },
10530
10560
  });
10531
10561
  defineType$3('EnumBooleanMember', {
10532
10562
  aliases: ['EnumMember'],
10533
- builder: ['id'],
10534
10563
  visitor: ['id', 'init'],
10535
10564
  fields: {
10536
10565
  id: validateType('Identifier'),
@@ -10574,7 +10603,7 @@ defineType$3('OptionalIndexedAccessType', {
10574
10603
  fields: {
10575
10604
  objectType: validateType('FlowType'),
10576
10605
  indexType: validateType('FlowType'),
10577
- optional: validate$2(assertValueType('boolean')),
10606
+ optional: validateDefault(assertValueType('boolean'), false),
10578
10607
  },
10579
10608
  });
10580
10609
  var defineType$2 = defineAliasedType('JSX');
@@ -11015,6 +11044,7 @@ defineType('TSMethodSignature', {
11015
11044
  ...namedTypeElementCommon(),
11016
11045
  kind: {
11017
11046
  validate: assertOneOf('method', 'get', 'set'),
11047
+ default: 'method',
11018
11048
  },
11019
11049
  },
11020
11050
  });
@@ -11403,15 +11433,12 @@ defineType('TSModuleDeclaration', {
11403
11433
  visitor: ['id', 'body'],
11404
11434
  fields: {
11405
11435
  kind: {
11406
- validate: assertOneOf('global', 'module', 'namespace'),
11436
+ validate: assertOneOf('global', 'namespace'),
11437
+ default: 'namespace',
11407
11438
  },
11408
11439
  declare: validateOptional(bool),
11409
11440
  id: {
11410
11441
  validate: chain(assertNodeType('TSEntityName', 'StringLiteral'), Object.assign(function(node, key, val) {
11411
- if (node.kind === 'module' && !is('StringLiteral', val)) {
11412
- throw new TypeError(`TSModuleDeclaration of kind 'module' must have a StringLiteral id.`);
11413
- }
11414
-
11415
11442
  if (node.kind === 'namespace' && is('StringLiteral', val)) {
11416
11443
  throw new TypeError(`TSModuleDeclaration of kind 'namespace' cannot have a StringLiteral id.`);
11417
11444
  }
@@ -12331,7 +12358,7 @@ function arrowFunctionExpression(params, body, async = false) {
12331
12358
  params,
12332
12359
  body,
12333
12360
  async,
12334
- expression: null,
12361
+ expression: body.type !== 'BlockStatement',
12335
12362
  };
12336
12363
 
12337
12364
  const defs = NODE_FIELDS.ArrowFunctionExpression;
@@ -12386,15 +12413,16 @@ function classDeclaration(id = null, superClass = null, body, decorators = null)
12386
12413
  return node;
12387
12414
  }
12388
12415
 
12389
- function exportAllDeclaration(source) {
12416
+ function exportAllDeclaration(source, attributes = null) {
12390
12417
  const node = {
12391
12418
  type: 'ExportAllDeclaration',
12392
12419
  source,
12393
- assertions: null,
12420
+ attributes,
12394
12421
  };
12395
12422
 
12396
12423
  const defs = NODE_FIELDS.ExportAllDeclaration;
12397
12424
  validate(defs.source, node, 'source', source, 1);
12425
+ validate(defs.attributes, node, 'attributes', attributes, 1);
12398
12426
  return node;
12399
12427
  }
12400
12428
 
@@ -12771,6 +12799,9 @@ function classPrivateMethod(kind = 'method', key, params, body, _static = false)
12771
12799
  params,
12772
12800
  body,
12773
12801
  static: _static,
12802
+ async: false,
12803
+ computed: false,
12804
+ generator: false,
12774
12805
  };
12775
12806
 
12776
12807
  const defs = NODE_FIELDS.ClassPrivateMethod;
@@ -13214,7 +13245,7 @@ function objectTypeCallProperty(value) {
13214
13245
  const node = {
13215
13246
  type: 'ObjectTypeCallProperty',
13216
13247
  value,
13217
- static: null,
13248
+ static: false,
13218
13249
  };
13219
13250
 
13220
13251
  const defs = NODE_FIELDS.ObjectTypeCallProperty;
@@ -13229,7 +13260,7 @@ function objectTypeIndexer(id = null, key, value, variance2 = null) {
13229
13260
  key,
13230
13261
  value,
13231
13262
  variance: variance2,
13232
- static: null,
13263
+ static: false,
13233
13264
  };
13234
13265
 
13235
13266
  const defs = NODE_FIELDS.ObjectTypeIndexer;
@@ -13246,11 +13277,11 @@ function objectTypeProperty(key, value, variance2 = null) {
13246
13277
  key,
13247
13278
  value,
13248
13279
  variance: variance2,
13249
- kind: null,
13250
- method: null,
13251
- optional: null,
13252
- proto: null,
13253
- static: null,
13280
+ kind: 'init',
13281
+ method: false,
13282
+ optional: false,
13283
+ proto: false,
13284
+ static: false,
13254
13285
  };
13255
13286
 
13256
13287
  const defs = NODE_FIELDS.ObjectTypeProperty;
@@ -13391,16 +13422,17 @@ function typeCastExpression(expression2, typeAnnotation2) {
13391
13422
  return node;
13392
13423
  }
13393
13424
 
13394
- function typeParameter(bound = null, _default = null, variance2 = null) {
13425
+ function typeParameter(name, bound = null, _default = null, variance2 = null) {
13395
13426
  const node = {
13396
13427
  type: 'TypeParameter',
13428
+ name,
13397
13429
  bound,
13398
13430
  default: _default,
13399
13431
  variance: variance2,
13400
- name: null,
13401
13432
  };
13402
13433
 
13403
13434
  const defs = NODE_FIELDS.TypeParameter;
13435
+ validate(defs.name, node, 'name', name);
13404
13436
  validate(defs.bound, node, 'bound', bound, 1);
13405
13437
  validate(defs.default, node, 'default', _default, 1);
13406
13438
  validate(defs.variance, node, 'variance', variance2, 1);
@@ -13474,8 +13506,8 @@ function enumBooleanBody(members) {
13474
13506
  const node = {
13475
13507
  type: 'EnumBooleanBody',
13476
13508
  members,
13477
- explicitType: null,
13478
- hasUnknownMembers: null,
13509
+ explicitType: false,
13510
+ hasUnknownMembers: false,
13479
13511
  };
13480
13512
 
13481
13513
  const defs = NODE_FIELDS.EnumBooleanBody;
@@ -13487,8 +13519,8 @@ function enumNumberBody(members) {
13487
13519
  const node = {
13488
13520
  type: 'EnumNumberBody',
13489
13521
  members,
13490
- explicitType: null,
13491
- hasUnknownMembers: null,
13522
+ explicitType: false,
13523
+ hasUnknownMembers: false,
13492
13524
  };
13493
13525
 
13494
13526
  const defs = NODE_FIELDS.EnumNumberBody;
@@ -13500,8 +13532,8 @@ function enumStringBody(members) {
13500
13532
  const node = {
13501
13533
  type: 'EnumStringBody',
13502
13534
  members,
13503
- explicitType: null,
13504
- hasUnknownMembers: null,
13535
+ explicitType: false,
13536
+ hasUnknownMembers: false,
13505
13537
  };
13506
13538
 
13507
13539
  const defs = NODE_FIELDS.EnumStringBody;
@@ -13513,7 +13545,7 @@ function enumSymbolBody(members) {
13513
13545
  const node = {
13514
13546
  type: 'EnumSymbolBody',
13515
13547
  members,
13516
- hasUnknownMembers: null,
13548
+ hasUnknownMembers: false,
13517
13549
  };
13518
13550
 
13519
13551
  const defs = NODE_FIELDS.EnumSymbolBody;
@@ -13521,15 +13553,16 @@ function enumSymbolBody(members) {
13521
13553
  return node;
13522
13554
  }
13523
13555
 
13524
- function enumBooleanMember(id) {
13556
+ function enumBooleanMember(id, init) {
13525
13557
  const node = {
13526
13558
  type: 'EnumBooleanMember',
13527
13559
  id,
13528
- init: null,
13560
+ init,
13529
13561
  };
13530
13562
 
13531
13563
  const defs = NODE_FIELDS.EnumBooleanMember;
13532
13564
  validate(defs.id, node, 'id', id, 1);
13565
+ validate(defs.init, node, 'init', init, 1);
13533
13566
  return node;
13534
13567
  }
13535
13568
 
@@ -13588,7 +13621,7 @@ function optionalIndexedAccessType(objectType, indexType) {
13588
13621
  type: 'OptionalIndexedAccessType',
13589
13622
  objectType,
13590
13623
  indexType,
13591
- optional: null,
13624
+ optional: false,
13592
13625
  };
13593
13626
 
13594
13627
  const defs = NODE_FIELDS.OptionalIndexedAccessType;
@@ -13912,6 +13945,8 @@ function tsDeclareFunction(id = null, typeParameters = null, params, returnType
13912
13945
  typeParameters,
13913
13946
  params,
13914
13947
  returnType,
13948
+ async: false,
13949
+ generator: false,
13915
13950
  };
13916
13951
 
13917
13952
  const defs = NODE_FIELDS.TSDeclareFunction;
@@ -13930,6 +13965,11 @@ function tsDeclareMethod(decorators = null, key, typeParameters = null, params,
13930
13965
  typeParameters,
13931
13966
  params,
13932
13967
  returnType,
13968
+ async: false,
13969
+ computed: false,
13970
+ generator: false,
13971
+ kind: 'method',
13972
+ static: false,
13933
13973
  };
13934
13974
 
13935
13975
  const defs = NODE_FIELDS.TSDeclareMethod;
@@ -13989,6 +14029,7 @@ function tsPropertySignature(key, typeAnnotation2 = null) {
13989
14029
  type: 'TSPropertySignature',
13990
14030
  key,
13991
14031
  typeAnnotation: typeAnnotation2,
14032
+ computed: false,
13992
14033
  };
13993
14034
 
13994
14035
  const defs = NODE_FIELDS.TSPropertySignature;
@@ -14004,7 +14045,8 @@ function tsMethodSignature(key, typeParameters = null, params, returnType = null
14004
14045
  typeParameters,
14005
14046
  params,
14006
14047
  returnType,
14007
- kind: null,
14048
+ computed: false,
14049
+ kind: 'method',
14008
14050
  };
14009
14051
 
14010
14052
  const defs = NODE_FIELDS.TSMethodSignature;
@@ -14544,7 +14586,7 @@ function tsModuleDeclaration(id, body) {
14544
14586
  type: 'TSModuleDeclaration',
14545
14587
  id,
14546
14588
  body,
14547
- kind: null,
14589
+ kind: 'namespace',
14548
14590
  };
14549
14591
 
14550
14592
  const defs = NODE_FIELDS.TSModuleDeclaration;
@@ -16846,7 +16888,7 @@ function maybeCloneComments(comments, deep, withoutLoc, commentsCache) {
16846
16888
  };
16847
16889
 
16848
16890
  if (withoutLoc) {
16849
- ret.loc = null;
16891
+ ret.loc = void 0;
16850
16892
  }
16851
16893
 
16852
16894
  commentsCache.set(comment, ret);
@@ -17558,6 +17600,8 @@ function getObjectMemberKey(node) {
17558
17600
  if (!node.computed || isLiteral(node.key)) {
17559
17601
  return node.key;
17560
17602
  }
17603
+
17604
+ return null;
17561
17605
  }
17562
17606
 
17563
17607
  function getFunctionName(node, parent) {
@@ -17580,7 +17624,7 @@ function getFunctionName(node, parent) {
17580
17624
  prefix2 = 'get ';
17581
17625
  else if (node.kind === 'set')
17582
17626
  prefix2 = 'set ';
17583
- } else if (isVariableDeclarator(parent, {init: node})) {
17627
+ } else if (isVariableDeclarator(parent) && parent.init === node) {
17584
17628
  id = parent.id;
17585
17629
  } else if (isAssignmentExpression(parent, {operator: '=', right: node})) {
17586
17630
  id = parent.left;
@@ -27759,8 +27803,18 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
27759
27803
  parseClassSuper(node) {
27760
27804
  super.parseClassSuper(node);
27761
27805
 
27762
- if (node.superClass && (this.match(43) || this.match(47))) {
27763
- node.superTypeArguments = this.tsParseTypeArgumentsInExpression();
27806
+ if (node.superClass) {
27807
+ if (node.superClass.type === 'TSInstantiationExpression') {
27808
+ const tsInstantiationExpression2 = node.superClass;
27809
+ const superClass2 = tsInstantiationExpression2.expression;
27810
+ this.takeSurroundingComments(superClass2, superClass2.start, superClass2.end);
27811
+ const superTypeArguments = tsInstantiationExpression2.typeArguments;
27812
+ this.takeSurroundingComments(superTypeArguments, superTypeArguments.start, superTypeArguments.end);
27813
+ node.superClass = superClass2;
27814
+ node.superTypeArguments = superTypeArguments;
27815
+ } else if (this.match(43) || this.match(47)) {
27816
+ node.superTypeArguments = this.tsParseTypeArgumentsInExpression();
27817
+ }
27764
27818
  }
27765
27819
 
27766
27820
  if (this.eatContextual(109)) {
@@ -46020,7 +46074,7 @@ function _evaluate(path, state) {
46020
46074
  const object = callee.get('object');
46021
46075
  const property = callee.get('property');
46022
46076
 
46023
- if (object.isIdentifier() && property.isIdentifier() && isValidObjectCallee(object.node.name) && !isInvalidMethod(property.node.name)) {
46077
+ if (object.isIdentifier() && property.isIdentifier() && isValidObjectCallee(object.node.name) && !isInvalidMethod(property.node.name) && !path.scope.getBinding(object.node.name)) {
46024
46078
  context = global[object.node.name];
46025
46079
  const key = property.node.name;
46026
46080
 
@@ -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":354121,"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":482072,"imports":[],"format":"esm"},"../babel-babel/node_modules/picocolors/picocolors.js":{"bytes":2663,"imports":[],"format":"cjs"},"../babel-babel/node_modules/js-tokens/index.js":{"bytes":12672,"imports":[],"format":"esm"},"../babel-babel/packages/babel-code-frame/lib/index.js":{"bytes":8062,"imports":[{"path":"../babel-babel/node_modules/picocolors/picocolors.js","kind":"import-statement","original":"picocolors"},{"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":16673,"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":128994,"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":156089,"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":"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/picocolors/picocolors.js":{"bytesInOutput":3174},"../babel-babel/node_modules/jsesc/jsesc.js":{"bytesInOutput":8976},"../babel-babel/packages/babel-types/lib/index.js":{"bytesInOutput":385105},"../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":481872},"../babel-babel/packages/babel-code-frame/lib/index.js":{"bytesInOutput":7208},"../babel-babel/node_modules/js-tokens/index.js":{"bytesInOutput":14697},"../babel-babel/packages/babel-template/lib/index.js":{"bytesInOutput":17020},"../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":129742},"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":157922}},"bytes":1257298}}}
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":355010,"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":482647,"imports":[],"format":"esm"},"../babel-babel/node_modules/picocolors/picocolors.js":{"bytes":2663,"imports":[],"format":"cjs"},"../babel-babel/node_modules/js-tokens/index.js":{"bytes":12672,"imports":[],"format":"esm"},"../babel-babel/packages/babel-code-frame/lib/index.js":{"bytes":8062,"imports":[{"path":"../babel-babel/node_modules/picocolors/picocolors.js","kind":"import-statement","original":"picocolors"},{"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":16673,"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":128994,"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":156133,"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":"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/picocolors/picocolors.js":{"bytesInOutput":3174},"../babel-babel/node_modules/jsesc/jsesc.js":{"bytesInOutput":8976},"../babel-babel/packages/babel-types/lib/index.js":{"bytesInOutput":385987},"../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":482455},"../babel-babel/packages/babel-code-frame/lib/index.js":{"bytesInOutput":7208},"../babel-babel/node_modules/js-tokens/index.js":{"bytesInOutput":14697},"../babel-babel/packages/babel-template/lib/index.js":{"bytesInOutput":17020},"../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":129742},"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":157966}},"bytes":1258807}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/babel",
3
- "version": "5.2.4",
3
+ "version": "5.2.6",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Babel 8 in CommonJS",