@putout/bundle 5.0.8 → 5.0.10

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.
@@ -60103,7 +60103,7 @@ function objectPlugin(plugin, path, printer, semantics) {
60103
60103
 
60104
60104
  var debug$9 = {};
60105
60105
 
60106
- var require$$0$3 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_process);
60106
+ var require$$0$7 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_process);
60107
60107
 
60108
60108
  var justSnakeCase = snakeCase;
60109
60109
 
@@ -60134,7 +60134,7 @@ function snakeCase(str) {
60134
60134
  .join('_');
60135
60135
  }
60136
60136
 
60137
- const process = require$$0$3;
60137
+ const process = require$$0$7;
60138
60138
  const toSnakeCase = justSnakeCase;
60139
60139
  const {codeFrameColumns: codeFrameColumns$1} = bundle$1;
60140
60140
  const {TYPES: TYPES$3} = types$19;
@@ -60868,12 +60868,14 @@ babel$2.print = (ast, options) => {
60868
60868
  ...options,
60869
60869
  };
60870
60870
 
60871
- let {code} = generate$6(ast, {
60872
- ...source && {
60871
+ let {code} = generate$6(
60872
+ ast,
60873
+ source && {
60873
60874
  experimental_preserveFormat: true,
60874
60875
  retainLines: true,
60875
60876
  },
60876
- }, source);
60877
+ source,
60878
+ );
60877
60879
 
60878
60880
  if (code[0] === '\n')
60879
60881
  code = code.trimStart();
@@ -110890,7 +110892,9 @@ hermes$1.parse = function hermesParse(source) {
110890
110892
  return parser.parse(source, options);
110891
110893
  };
110892
110894
 
110893
- var tryCatch$6 = (fn, ...args) => {
110895
+ var tryCatch$l = {exports: {}};
110896
+
110897
+ const tryCatch$j = (fn, ...args) => {
110894
110898
  try {
110895
110899
  return [null, fn(...args)];
110896
110900
  } catch(e) {
@@ -110898,13 +110902,26 @@ var tryCatch$6 = (fn, ...args) => {
110898
110902
  }
110899
110903
  };
110900
110904
 
110901
- var tryCatch$7 = tryCatch$6.default;
110905
+ var tryCatch$k = /*#__PURE__*/Object.freeze({
110906
+ __proto__: null,
110907
+ default: tryCatch$j,
110908
+ tryCatch: tryCatch$j
110909
+ });
110910
+
110911
+ var require$$0$6 = /*@__PURE__*/getAugmentedNamespace(tryCatch$k);
110902
110912
 
110903
- const tryCatch$5 = tryCatch$6;
110913
+ const {tryCatch: tryCatch$i} = require$$0$6;
110914
+
110915
+ tryCatch$l.exports = tryCatch$i;
110916
+ tryCatch$l.exports.tryCatch = tryCatch$i;
110917
+
110918
+ var tryCatchExports$2 = tryCatch$l.exports;
110919
+
110920
+ const tryCatch$h = tryCatchExports$2;
110904
110921
 
110905
110922
  var secondChance$1 = (fn, source, messages, args) => {
110906
110923
  const [a, ...others] = args;
110907
- const [errorA, resultA] = tryCatch$5(fn, source, a);
110924
+ const [errorA, resultA] = tryCatch$h(fn, source, a);
110908
110925
 
110909
110926
  if (!errorA)
110910
110927
  return resultA;
@@ -110913,7 +110930,7 @@ var secondChance$1 = (fn, source, messages, args) => {
110913
110930
  throw errorA;
110914
110931
 
110915
110932
  for (const b of others) {
110916
- const [errorB, resultB] = tryCatch$5(fn, source, b);
110933
+ const [errorB, resultB] = tryCatch$h(fn, source, b);
110917
110934
 
110918
110935
  if (!errorB)
110919
110936
  return resultB;
@@ -111004,10 +111021,10 @@ function customParse(source, {parser, printer, isTS, isJSX, isRecovery}) {
111004
111021
 
111005
111022
  var tryThrowWithReason$3 = {};
111006
111023
 
111007
- const tryCatch$4 = tryCatch$6;
111024
+ const tryCatch$g = tryCatchExports$2;
111008
111025
 
111009
111026
  tryThrowWithReason$3.tryThrowWithReason = (fn, ...args) => {
111010
- const [error, result] = tryCatch$4(fn, ...args);
111027
+ const [error, result] = tryCatch$g(fn, ...args);
111011
111028
 
111012
111029
  if (error) {
111013
111030
  error.reason = 'parse';
@@ -112253,9 +112270,9 @@ var debug$6 = /*#__PURE__*/Object.freeze({
112253
112270
  createDebug: createDebug$9
112254
112271
  });
112255
112272
 
112256
- var require$$0$2 = /*@__PURE__*/getAugmentedNamespace(debug$6);
112273
+ var require$$0$5 = /*@__PURE__*/getAugmentedNamespace(debug$6);
112257
112274
 
112258
- const {createDebug: createDebug$8} = require$$0$2;
112275
+ const {createDebug: createDebug$8} = require$$0$5;
112259
112276
 
112260
112277
  debug$7.createDebug = (namespace) => {
112261
112278
  const log = createDebug$8(namespace, {
@@ -112276,7 +112293,32 @@ debug$7.createDebug = (namespace) => {
112276
112293
  });
112277
112294
  };
112278
112295
 
112279
- const tryCatch$3 = tryCatch$6;
112296
+ var tryCatch$f = {exports: {}};
112297
+
112298
+ const tryCatch$d = (fn, ...args) => {
112299
+ try {
112300
+ return [null, fn(...args)];
112301
+ } catch(e) {
112302
+ return [e];
112303
+ }
112304
+ };
112305
+
112306
+ var tryCatch$e = /*#__PURE__*/Object.freeze({
112307
+ __proto__: null,
112308
+ default: tryCatch$d,
112309
+ tryCatch: tryCatch$d
112310
+ });
112311
+
112312
+ var require$$0$4 = /*@__PURE__*/getAugmentedNamespace(tryCatch$e);
112313
+
112314
+ const {tryCatch: tryCatch$c} = require$$0$4;
112315
+
112316
+ tryCatch$f.exports = tryCatch$c;
112317
+ tryCatch$f.exports.tryCatch = tryCatch$c;
112318
+
112319
+ var tryCatchExports$1 = tryCatch$f.exports;
112320
+
112321
+ const tryCatch$b = tryCatchExports$1;
112280
112322
  const {createDebug: createDebug$7} = debug$7;
112281
112323
 
112282
112324
  const {stringify: stringify$5} = JSON;
@@ -112302,7 +112344,7 @@ const chooseFixArgs = ({path, pathOptions, options}) => {
112302
112344
  };
112303
112345
 
112304
112346
  const tryToFix = (fix, {path, pathOptions, position, options}) => {
112305
- const [e] = tryCatch$3(fix, ...chooseFixArgs({
112347
+ const [e] = tryCatch$b(fix, ...chooseFixArgs({
112306
112348
  path,
112307
112349
  pathOptions,
112308
112350
  options,
@@ -113340,18 +113382,18 @@ var log$5 = {exports: {}};
113340
113382
 
113341
113383
  var debug$4 = {};
113342
113384
 
113343
- const {createDebug: createDebug$6} = require$$0$2;
113385
+ const {createDebug: createDebug$6} = require$$0$5;
113344
113386
 
113345
113387
  debug$4.createDebug = (namespace) => {
113346
113388
  const log = createDebug$6(namespace);
113347
113389
 
113348
113390
  return new Proxy(log, {
113349
113391
  apply(target, thisArg, args) {
113350
- commonjsGlobal.__putout_debug?.(namespace, ...args);
113392
+ globalThis.__putout_debug?.(namespace, ...args);
113351
113393
  return target(...args);
113352
113394
  },
113353
113395
  get(target, prop) {
113354
- if (commonjsGlobal.__putout_debug?.[prop])
113396
+ if (globalThis.__putout_debug?.[prop])
113355
113397
  return true;
113356
113398
 
113357
113399
  return target[prop];
@@ -113882,7 +113924,7 @@ function superCompareIterate(node, template) {
113882
113924
  return true;
113883
113925
  }
113884
113926
 
113885
- const tryCatch$2 = tryCatch$6;
113927
+ const tryCatch$a = tryCatchExports$1;
113886
113928
 
113887
113929
  const {
113888
113930
  compareAny: compareAny$1,
@@ -113977,7 +114019,7 @@ const wrapWithCheck = ({rule, nodesInclude, nodesExclude, fn}) => (path) => {
113977
114019
  if (!isFn$2(fn))
113978
114020
  throw Error(`☝️ Looks like provided visitor is not a function: ${stringify$2(fn)}. More on using Traverser: https://git.io/JqcMn`);
113979
114021
 
113980
- const [e] = tryCatch$2(fn, path);
114022
+ const [e] = tryCatch$a(fn, path);
113981
114023
 
113982
114024
  if (e) {
113983
114025
  e.rule = rule;
@@ -114469,9 +114511,9 @@ var _polyfillNode_events = /*#__PURE__*/Object.freeze({
114469
114511
  default: EventEmitter$1
114470
114512
  });
114471
114513
 
114472
- var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_events);
114514
+ var require$$0$3 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_events);
114473
114515
 
114474
- const {EventEmitter} = require$$0$1;
114516
+ const {EventEmitter} = require$$0$3;
114475
114517
 
114476
114518
  var createProgress$1 = progress.createProgress = () => {
114477
114519
  let pluginsCount = 0;
@@ -114527,10 +114569,10 @@ var createProgress$1 = progress.createProgress = () => {
114527
114569
 
114528
114570
  var tryThrowWithReason$1 = {};
114529
114571
 
114530
- const tryCatch$1 = tryCatch$6;
114572
+ const tryCatch$9 = tryCatchExports$1;
114531
114573
 
114532
114574
  tryThrowWithReason$1.tryThrowWithReason = (fn, ...args) => {
114533
- const [error, result] = tryCatch$1(fn, ...args);
114575
+ const [error, result] = tryCatch$9(fn, ...args);
114534
114576
 
114535
114577
  if (error) {
114536
114578
  error.reason ??= 'traverse';
@@ -115224,7 +115266,32 @@ var scanner = {};
115224
115266
 
115225
115267
  var filesystem = {};
115226
115268
 
115227
- var require$$0 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_path$1);
115269
+ var require$$0$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_path$1);
115270
+
115271
+ var tryCatch$8 = {exports: {}};
115272
+
115273
+ const tryCatch$6 = (fn, ...args) => {
115274
+ try {
115275
+ return [null, fn(...args)];
115276
+ } catch(e) {
115277
+ return [e];
115278
+ }
115279
+ };
115280
+
115281
+ var tryCatch$7 = /*#__PURE__*/Object.freeze({
115282
+ __proto__: null,
115283
+ default: tryCatch$6,
115284
+ tryCatch: tryCatch$6
115285
+ });
115286
+
115287
+ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(tryCatch$7);
115288
+
115289
+ const {tryCatch: tryCatch$5} = require$$0$1;
115290
+
115291
+ tryCatch$8.exports = tryCatch$5;
115292
+ tryCatch$8.exports.tryCatch = tryCatch$5;
115293
+
115294
+ var tryCatchExports = tryCatch$8.exports;
115228
115295
 
115229
115296
  var maybeFs = {};
115230
115297
 
@@ -115329,10 +115396,10 @@ const {
115329
115396
  join: join$2,
115330
115397
  basename: basename$1,
115331
115398
  dirname: dirname$1,
115332
- } = require$$0;
115399
+ } = require$$0$2;
115333
115400
 
115334
115401
  const {types: types$8} = bundle$1;
115335
- const tryCatch = tryCatch$6;
115402
+ const tryCatch$4 = tryCatchExports;
115336
115403
 
115337
115404
  const {
115338
115405
  setLiteralValue: setLiteralValue$1,
@@ -115359,7 +115426,7 @@ const {isArray: isArray$1} = Array;
115359
115426
  const maybeArray = (a) => isArray$1(a) ? a : [a];
115360
115427
 
115361
115428
  const toBase64 = (content) => {
115362
- const [e, result] = tryCatch(btoa, content);
115429
+ const [e, result] = tryCatch$4(btoa, content);
115363
115430
 
115364
115431
  if (e)
115365
115432
  return btoa(escape(content));
@@ -115371,7 +115438,7 @@ const fromBase64 = (content) => {
115371
115438
  if (content.includes(' '))
115372
115439
  return content;
115373
115440
 
115374
- const [e, decoded] = tryCatch(atob, content);
115441
+ const [e, decoded] = tryCatch$4(atob, content);
115375
115442
 
115376
115443
  if (!e)
115377
115444
  return unescape(decoded);
@@ -115770,7 +115837,7 @@ filesystem.start = maybeFS.start;
115770
115837
 
115771
115838
  var convertSimpleFilesystemToFilesystem = {};
115772
115839
 
115773
- const {basename, dirname} = require$$0;
115840
+ const {basename, dirname} = require$$0$2;
115774
115841
  const {types: types$7} = bundle$1;
115775
115842
  const {
115776
115843
  createDirectory,
@@ -116367,6 +116434,29 @@ var defaultOptions$2 = /*#__PURE__*/Object.freeze({
116367
116434
 
116368
116435
  var require$$3 = /*@__PURE__*/getAugmentedNamespace(defaultOptions$2);
116369
116436
 
116437
+ var tryCatch$3 = {exports: {}};
116438
+
116439
+ const tryCatch$1 = (fn, ...args) => {
116440
+ try {
116441
+ return [null, fn(...args)];
116442
+ } catch(e) {
116443
+ return [e];
116444
+ }
116445
+ };
116446
+
116447
+ var tryCatch$2 = /*#__PURE__*/Object.freeze({
116448
+ __proto__: null,
116449
+ default: tryCatch$1,
116450
+ tryCatch: tryCatch$1
116451
+ });
116452
+
116453
+ var require$$0 = /*@__PURE__*/getAugmentedNamespace(tryCatch$2);
116454
+
116455
+ const {tryCatch} = require$$0;
116456
+
116457
+ tryCatch$3.exports = tryCatch;
116458
+ var tryCatch_2 = tryCatch$3.exports.tryCatch = tryCatch;
116459
+
116370
116460
  const parseError$1 = (e, type = 'parser') => {
116371
116461
  const {line, column} = e.loc || {
116372
116462
  line: 1,
@@ -116415,7 +116505,7 @@ const transform$4 = (ast, source, opts) => {
116415
116505
 
116416
116506
  const [, shebang] = cutShebang$1(source);
116417
116507
 
116418
- const [validationError] = tryCatch$7(validateRulesRelations, {
116508
+ const [validationError] = tryCatch_2(validateRulesRelations, {
116419
116509
  rules,
116420
116510
  pluginNames,
116421
116511
  });
@@ -116457,7 +116547,7 @@ const transformAsync$1 = async (ast, source, opts) => {
116457
116547
 
116458
116548
  const [, shebang] = cutShebang$1(source);
116459
116549
 
116460
- const [validationError] = tryCatch$7(validateRulesRelations, {
116550
+ const [validationError] = tryCatch_2(validateRulesRelations, {
116461
116551
  rules,
116462
116552
  pluginNames,
116463
116553
  });
@@ -124155,7 +124245,7 @@ var ignores$2 = /*#__PURE__*/Object.freeze({
124155
124245
 
124156
124246
  var require$$4 = /*@__PURE__*/getAugmentedNamespace(ignores$2);
124157
124247
 
124158
- const path = require$$0;
124248
+ const path = require$$0$2;
124159
124249
 
124160
124250
  const {parse: parse$2, print: print$1} = parser$5;
124161
124251
  const {transform: transform$1} = require$$4$1;
@@ -124371,7 +124461,7 @@ function parseOptions(inputFilename, rawOptions) {
124371
124461
 
124372
124462
  var renameFiles = {};
124373
124463
 
124374
- const {join} = require$$0;
124464
+ const {join} = require$$0$2;
124375
124465
 
124376
124466
  const {
124377
124467
  getParentDirectory,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/bundle",
3
- "version": "5.0.8",
3
+ "version": "5.0.10",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout bundle suitable for Deno and Browsers",
@@ -63,7 +63,7 @@
63
63
  "hermes-parser": "^0.33.0",
64
64
  "madrun": "^11.0.0",
65
65
  "nodemon": "^3.0.1",
66
- "putout": "^41.2.0",
66
+ "putout": "^41.3.0",
67
67
  "rollup": "^4.24.2",
68
68
  "rollup-plugin-node-externals": "^8.0.0",
69
69
  "rollup-plugin-polyfill-node": "^0.13.0",