@putout/bundle 5.0.9 → 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.
- package/bundle/putout.js +103 -37
- package/bundle/putout.min.js +1 -1
- package/bundle/putout.slim.js +103 -37
- package/package.json +2 -2
package/bundle/putout.slim.js
CHANGED
|
@@ -60103,7 +60103,7 @@ function objectPlugin(plugin, path, printer, semantics) {
|
|
|
60103
60103
|
|
|
60104
60104
|
var debug$9 = {};
|
|
60105
60105
|
|
|
60106
|
-
var require$$0$
|
|
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$
|
|
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;
|
|
@@ -110892,7 +110892,9 @@ hermes$1.parse = function hermesParse(source) {
|
|
|
110892
110892
|
return parser.parse(source, options);
|
|
110893
110893
|
};
|
|
110894
110894
|
|
|
110895
|
-
|
|
110895
|
+
var tryCatch$l = {exports: {}};
|
|
110896
|
+
|
|
110897
|
+
const tryCatch$j = (fn, ...args) => {
|
|
110896
110898
|
try {
|
|
110897
110899
|
return [null, fn(...args)];
|
|
110898
110900
|
} catch(e) {
|
|
@@ -110900,19 +110902,26 @@ const tryCatch$8 = (fn, ...args) => {
|
|
|
110900
110902
|
}
|
|
110901
110903
|
};
|
|
110902
110904
|
|
|
110903
|
-
var tryCatch$
|
|
110905
|
+
var tryCatch$k = /*#__PURE__*/Object.freeze({
|
|
110904
110906
|
__proto__: null,
|
|
110905
|
-
default: tryCatch$
|
|
110906
|
-
tryCatch: tryCatch$
|
|
110907
|
+
default: tryCatch$j,
|
|
110908
|
+
tryCatch: tryCatch$j
|
|
110907
110909
|
});
|
|
110908
110910
|
|
|
110909
|
-
var require$$0$
|
|
110911
|
+
var require$$0$6 = /*@__PURE__*/getAugmentedNamespace(tryCatch$k);
|
|
110912
|
+
|
|
110913
|
+
const {tryCatch: tryCatch$i} = require$$0$6;
|
|
110914
|
+
|
|
110915
|
+
tryCatch$l.exports = tryCatch$i;
|
|
110916
|
+
tryCatch$l.exports.tryCatch = tryCatch$i;
|
|
110910
110917
|
|
|
110911
|
-
|
|
110918
|
+
var tryCatchExports$2 = tryCatch$l.exports;
|
|
110919
|
+
|
|
110920
|
+
const tryCatch$h = tryCatchExports$2;
|
|
110912
110921
|
|
|
110913
110922
|
var secondChance$1 = (fn, source, messages, args) => {
|
|
110914
110923
|
const [a, ...others] = args;
|
|
110915
|
-
const [errorA, resultA] = tryCatch$
|
|
110924
|
+
const [errorA, resultA] = tryCatch$h(fn, source, a);
|
|
110916
110925
|
|
|
110917
110926
|
if (!errorA)
|
|
110918
110927
|
return resultA;
|
|
@@ -110921,7 +110930,7 @@ var secondChance$1 = (fn, source, messages, args) => {
|
|
|
110921
110930
|
throw errorA;
|
|
110922
110931
|
|
|
110923
110932
|
for (const b of others) {
|
|
110924
|
-
const [errorB, resultB] = tryCatch$
|
|
110933
|
+
const [errorB, resultB] = tryCatch$h(fn, source, b);
|
|
110925
110934
|
|
|
110926
110935
|
if (!errorB)
|
|
110927
110936
|
return resultB;
|
|
@@ -111012,10 +111021,10 @@ function customParse(source, {parser, printer, isTS, isJSX, isRecovery}) {
|
|
|
111012
111021
|
|
|
111013
111022
|
var tryThrowWithReason$3 = {};
|
|
111014
111023
|
|
|
111015
|
-
const tryCatch$
|
|
111024
|
+
const tryCatch$g = tryCatchExports$2;
|
|
111016
111025
|
|
|
111017
111026
|
tryThrowWithReason$3.tryThrowWithReason = (fn, ...args) => {
|
|
111018
|
-
const [error, result] = tryCatch$
|
|
111027
|
+
const [error, result] = tryCatch$g(fn, ...args);
|
|
111019
111028
|
|
|
111020
111029
|
if (error) {
|
|
111021
111030
|
error.reason = 'parse';
|
|
@@ -112261,9 +112270,9 @@ var debug$6 = /*#__PURE__*/Object.freeze({
|
|
|
112261
112270
|
createDebug: createDebug$9
|
|
112262
112271
|
});
|
|
112263
112272
|
|
|
112264
|
-
var require$$0$
|
|
112273
|
+
var require$$0$5 = /*@__PURE__*/getAugmentedNamespace(debug$6);
|
|
112265
112274
|
|
|
112266
|
-
const {createDebug: createDebug$8} = require$$0$
|
|
112275
|
+
const {createDebug: createDebug$8} = require$$0$5;
|
|
112267
112276
|
|
|
112268
112277
|
debug$7.createDebug = (namespace) => {
|
|
112269
112278
|
const log = createDebug$8(namespace, {
|
|
@@ -112284,7 +112293,9 @@ debug$7.createDebug = (namespace) => {
|
|
|
112284
112293
|
});
|
|
112285
112294
|
};
|
|
112286
112295
|
|
|
112287
|
-
var tryCatch$
|
|
112296
|
+
var tryCatch$f = {exports: {}};
|
|
112297
|
+
|
|
112298
|
+
const tryCatch$d = (fn, ...args) => {
|
|
112288
112299
|
try {
|
|
112289
112300
|
return [null, fn(...args)];
|
|
112290
112301
|
} catch(e) {
|
|
@@ -112292,7 +112303,22 @@ var tryCatch$5 = (fn, ...args) => {
|
|
|
112292
112303
|
}
|
|
112293
112304
|
};
|
|
112294
112305
|
|
|
112295
|
-
|
|
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;
|
|
112296
112322
|
const {createDebug: createDebug$7} = debug$7;
|
|
112297
112323
|
|
|
112298
112324
|
const {stringify: stringify$5} = JSON;
|
|
@@ -112318,7 +112344,7 @@ const chooseFixArgs = ({path, pathOptions, options}) => {
|
|
|
112318
112344
|
};
|
|
112319
112345
|
|
|
112320
112346
|
const tryToFix = (fix, {path, pathOptions, position, options}) => {
|
|
112321
|
-
const [e] = tryCatch$
|
|
112347
|
+
const [e] = tryCatch$b(fix, ...chooseFixArgs({
|
|
112322
112348
|
path,
|
|
112323
112349
|
pathOptions,
|
|
112324
112350
|
options,
|
|
@@ -113356,18 +113382,18 @@ var log$5 = {exports: {}};
|
|
|
113356
113382
|
|
|
113357
113383
|
var debug$4 = {};
|
|
113358
113384
|
|
|
113359
|
-
const {createDebug: createDebug$6} = require$$0$
|
|
113385
|
+
const {createDebug: createDebug$6} = require$$0$5;
|
|
113360
113386
|
|
|
113361
113387
|
debug$4.createDebug = (namespace) => {
|
|
113362
113388
|
const log = createDebug$6(namespace);
|
|
113363
113389
|
|
|
113364
113390
|
return new Proxy(log, {
|
|
113365
113391
|
apply(target, thisArg, args) {
|
|
113366
|
-
|
|
113392
|
+
globalThis.__putout_debug?.(namespace, ...args);
|
|
113367
113393
|
return target(...args);
|
|
113368
113394
|
},
|
|
113369
113395
|
get(target, prop) {
|
|
113370
|
-
if (
|
|
113396
|
+
if (globalThis.__putout_debug?.[prop])
|
|
113371
113397
|
return true;
|
|
113372
113398
|
|
|
113373
113399
|
return target[prop];
|
|
@@ -113898,7 +113924,7 @@ function superCompareIterate(node, template) {
|
|
|
113898
113924
|
return true;
|
|
113899
113925
|
}
|
|
113900
113926
|
|
|
113901
|
-
const tryCatch$
|
|
113927
|
+
const tryCatch$a = tryCatchExports$1;
|
|
113902
113928
|
|
|
113903
113929
|
const {
|
|
113904
113930
|
compareAny: compareAny$1,
|
|
@@ -113993,7 +114019,7 @@ const wrapWithCheck = ({rule, nodesInclude, nodesExclude, fn}) => (path) => {
|
|
|
113993
114019
|
if (!isFn$2(fn))
|
|
113994
114020
|
throw Error(`☝️ Looks like provided visitor is not a function: ${stringify$2(fn)}. More on using Traverser: https://git.io/JqcMn`);
|
|
113995
114021
|
|
|
113996
|
-
const [e] = tryCatch$
|
|
114022
|
+
const [e] = tryCatch$a(fn, path);
|
|
113997
114023
|
|
|
113998
114024
|
if (e) {
|
|
113999
114025
|
e.rule = rule;
|
|
@@ -114485,9 +114511,9 @@ var _polyfillNode_events = /*#__PURE__*/Object.freeze({
|
|
|
114485
114511
|
default: EventEmitter$1
|
|
114486
114512
|
});
|
|
114487
114513
|
|
|
114488
|
-
var require$$0$
|
|
114514
|
+
var require$$0$3 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_events);
|
|
114489
114515
|
|
|
114490
|
-
const {EventEmitter} = require$$0$
|
|
114516
|
+
const {EventEmitter} = require$$0$3;
|
|
114491
114517
|
|
|
114492
114518
|
var createProgress$1 = progress.createProgress = () => {
|
|
114493
114519
|
let pluginsCount = 0;
|
|
@@ -114543,10 +114569,10 @@ var createProgress$1 = progress.createProgress = () => {
|
|
|
114543
114569
|
|
|
114544
114570
|
var tryThrowWithReason$1 = {};
|
|
114545
114571
|
|
|
114546
|
-
const tryCatch$
|
|
114572
|
+
const tryCatch$9 = tryCatchExports$1;
|
|
114547
114573
|
|
|
114548
114574
|
tryThrowWithReason$1.tryThrowWithReason = (fn, ...args) => {
|
|
114549
|
-
const [error, result] = tryCatch$
|
|
114575
|
+
const [error, result] = tryCatch$9(fn, ...args);
|
|
114550
114576
|
|
|
114551
114577
|
if (error) {
|
|
114552
114578
|
error.reason ??= 'traverse';
|
|
@@ -115240,7 +115266,32 @@ var scanner = {};
|
|
|
115240
115266
|
|
|
115241
115267
|
var filesystem = {};
|
|
115242
115268
|
|
|
115243
|
-
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;
|
|
115244
115295
|
|
|
115245
115296
|
var maybeFs = {};
|
|
115246
115297
|
|
|
@@ -115345,10 +115396,10 @@ const {
|
|
|
115345
115396
|
join: join$2,
|
|
115346
115397
|
basename: basename$1,
|
|
115347
115398
|
dirname: dirname$1,
|
|
115348
|
-
} = require$$0;
|
|
115399
|
+
} = require$$0$2;
|
|
115349
115400
|
|
|
115350
115401
|
const {types: types$8} = bundle$1;
|
|
115351
|
-
const tryCatch$
|
|
115402
|
+
const tryCatch$4 = tryCatchExports;
|
|
115352
115403
|
|
|
115353
115404
|
const {
|
|
115354
115405
|
setLiteralValue: setLiteralValue$1,
|
|
@@ -115375,7 +115426,7 @@ const {isArray: isArray$1} = Array;
|
|
|
115375
115426
|
const maybeArray = (a) => isArray$1(a) ? a : [a];
|
|
115376
115427
|
|
|
115377
115428
|
const toBase64 = (content) => {
|
|
115378
|
-
const [e, result] = tryCatch$
|
|
115429
|
+
const [e, result] = tryCatch$4(btoa, content);
|
|
115379
115430
|
|
|
115380
115431
|
if (e)
|
|
115381
115432
|
return btoa(escape(content));
|
|
@@ -115387,7 +115438,7 @@ const fromBase64 = (content) => {
|
|
|
115387
115438
|
if (content.includes(' '))
|
|
115388
115439
|
return content;
|
|
115389
115440
|
|
|
115390
|
-
const [e, decoded] = tryCatch$
|
|
115441
|
+
const [e, decoded] = tryCatch$4(atob, content);
|
|
115391
115442
|
|
|
115392
115443
|
if (!e)
|
|
115393
115444
|
return unescape(decoded);
|
|
@@ -115786,7 +115837,7 @@ filesystem.start = maybeFS.start;
|
|
|
115786
115837
|
|
|
115787
115838
|
var convertSimpleFilesystemToFilesystem = {};
|
|
115788
115839
|
|
|
115789
|
-
const {basename, dirname} = require$$0;
|
|
115840
|
+
const {basename, dirname} = require$$0$2;
|
|
115790
115841
|
const {types: types$7} = bundle$1;
|
|
115791
115842
|
const {
|
|
115792
115843
|
createDirectory,
|
|
@@ -116383,7 +116434,9 @@ var defaultOptions$2 = /*#__PURE__*/Object.freeze({
|
|
|
116383
116434
|
|
|
116384
116435
|
var require$$3 = /*@__PURE__*/getAugmentedNamespace(defaultOptions$2);
|
|
116385
116436
|
|
|
116386
|
-
|
|
116437
|
+
var tryCatch$3 = {exports: {}};
|
|
116438
|
+
|
|
116439
|
+
const tryCatch$1 = (fn, ...args) => {
|
|
116387
116440
|
try {
|
|
116388
116441
|
return [null, fn(...args)];
|
|
116389
116442
|
} catch(e) {
|
|
@@ -116391,6 +116444,19 @@ const tryCatch = (fn, ...args) => {
|
|
|
116391
116444
|
}
|
|
116392
116445
|
};
|
|
116393
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
|
+
|
|
116394
116460
|
const parseError$1 = (e, type = 'parser') => {
|
|
116395
116461
|
const {line, column} = e.loc || {
|
|
116396
116462
|
line: 1,
|
|
@@ -116439,7 +116505,7 @@ const transform$4 = (ast, source, opts) => {
|
|
|
116439
116505
|
|
|
116440
116506
|
const [, shebang] = cutShebang$1(source);
|
|
116441
116507
|
|
|
116442
|
-
const [validationError] =
|
|
116508
|
+
const [validationError] = tryCatch_2(validateRulesRelations, {
|
|
116443
116509
|
rules,
|
|
116444
116510
|
pluginNames,
|
|
116445
116511
|
});
|
|
@@ -116481,7 +116547,7 @@ const transformAsync$1 = async (ast, source, opts) => {
|
|
|
116481
116547
|
|
|
116482
116548
|
const [, shebang] = cutShebang$1(source);
|
|
116483
116549
|
|
|
116484
|
-
const [validationError] =
|
|
116550
|
+
const [validationError] = tryCatch_2(validateRulesRelations, {
|
|
116485
116551
|
rules,
|
|
116486
116552
|
pluginNames,
|
|
116487
116553
|
});
|
|
@@ -124179,7 +124245,7 @@ var ignores$2 = /*#__PURE__*/Object.freeze({
|
|
|
124179
124245
|
|
|
124180
124246
|
var require$$4 = /*@__PURE__*/getAugmentedNamespace(ignores$2);
|
|
124181
124247
|
|
|
124182
|
-
const path = require$$0;
|
|
124248
|
+
const path = require$$0$2;
|
|
124183
124249
|
|
|
124184
124250
|
const {parse: parse$2, print: print$1} = parser$5;
|
|
124185
124251
|
const {transform: transform$1} = require$$4$1;
|
|
@@ -124395,7 +124461,7 @@ function parseOptions(inputFilename, rawOptions) {
|
|
|
124395
124461
|
|
|
124396
124462
|
var renameFiles = {};
|
|
124397
124463
|
|
|
124398
|
-
const {join} = require$$0;
|
|
124464
|
+
const {join} = require$$0$2;
|
|
124399
124465
|
|
|
124400
124466
|
const {
|
|
124401
124467
|
getParentDirectory,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/bundle",
|
|
3
|
-
"version": "5.0.
|
|
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.
|
|
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",
|