@putout/babel 5.3.0 → 5.3.2
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 +4 -0
- package/bundle/index.js +176 -170
- package/bundle/metafile-esm.json +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
[NPMURL]: https://npmjs.org/package/@putout/babel "npm"
|
|
5
5
|
|
|
6
6
|
Pre-builts of [Babel 8](https://github.com/babel/babel/releases/tag/v8.0.0-rc.2).
|
|
7
|
+
Includes:
|
|
8
|
+
|
|
9
|
+
- [`Fix: parser: async x => {} must be in leading pos`](https://github.com/babel/babel/pull/17839);
|
|
10
|
+
- [`Fix TypeScript parser failing on async calls in ternary consequent`](https://github.com/babel/babel/pull/17799);
|
|
7
11
|
|
|
8
12
|
Usage
|
|
9
13
|
|
package/bundle/index.js
CHANGED
|
@@ -40,9 +40,9 @@ isNodeMode || !mod || !mod.__esModule ? __defProp(target, 'default', {
|
|
|
40
40
|
enumerable: true,
|
|
41
41
|
}) : target, mod));
|
|
42
42
|
|
|
43
|
-
// node_modules/jsesc/jsesc.js
|
|
43
|
+
// ../babel-babel/node_modules/jsesc/jsesc.js
|
|
44
44
|
var require_jsesc = __commonJS({
|
|
45
|
-
'node_modules/jsesc/jsesc.js'(exports, module) {
|
|
45
|
+
'../babel-babel/node_modules/jsesc/jsesc.js'(exports, module) {
|
|
46
46
|
"use strict";
|
|
47
47
|
|
|
48
48
|
var object = {};
|
|
@@ -107,10 +107,6 @@ var require_jsesc = __commonJS({
|
|
|
107
107
|
return typeof value == 'number' || toString.call(value) == '[object Number]';
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
var isBigInt = (value) => {
|
|
111
|
-
return typeof value == 'bigint';
|
|
112
|
-
};
|
|
113
|
-
|
|
114
110
|
var isFunction5 = (value) => {
|
|
115
111
|
return typeof value == 'function';
|
|
116
112
|
};
|
|
@@ -259,41 +255,32 @@ var require_jsesc = __commonJS({
|
|
|
259
255
|
}
|
|
260
256
|
|
|
261
257
|
return '[' + newLine + result.join(',' + newLine) + newLine + (compact ? '' : oldIndent) + ']';
|
|
262
|
-
} else if (isNumber2(argument)
|
|
258
|
+
} else if (isNumber2(argument)) {
|
|
263
259
|
if (json) {
|
|
264
|
-
return JSON.stringify(
|
|
260
|
+
return JSON.stringify(argument);
|
|
265
261
|
}
|
|
266
262
|
|
|
267
|
-
let result2;
|
|
268
|
-
|
|
269
263
|
if (useDecNumbers) {
|
|
270
|
-
|
|
271
|
-
}
|
|
264
|
+
return String(argument);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if (useHexNumbers) {
|
|
272
268
|
let hexadecimal2 = argument.toString(16);
|
|
273
269
|
|
|
274
270
|
if (!lowercaseHex) {
|
|
275
271
|
hexadecimal2 = hexadecimal2.toUpperCase();
|
|
276
272
|
}
|
|
277
273
|
|
|
278
|
-
|
|
279
|
-
} else if (useBinNumbers) {
|
|
280
|
-
result2 = '0b' + argument.toString(2);
|
|
281
|
-
} else if (useOctNumbers) {
|
|
282
|
-
result2 = '0o' + argument.toString(8);
|
|
274
|
+
return '0x' + hexadecimal2;
|
|
283
275
|
}
|
|
284
|
-
|
|
285
276
|
|
|
286
|
-
if (
|
|
287
|
-
return
|
|
277
|
+
if (useBinNumbers) {
|
|
278
|
+
return '0b' + argument.toString(2);
|
|
288
279
|
}
|
|
289
280
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
if (json) {
|
|
293
|
-
return JSON.stringify(Number(argument));
|
|
281
|
+
if (useOctNumbers) {
|
|
282
|
+
return '0o' + argument.toString(8);
|
|
294
283
|
}
|
|
295
|
-
|
|
296
|
-
return argument + 'n';
|
|
297
284
|
} else if (!isObject(argument)) {
|
|
298
285
|
if (json) {
|
|
299
286
|
return JSON.stringify(argument) || 'null';
|
|
@@ -316,7 +303,6 @@ var require_jsesc = __commonJS({
|
|
|
316
303
|
return '{' + newLine + result.join(',' + newLine) + newLine + (compact ? '' : oldIndent) + '}';
|
|
317
304
|
}
|
|
318
305
|
|
|
319
|
-
|
|
320
306
|
}
|
|
321
307
|
|
|
322
308
|
const regex = options.escapeEverything ? escapeEverythingRegex : escapeNonAsciiRegex;
|
|
@@ -403,7 +389,7 @@ var require_jsesc = __commonJS({
|
|
|
403
389
|
},
|
|
404
390
|
});
|
|
405
391
|
|
|
406
|
-
//
|
|
392
|
+
// ../babel-babel/packages/babel-types/lib/index.js
|
|
407
393
|
var lib_exports = {};
|
|
408
394
|
|
|
409
395
|
__export(lib_exports, {
|
|
@@ -1652,14 +1638,11 @@ __export(lib_exports, {
|
|
|
1652
1638
|
yieldExpression: () => yieldExpression,
|
|
1653
1639
|
});
|
|
1654
1640
|
|
|
1655
|
-
//
|
|
1641
|
+
// ../babel-babel/packages/babel-helper-validator-identifier/lib/index.js
|
|
1656
1642
|
var nonASCIIidentifierStartChars = '\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC';
|
|
1657
1643
|
var nonASCIIidentifierChars = '\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65';
|
|
1658
1644
|
var nonASCIIidentifierStart = new RegExp('[' + nonASCIIidentifierStartChars + ']');
|
|
1659
1645
|
var nonASCIIidentifier = new RegExp('[' + nonASCIIidentifierStartChars + nonASCIIidentifierChars + ']');
|
|
1660
|
-
|
|
1661
|
-
nonASCIIidentifierStartChars =
|
|
1662
|
-
nonASCIIidentifierChars = null;
|
|
1663
1646
|
var astralIdentifierStartCodes = [
|
|
1664
1647
|
0,
|
|
1665
1648
|
11,
|
|
@@ -2772,7 +2755,7 @@ function isKeyword(word) {
|
|
|
2772
2755
|
return keywords.has(word);
|
|
2773
2756
|
}
|
|
2774
2757
|
|
|
2775
|
-
//
|
|
2758
|
+
// ../babel-babel/packages/babel-helper-string-parser/lib/index.js
|
|
2776
2759
|
var _isDigit = function isDigit(code2) {
|
|
2777
2760
|
return code2 >= 48 && code2 <= 57;
|
|
2778
2761
|
};
|
|
@@ -3127,7 +3110,7 @@ function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) {
|
|
|
3127
3110
|
};
|
|
3128
3111
|
}
|
|
3129
3112
|
|
|
3130
|
-
//
|
|
3113
|
+
// ../babel-babel/packages/babel-types/lib/index.js
|
|
3131
3114
|
function shallowEqual(actual, expected) {
|
|
3132
3115
|
const keys2 = Object.keys(expected);
|
|
3133
3116
|
|
|
@@ -9349,7 +9332,7 @@ var classMethodOrPropertyCommon = () => ({
|
|
|
9349
9332
|
},
|
|
9350
9333
|
});
|
|
9351
9334
|
|
|
9352
|
-
var classMethodOrDeclareMethodCommon = () => ({
|
|
9335
|
+
var classMethodOrDeclareMethodCommon = (allowDecorators = true) => ({
|
|
9353
9336
|
...functionCommon(),
|
|
9354
9337
|
...classMethodOrPropertyCommon(),
|
|
9355
9338
|
params: validateArrayOfType('FunctionParameter', 'TSParameterProperty'),
|
|
@@ -9361,10 +9344,12 @@ var classMethodOrDeclareMethodCommon = () => ({
|
|
|
9361
9344
|
validate: chain(assertValueType('string'), assertOneOf('public', 'private', 'protected')),
|
|
9362
9345
|
optional: true,
|
|
9363
9346
|
},
|
|
9364
|
-
|
|
9365
|
-
|
|
9366
|
-
|
|
9367
|
-
|
|
9347
|
+
...allowDecorators ? {
|
|
9348
|
+
decorators: {
|
|
9349
|
+
validate: arrayOfType('Decorator'),
|
|
9350
|
+
optional: true,
|
|
9351
|
+
},
|
|
9352
|
+
} : {},
|
|
9368
9353
|
});
|
|
9369
9354
|
|
|
9370
9355
|
defineType$4('ClassMethod', {
|
|
@@ -10837,7 +10822,6 @@ defineType('TSDeclareFunction', {
|
|
|
10837
10822
|
});
|
|
10838
10823
|
defineType('TSDeclareMethod', {
|
|
10839
10824
|
visitor: [
|
|
10840
|
-
'decorators',
|
|
10841
10825
|
'key',
|
|
10842
10826
|
'typeParameters',
|
|
10843
10827
|
'params',
|
|
@@ -10845,7 +10829,7 @@ defineType('TSDeclareMethod', {
|
|
|
10845
10829
|
],
|
|
10846
10830
|
...classMethodOrPropertyUnionShapeCommon(),
|
|
10847
10831
|
fields: {
|
|
10848
|
-
...classMethodOrDeclareMethodCommon(),
|
|
10832
|
+
...classMethodOrDeclareMethodCommon(false),
|
|
10849
10833
|
...tSFunctionTypeAnnotationCommon(),
|
|
10850
10834
|
},
|
|
10851
10835
|
});
|
|
@@ -13798,10 +13782,9 @@ function tsDeclareFunction(id = null, typeParameters = null, params, returnType
|
|
|
13798
13782
|
return node;
|
|
13799
13783
|
}
|
|
13800
13784
|
|
|
13801
|
-
function tsDeclareMethod(
|
|
13785
|
+
function tsDeclareMethod(key, typeParameters = null, params, returnType = null) {
|
|
13802
13786
|
const node = {
|
|
13803
13787
|
type: 'TSDeclareMethod',
|
|
13804
|
-
decorators,
|
|
13805
13788
|
key,
|
|
13806
13789
|
typeParameters,
|
|
13807
13790
|
params,
|
|
@@ -13814,7 +13797,6 @@ function tsDeclareMethod(decorators = null, key, typeParameters = null, params,
|
|
|
13814
13797
|
};
|
|
13815
13798
|
|
|
13816
13799
|
const defs2 = NODE_FIELDS.TSDeclareMethod;
|
|
13817
|
-
validate(defs2.decorators, node, 'decorators', decorators, 1);
|
|
13818
13800
|
validate(defs2.key, node, 'key', key, 1);
|
|
13819
13801
|
validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
|
|
13820
13802
|
validate(defs2.params, node, 'params', params, 1);
|
|
@@ -16463,15 +16445,13 @@ function removeTypeDuplicates$1(nodesIn) {
|
|
|
16463
16445
|
const name = getQualifiedName$1(node.id);
|
|
16464
16446
|
|
|
16465
16447
|
if (generics.has(name)) {
|
|
16466
|
-
|
|
16448
|
+
const existingTypeParameters = generics.get(name).typeParameters;
|
|
16467
16449
|
|
|
16468
|
-
if (
|
|
16450
|
+
if (existingTypeParameters) {
|
|
16469
16451
|
if (node.typeParameters) {
|
|
16470
|
-
|
|
16471
|
-
|
|
16452
|
+
existingTypeParameters.params.push(...node.typeParameters.params);
|
|
16453
|
+
existingTypeParameters.params = removeTypeDuplicates$1(existingTypeParameters.params);
|
|
16472
16454
|
}
|
|
16473
|
-
} else {
|
|
16474
|
-
existing = node.typeParameters;
|
|
16475
16455
|
}
|
|
16476
16456
|
} else {
|
|
16477
16457
|
generics.set(name, node);
|
|
@@ -16550,14 +16530,11 @@ function removeTypeDuplicates(nodesIn) {
|
|
|
16550
16530
|
const name = getQualifiedName(node.typeName);
|
|
16551
16531
|
|
|
16552
16532
|
if (generics.has(name)) {
|
|
16553
|
-
|
|
16554
|
-
const existingTypeArguments = existing[typeArgumentsKey];
|
|
16533
|
+
const existingTypeArguments = generics.get(name)[typeArgumentsKey];
|
|
16555
16534
|
|
|
16556
16535
|
if (existingTypeArguments) {
|
|
16557
16536
|
existingTypeArguments.params.push(...typeArguments.params);
|
|
16558
16537
|
existingTypeArguments.params = removeTypeDuplicates(existingTypeArguments.params);
|
|
16559
|
-
} else {
|
|
16560
|
-
existing = typeArguments;
|
|
16561
16538
|
}
|
|
16562
16539
|
} else {
|
|
16563
16540
|
generics.set(name, node);
|
|
@@ -16617,6 +16594,9 @@ function cloneIfNodeOrArray(obj, deep, withoutLoc, commentsCache) {
|
|
|
16617
16594
|
}
|
|
16618
16595
|
|
|
16619
16596
|
function cloneNode(node, deep = true, withoutLoc = false) {
|
|
16597
|
+
if (!node)
|
|
16598
|
+
return node;
|
|
16599
|
+
|
|
16620
16600
|
return cloneNodeInternal(node, deep, withoutLoc, /* @__PURE__ */new Map());
|
|
16621
16601
|
}
|
|
16622
16602
|
|
|
@@ -16852,7 +16832,7 @@ function toBlock(node, parent) {
|
|
|
16852
16832
|
return node;
|
|
16853
16833
|
}
|
|
16854
16834
|
|
|
16855
|
-
let blockNodes
|
|
16835
|
+
let blockNodes;
|
|
16856
16836
|
|
|
16857
16837
|
if (isEmptyStatement(node)) {
|
|
16858
16838
|
blockNodes = [];
|
|
@@ -17812,7 +17792,7 @@ var react = {
|
|
|
17812
17792
|
buildChildren,
|
|
17813
17793
|
};
|
|
17814
17794
|
|
|
17815
|
-
//
|
|
17795
|
+
// ../babel-babel/packages/babel-parser/lib/index.js
|
|
17816
17796
|
var Position = class {
|
|
17817
17797
|
line;
|
|
17818
17798
|
column;
|
|
@@ -17904,6 +17884,7 @@ var StandardErrors = {
|
|
|
17904
17884
|
ConstructorIsAsync: 'Constructor can\'t be an async function.',
|
|
17905
17885
|
ConstructorIsGenerator: 'Constructor can\'t be a generator.',
|
|
17906
17886
|
DeclarationMissingInitializer: ({kind}) => `Missing initializer in ${kind} declaration.`,
|
|
17887
|
+
DecoratorAbstractMethod: 'Decorators can\'t be used with an abstract method.',
|
|
17907
17888
|
DecoratorArgumentsOutsideParentheses: 'Decorator arguments must be moved inside parentheses: use \'@(decorator(args))\' instead of \'@(decorator)(args)\'.',
|
|
17908
17889
|
DecoratorsBeforeAfterExport: 'Decorators can be placed *either* before or after the \'export\' keyword, but not in both locations at the same time.',
|
|
17909
17890
|
DecoratorConstructor: 'Decorators can\'t be used with a constructor. Did you mean \'@dec class { ... }\'?',
|
|
@@ -18064,6 +18045,7 @@ var PipelineOperatorErrors = {
|
|
|
18064
18045
|
PipeUnparenthesizedBody: ({type}) => `Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({
|
|
18065
18046
|
type,
|
|
18066
18047
|
})}; please wrap it in parentheses.`,
|
|
18048
|
+
PipelineUnparenthesized: 'Cannot mix binary operator with solo-await F#-style pipeline. Please wrap the pipeline in parentheses.',
|
|
18067
18049
|
};
|
|
18068
18050
|
|
|
18069
18051
|
function defineHidden(obj, key, value) {
|
|
@@ -19252,9 +19234,6 @@ var nonASCIIidentifierStartChars2 = '\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u
|
|
|
19252
19234
|
var nonASCIIidentifierChars2 = '\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65';
|
|
19253
19235
|
var nonASCIIidentifierStart2 = new RegExp('[' + nonASCIIidentifierStartChars2 + ']');
|
|
19254
19236
|
var nonASCIIidentifier2 = new RegExp('[' + nonASCIIidentifierStartChars2 + nonASCIIidentifierChars2 + ']');
|
|
19255
|
-
|
|
19256
|
-
nonASCIIidentifierStartChars2 =
|
|
19257
|
-
nonASCIIidentifierChars2 = null;
|
|
19258
19237
|
var astralIdentifierStartCodes2 = [
|
|
19259
19238
|
0,
|
|
19260
19239
|
11,
|
|
@@ -21604,6 +21583,10 @@ var ProductionParameterHandler = class {
|
|
|
21604
21583
|
get hasIn() {
|
|
21605
21584
|
return (this.currentFlags() & 8) > 0;
|
|
21606
21585
|
}
|
|
21586
|
+
|
|
21587
|
+
get inFSharpPipelineDirectBody() {
|
|
21588
|
+
return (this.currentFlags() & 16) === 0;
|
|
21589
|
+
}
|
|
21607
21590
|
};
|
|
21608
21591
|
|
|
21609
21592
|
function functionFlags(isAsync, isGenerator) {
|
|
@@ -21858,7 +21841,7 @@ var CommentsParser = class extends BaseParser {
|
|
|
21858
21841
|
};
|
|
21859
21842
|
|
|
21860
21843
|
var State = class _State {
|
|
21861
|
-
flags =
|
|
21844
|
+
flags = 1024;
|
|
21862
21845
|
get strict() {
|
|
21863
21846
|
return (this.flags & 1) > 0;
|
|
21864
21847
|
}
|
|
@@ -21954,32 +21937,39 @@ var State = class _State {
|
|
|
21954
21937
|
this.flags &= -65;
|
|
21955
21938
|
}
|
|
21956
21939
|
|
|
21957
|
-
|
|
21958
|
-
maxNumOfResolvableTopics: 0,
|
|
21959
|
-
maxTopicIndex: null,
|
|
21960
|
-
};
|
|
21961
|
-
get soloAwait() {
|
|
21940
|
+
get inConditionalConsequent() {
|
|
21962
21941
|
return (this.flags & 128) > 0;
|
|
21963
21942
|
}
|
|
21964
21943
|
|
|
21965
|
-
set
|
|
21944
|
+
set inConditionalConsequent(v) {
|
|
21966
21945
|
if (v)
|
|
21967
21946
|
this.flags |= 128;
|
|
21968
21947
|
else
|
|
21969
21948
|
this.flags &= -129;
|
|
21970
21949
|
}
|
|
21971
21950
|
|
|
21972
|
-
get
|
|
21951
|
+
get inHackPipelineBody() {
|
|
21973
21952
|
return (this.flags & 256) > 0;
|
|
21974
21953
|
}
|
|
21975
21954
|
|
|
21976
|
-
set
|
|
21955
|
+
set inHackPipelineBody(v) {
|
|
21977
21956
|
if (v)
|
|
21978
21957
|
this.flags |= 256;
|
|
21979
21958
|
else
|
|
21980
21959
|
this.flags &= -257;
|
|
21981
21960
|
}
|
|
21982
21961
|
|
|
21962
|
+
get seenTopicReference() {
|
|
21963
|
+
return (this.flags & 512) > 0;
|
|
21964
|
+
}
|
|
21965
|
+
|
|
21966
|
+
set seenTopicReference(v) {
|
|
21967
|
+
if (v)
|
|
21968
|
+
this.flags |= 512;
|
|
21969
|
+
else
|
|
21970
|
+
this.flags &= -513;
|
|
21971
|
+
}
|
|
21972
|
+
|
|
21983
21973
|
labels = [];
|
|
21984
21974
|
commentsLen = 0;
|
|
21985
21975
|
commentStack = [];
|
|
@@ -21992,37 +21982,37 @@ var State = class _State {
|
|
|
21992
21982
|
lastTokStartLoc = null;
|
|
21993
21983
|
context = [types.brace];
|
|
21994
21984
|
get canStartJSXElement() {
|
|
21995
|
-
return (this.flags &
|
|
21985
|
+
return (this.flags & 1024) > 0;
|
|
21996
21986
|
}
|
|
21997
21987
|
|
|
21998
21988
|
set canStartJSXElement(v) {
|
|
21999
21989
|
if (v)
|
|
22000
|
-
this.flags |=
|
|
21990
|
+
this.flags |= 1024;
|
|
22001
21991
|
else
|
|
22002
|
-
this.flags &= -
|
|
21992
|
+
this.flags &= -1025;
|
|
22003
21993
|
}
|
|
22004
21994
|
|
|
22005
21995
|
get containsEsc() {
|
|
22006
|
-
return (this.flags &
|
|
21996
|
+
return (this.flags & 2048) > 0;
|
|
22007
21997
|
}
|
|
22008
21998
|
|
|
22009
21999
|
set containsEsc(v) {
|
|
22010
22000
|
if (v)
|
|
22011
|
-
this.flags |=
|
|
22001
|
+
this.flags |= 2048;
|
|
22012
22002
|
else
|
|
22013
|
-
this.flags &= -
|
|
22003
|
+
this.flags &= -2049;
|
|
22014
22004
|
}
|
|
22015
22005
|
|
|
22016
22006
|
firstInvalidTemplateEscapePos = null;
|
|
22017
22007
|
get hasTopLevelAwait() {
|
|
22018
|
-
return (this.flags &
|
|
22008
|
+
return (this.flags & 4096) > 0;
|
|
22019
22009
|
}
|
|
22020
22010
|
|
|
22021
22011
|
set hasTopLevelAwait(v) {
|
|
22022
22012
|
if (v)
|
|
22023
|
-
this.flags |=
|
|
22013
|
+
this.flags |= 4096;
|
|
22024
22014
|
else
|
|
22025
|
-
this.flags &= -
|
|
22015
|
+
this.flags &= -4097;
|
|
22026
22016
|
}
|
|
22027
22017
|
|
|
22028
22018
|
strictErrors = /* @__PURE__ */new Map();
|
|
@@ -22044,7 +22034,6 @@ var State = class _State {
|
|
|
22044
22034
|
state.potentialArrowAt = this.potentialArrowAt;
|
|
22045
22035
|
state.noArrowAt = this.noArrowAt.slice();
|
|
22046
22036
|
state.noArrowParamsConversionAt = this.noArrowParamsConversionAt.slice();
|
|
22047
|
-
state.topicContext = this.topicContext;
|
|
22048
22037
|
state.labels = this.labels.slice();
|
|
22049
22038
|
state.commentsLen = this.commentsLen;
|
|
22050
22039
|
state.commentStack = this.commentStack.slice();
|
|
@@ -23376,6 +23365,13 @@ var Tokenizer = class extends CommentsParser {
|
|
|
23376
23365
|
next = this.input.charCodeAt(this.state.pos);
|
|
23377
23366
|
}
|
|
23378
23367
|
|
|
23368
|
+
const str = this
|
|
23369
|
+
.input
|
|
23370
|
+
.slice(start, this
|
|
23371
|
+
.state
|
|
23372
|
+
.pos)
|
|
23373
|
+
.replaceAll('_', '');
|
|
23374
|
+
|
|
23379
23375
|
if (next === 110) {
|
|
23380
23376
|
if (isFloat || hasLeadingZero) {
|
|
23381
23377
|
this.raise(Errors.InvalidBigIntLiteral, startLoc);
|
|
@@ -23389,13 +23385,6 @@ var Tokenizer = class extends CommentsParser {
|
|
|
23389
23385
|
throw this.raise(Errors.NumberIdentifier, this.state.curPosition());
|
|
23390
23386
|
}
|
|
23391
23387
|
|
|
23392
|
-
const str = this
|
|
23393
|
-
.input
|
|
23394
|
-
.slice(start, this
|
|
23395
|
-
.state
|
|
23396
|
-
.pos)
|
|
23397
|
-
.replace(/[_mn]/g, '');
|
|
23398
|
-
|
|
23399
23388
|
if (isBigInt) {
|
|
23400
23389
|
this.finishToken(132, str);
|
|
23401
23390
|
return;
|
|
@@ -24175,11 +24164,13 @@ var Node = class {
|
|
|
24175
24164
|
this.end = 0;
|
|
24176
24165
|
this.loc = new SourceLocation(loc);
|
|
24177
24166
|
|
|
24178
|
-
if (parser
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24167
|
+
if (parser != null) {
|
|
24168
|
+
if (parser.optionFlags & 128)
|
|
24169
|
+
this.range = [pos, 0];
|
|
24170
|
+
|
|
24171
|
+
if (parser.filename)
|
|
24172
|
+
this.loc.filename = parser.filename;
|
|
24173
|
+
}
|
|
24183
24174
|
}
|
|
24184
24175
|
|
|
24185
24176
|
type = '';
|
|
@@ -24206,10 +24197,6 @@ var NodeUtils = class extends UtilParser {
|
|
|
24206
24197
|
}
|
|
24207
24198
|
|
|
24208
24199
|
finishNodeAt(node, type, endLoc) {
|
|
24209
|
-
if (process.env.NODE_ENV !== 'production' && node.end > 0) {
|
|
24210
|
-
throw new Error('Do not call finishNode*() twice on the same node. Instead use resetEndLocation() or change type directly.');
|
|
24211
|
-
}
|
|
24212
|
-
|
|
24213
24200
|
node.type = type;
|
|
24214
24201
|
node.end = endLoc.index;
|
|
24215
24202
|
node.loc.end = endLoc;
|
|
@@ -27425,7 +27412,18 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
27425
27412
|
}
|
|
27426
27413
|
}
|
|
27427
27414
|
|
|
27428
|
-
|
|
27415
|
+
this.next();
|
|
27416
|
+
const node = this.startNodeAt(startLoc);
|
|
27417
|
+
|
|
27418
|
+
node.test = expr;
|
|
27419
|
+
const oldInConditionalConsequent = this.state.inConditionalConsequent;
|
|
27420
|
+
|
|
27421
|
+
this.state.inConditionalConsequent = true;
|
|
27422
|
+
node.consequent = this.parseMaybeAssignAllowIn();
|
|
27423
|
+
this.state.inConditionalConsequent = oldInConditionalConsequent;
|
|
27424
|
+
this.expect(10);
|
|
27425
|
+
node.alternate = this.parseMaybeAssign();
|
|
27426
|
+
return this.finishNode(node, 'ConditionalExpression');
|
|
27429
27427
|
}
|
|
27430
27428
|
|
|
27431
27429
|
parseParenItem(node, startLoc) {
|
|
@@ -28010,7 +28008,24 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
28010
28008
|
}
|
|
28011
28009
|
|
|
28012
28010
|
shouldParseAsyncArrow() {
|
|
28013
|
-
|
|
28011
|
+
if (this.match(10)) {
|
|
28012
|
+
if (this.state.inConditionalConsequent)
|
|
28013
|
+
return false;
|
|
28014
|
+
|
|
28015
|
+
return true;
|
|
28016
|
+
}
|
|
28017
|
+
|
|
28018
|
+
return super.shouldParseAsyncArrow();
|
|
28019
|
+
}
|
|
28020
|
+
|
|
28021
|
+
parseParenAndDistinguishExpression(canBeArrow) {
|
|
28022
|
+
const oldInConditionalConsequent = this.state.inConditionalConsequent;
|
|
28023
|
+
|
|
28024
|
+
this.state.inConditionalConsequent = false;
|
|
28025
|
+
const result = super.parseParenAndDistinguishExpression(canBeArrow);
|
|
28026
|
+
|
|
28027
|
+
this.state.inConditionalConsequent = oldInConditionalConsequent;
|
|
28028
|
+
return result;
|
|
28014
28029
|
}
|
|
28015
28030
|
|
|
28016
28031
|
canHaveLeadingDecorator() {
|
|
@@ -29118,7 +29133,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
29118
29133
|
if (op === 35) {
|
|
29119
29134
|
this.expectPlugin('pipelineOperator');
|
|
29120
29135
|
|
|
29121
|
-
if (this.
|
|
29136
|
+
if (this.prodParam.inFSharpPipelineDirectBody) {
|
|
29122
29137
|
return left;
|
|
29123
29138
|
}
|
|
29124
29139
|
}
|
|
@@ -29160,9 +29175,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
29160
29175
|
});
|
|
29161
29176
|
|
|
29162
29177
|
case 'fsharp':
|
|
29163
|
-
return this.
|
|
29164
|
-
return this.parseFSharpPipelineBody(prec);
|
|
29165
|
-
});
|
|
29178
|
+
return this.parseFSharpPipelineBody(prec);
|
|
29166
29179
|
}
|
|
29167
29180
|
|
|
29168
29181
|
default:
|
|
@@ -29489,9 +29502,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
29489
29502
|
parseCallExpressionArguments(allowPlaceholder, nodeForExtra, refExpressionErrors) {
|
|
29490
29503
|
const elts = [];
|
|
29491
29504
|
let first = true;
|
|
29492
|
-
const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
|
|
29493
29505
|
|
|
29494
|
-
this.state.inFSharpPipelineDirectBody = false;
|
|
29495
29506
|
while (!this.eat(7)) {
|
|
29496
29507
|
if (first) {
|
|
29497
29508
|
first = false;
|
|
@@ -29516,7 +29527,6 @@ var ExpressionParser = class extends LValParser {
|
|
|
29516
29527
|
));
|
|
29517
29528
|
}
|
|
29518
29529
|
|
|
29519
|
-
this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
|
|
29520
29530
|
return elts;
|
|
29521
29531
|
}
|
|
29522
29532
|
|
|
@@ -29700,7 +29710,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
29700
29710
|
this.next();
|
|
29701
29711
|
return this.parseAsyncFunctionExpression(this.startNodeAtNode(id));
|
|
29702
29712
|
} else if (tokenIsIdentifier(type2)) {
|
|
29703
|
-
if (this.lookaheadCharCode() === 61) {
|
|
29713
|
+
if (canBeArrow && this.lookaheadCharCode() === 61) {
|
|
29704
29714
|
return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(id));
|
|
29705
29715
|
} else {
|
|
29706
29716
|
return id;
|
|
@@ -29965,9 +29975,6 @@ var ExpressionParser = class extends LValParser {
|
|
|
29965
29975
|
let val;
|
|
29966
29976
|
this.next();
|
|
29967
29977
|
this.expressionScope.enter(newArrowHeadScope());
|
|
29968
|
-
const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
|
|
29969
|
-
|
|
29970
|
-
this.state.inFSharpPipelineDirectBody = false;
|
|
29971
29978
|
const innerStartLoc = this.state.startLoc;
|
|
29972
29979
|
const exprList = [];
|
|
29973
29980
|
const refExpressionErrors = new ExpressionErrors();
|
|
@@ -30010,7 +30017,6 @@ var ExpressionParser = class extends LValParser {
|
|
|
30010
30017
|
|
|
30011
30018
|
const innerEndLoc = this.state.lastTokEndLoc;
|
|
30012
30019
|
this.expect(7);
|
|
30013
|
-
this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
|
|
30014
30020
|
let arrowNode = this.startNodeAt(startLoc);
|
|
30015
30021
|
|
|
30016
30022
|
if (canBeArrow && this.shouldParseArrow(exprList) && (arrowNode = this.parseArrow(arrowNode))) {
|
|
@@ -30177,9 +30183,6 @@ var ExpressionParser = class extends LValParser {
|
|
|
30177
30183
|
}
|
|
30178
30184
|
|
|
30179
30185
|
parseObjectLike(close, isPattern3, refExpressionErrors) {
|
|
30180
|
-
const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
|
|
30181
|
-
|
|
30182
|
-
this.state.inFSharpPipelineDirectBody = false;
|
|
30183
30186
|
let sawProto = false;
|
|
30184
30187
|
let first = true;
|
|
30185
30188
|
const node = this.startNode();
|
|
@@ -30211,7 +30214,6 @@ var ExpressionParser = class extends LValParser {
|
|
|
30211
30214
|
}
|
|
30212
30215
|
|
|
30213
30216
|
this.next();
|
|
30214
|
-
this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
|
|
30215
30217
|
const type = isPattern3 ? 'ObjectPattern' : 'ObjectExpression';
|
|
30216
30218
|
|
|
30217
30219
|
return this.finishNode(node, type);
|
|
@@ -30230,7 +30232,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
30230
30232
|
}
|
|
30231
30233
|
|
|
30232
30234
|
parsePropertyDefinition(refExpressionErrors) {
|
|
30233
|
-
|
|
30235
|
+
const decorators = [];
|
|
30234
30236
|
|
|
30235
30237
|
if (this.match(22)) {
|
|
30236
30238
|
if (this.hasPlugin('decorators')) {
|
|
@@ -30256,7 +30258,6 @@ var ExpressionParser = class extends LValParser {
|
|
|
30256
30258
|
|
|
30257
30259
|
if (decorators.length) {
|
|
30258
30260
|
prop.decorators = decorators;
|
|
30259
|
-
decorators = [];
|
|
30260
30261
|
}
|
|
30261
30262
|
|
|
30262
30263
|
prop.method = false;
|
|
@@ -30460,13 +30461,9 @@ var ExpressionParser = class extends LValParser {
|
|
|
30460
30461
|
}
|
|
30461
30462
|
|
|
30462
30463
|
parseArrayLike(close, refExpressionErrors) {
|
|
30463
|
-
const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
|
|
30464
|
-
|
|
30465
|
-
this.state.inFSharpPipelineDirectBody = false;
|
|
30466
30464
|
const node = this.startNode();
|
|
30467
30465
|
this.next();
|
|
30468
30466
|
node.elements = this.parseExprList(close, true, refExpressionErrors, node);
|
|
30469
|
-
this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
|
|
30470
30467
|
return this.finishNode(node, 'ArrayExpression');
|
|
30471
30468
|
}
|
|
30472
30469
|
|
|
@@ -30474,8 +30471,8 @@ var ExpressionParser = class extends LValParser {
|
|
|
30474
30471
|
this.scope.enter(514 | 4);
|
|
30475
30472
|
let flags = functionFlags(isAsync, false);
|
|
30476
30473
|
|
|
30477
|
-
if (!this.match(2)
|
|
30478
|
-
flags |= 8;
|
|
30474
|
+
if (!this.match(2)) {
|
|
30475
|
+
flags |= this.prodParam.currentFlags() & (8 | 16);
|
|
30479
30476
|
}
|
|
30480
30477
|
|
|
30481
30478
|
this.prodParam.enter(flags);
|
|
@@ -30723,7 +30720,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
30723
30720
|
return isAwaitAllowed;
|
|
30724
30721
|
}
|
|
30725
30722
|
|
|
30726
|
-
parseAwait(startLoc) {
|
|
30723
|
+
parseAwait(startLoc, soloAwait) {
|
|
30727
30724
|
const node = this.startNodeAt(startLoc);
|
|
30728
30725
|
this.expressionScope.recordParameterInitializerError(Errors.AwaitExpressionFormalParameter, node);
|
|
30729
30726
|
|
|
@@ -30739,7 +30736,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
30739
30736
|
}
|
|
30740
30737
|
}
|
|
30741
30738
|
|
|
30742
|
-
if (!
|
|
30739
|
+
if (!soloAwait) {
|
|
30743
30740
|
node.argument = this.parseMaybeUnary(null, true);
|
|
30744
30741
|
}
|
|
30745
30742
|
|
|
@@ -30822,36 +30819,26 @@ var ExpressionParser = class extends LValParser {
|
|
|
30822
30819
|
}
|
|
30823
30820
|
|
|
30824
30821
|
withTopicBindingContext(callback) {
|
|
30825
|
-
const
|
|
30822
|
+
const oldInHackPipelineBody = this.state.inHackPipelineBody;
|
|
30826
30823
|
|
|
30827
|
-
this.state.
|
|
30828
|
-
|
|
30829
|
-
maxTopicIndex: null,
|
|
30830
|
-
};
|
|
30831
|
-
try {
|
|
30832
|
-
return callback();
|
|
30833
|
-
} finally {
|
|
30834
|
-
this.state.topicContext = outerContextTopicState;
|
|
30835
|
-
}
|
|
30836
|
-
}
|
|
30837
|
-
|
|
30838
|
-
withSoloAwaitPermittingContext(callback) {
|
|
30839
|
-
const outerContextSoloAwaitState = this.state.soloAwait;
|
|
30824
|
+
this.state.inHackPipelineBody = true;
|
|
30825
|
+
const oldSeenTopicReference = this.state.seenTopicReference;
|
|
30840
30826
|
|
|
30841
|
-
this.state.
|
|
30827
|
+
this.state.seenTopicReference = false;
|
|
30842
30828
|
try {
|
|
30843
30829
|
return callback();
|
|
30844
30830
|
} finally {
|
|
30845
|
-
this.state.
|
|
30831
|
+
this.state.inHackPipelineBody = oldInHackPipelineBody;
|
|
30832
|
+
this.state.seenTopicReference = oldSeenTopicReference;
|
|
30846
30833
|
}
|
|
30847
30834
|
}
|
|
30848
30835
|
|
|
30849
30836
|
allowInAnd(callback) {
|
|
30850
30837
|
const flags = this.prodParam.currentFlags();
|
|
30851
|
-
const prodParamToSet = 8 & ~flags;
|
|
30838
|
+
const prodParamToSet = (8 | 16) & ~flags;
|
|
30852
30839
|
|
|
30853
30840
|
if (prodParamToSet) {
|
|
30854
|
-
this.prodParam.enter(flags | 8);
|
|
30841
|
+
this.prodParam.enter(flags | 8 | 16);
|
|
30855
30842
|
try {
|
|
30856
30843
|
return callback();
|
|
30857
30844
|
} finally {
|
|
@@ -30865,9 +30852,10 @@ var ExpressionParser = class extends LValParser {
|
|
|
30865
30852
|
disallowInAnd(callback) {
|
|
30866
30853
|
const flags = this.prodParam.currentFlags();
|
|
30867
30854
|
const prodParamToClear = 8 & flags;
|
|
30855
|
+
const prodParamToSet = 16 & ~flags;
|
|
30868
30856
|
|
|
30869
|
-
if (prodParamToClear) {
|
|
30870
|
-
this.prodParam.enter(flags & ~8);
|
|
30857
|
+
if (prodParamToClear || prodParamToSet) {
|
|
30858
|
+
this.prodParam.enter(flags & ~8 | 16);
|
|
30871
30859
|
try {
|
|
30872
30860
|
return callback();
|
|
30873
30861
|
} finally {
|
|
@@ -30879,27 +30867,37 @@ var ExpressionParser = class extends LValParser {
|
|
|
30879
30867
|
}
|
|
30880
30868
|
|
|
30881
30869
|
registerTopicReference() {
|
|
30882
|
-
this.state.
|
|
30870
|
+
this.state.seenTopicReference = true;
|
|
30883
30871
|
}
|
|
30884
30872
|
|
|
30885
30873
|
topicReferenceIsAllowedInCurrentContext() {
|
|
30886
|
-
return this.state.
|
|
30874
|
+
return this.state.inHackPipelineBody;
|
|
30887
30875
|
}
|
|
30888
30876
|
|
|
30889
30877
|
topicReferenceWasUsedInCurrentContext() {
|
|
30890
|
-
return this.state.
|
|
30878
|
+
return this.state.seenTopicReference;
|
|
30891
30879
|
}
|
|
30892
30880
|
|
|
30893
30881
|
parseFSharpPipelineBody(prec) {
|
|
30894
30882
|
const startLoc = this.state.startLoc;
|
|
30895
30883
|
|
|
30896
30884
|
this.state.potentialArrowAt = this.state.start;
|
|
30897
|
-
|
|
30885
|
+
this.prodParam.enter(this.prodParam.currentFlags() & ~16);
|
|
30886
|
+
let ret;
|
|
30898
30887
|
|
|
30899
|
-
this.
|
|
30900
|
-
|
|
30888
|
+
if (this.isContextual(92) && this.recordAwaitIfAllowed()) {
|
|
30889
|
+
this.next();
|
|
30890
|
+
ret = this.parseAwait(startLoc, true);
|
|
30891
|
+
const nextOp = this.state.type;
|
|
30892
|
+
|
|
30893
|
+
if (tokenIsOperator(nextOp) && nextOp !== 35 && (this.prodParam.hasIn || nextOp !== 54)) {
|
|
30894
|
+
this.raise(Errors.PipelineUnparenthesized, startLoc);
|
|
30895
|
+
}
|
|
30896
|
+
} else {
|
|
30897
|
+
ret = this.parseExprOp(this.parseMaybeUnaryOrPrivate(), startLoc, prec);
|
|
30898
|
+
}
|
|
30901
30899
|
|
|
30902
|
-
this.
|
|
30900
|
+
this.prodParam.exit();
|
|
30903
30901
|
return ret;
|
|
30904
30902
|
}
|
|
30905
30903
|
|
|
@@ -32120,8 +32118,14 @@ var StatementParser = class extends ExpressionParser {
|
|
|
32120
32118
|
|
|
32121
32119
|
this.parseClassMember(classBody2, member, state);
|
|
32122
32120
|
|
|
32123
|
-
if (member.
|
|
32124
|
-
this.
|
|
32121
|
+
if (member.decorators && member.decorators.length > 0) {
|
|
32122
|
+
if (this.hasPlugin('typescript') && (this.hasPlugin('estree') ? member.type === 'TSAbstractMethodDefinition' : member.type === 'TSDeclareMethod')) {
|
|
32123
|
+
this.raise(Errors.DecoratorAbstractMethod, member);
|
|
32124
|
+
}
|
|
32125
|
+
|
|
32126
|
+
if (member.kind === 'constructor') {
|
|
32127
|
+
this.raise(Errors.DecoratorConstructor, member);
|
|
32128
|
+
}
|
|
32125
32129
|
}
|
|
32126
32130
|
}
|
|
32127
32131
|
|
|
@@ -33326,7 +33330,7 @@ function getParserClass(pluginsMap) {
|
|
|
33326
33330
|
return cls;
|
|
33327
33331
|
}
|
|
33328
33332
|
|
|
33329
|
-
//
|
|
33333
|
+
// ../babel-babel/packages/babel-code-frame/lib/common-BO7XIBW3.js
|
|
33330
33334
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
33331
33335
|
|
|
33332
33336
|
function getMarkerLines(loc, source, opts, startLineBaseZero) {
|
|
@@ -33484,10 +33488,10 @@ ${frame}`;
|
|
|
33484
33488
|
return defs2.reset(frame);
|
|
33485
33489
|
}
|
|
33486
33490
|
|
|
33487
|
-
//
|
|
33491
|
+
// ../babel-babel/packages/babel-code-frame/lib/index.js
|
|
33488
33492
|
import * as util from 'util';
|
|
33489
33493
|
|
|
33490
|
-
const {styleText = (a, b) => b} = util;// node_modules/js-tokens/index.js
|
|
33494
|
+
const {styleText = (a, b) => b} = util;// ../babel-babel/node_modules/js-tokens/index.js
|
|
33491
33495
|
var HashbangComment;
|
|
33492
33496
|
var Identifier2;
|
|
33493
33497
|
var JSXIdentifier2;
|
|
@@ -33997,7 +34001,7 @@ jsTokens = function*(input, {jsx: jsx2 = false} = {}) {
|
|
|
33997
34001
|
};
|
|
33998
34002
|
var js_tokens_default = jsTokens;
|
|
33999
34003
|
|
|
34000
|
-
//
|
|
34004
|
+
// ../babel-babel/packages/babel-code-frame/lib/index.js
|
|
34001
34005
|
function isColorSupported() {
|
|
34002
34006
|
return styleText('red', '-') !== '-';
|
|
34003
34007
|
}
|
|
@@ -34176,7 +34180,7 @@ function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
|
34176
34180
|
} : void 0);
|
|
34177
34181
|
}
|
|
34178
34182
|
|
|
34179
|
-
//
|
|
34183
|
+
// ../babel-babel/packages/babel-template/lib/index.js
|
|
34180
34184
|
var {assertExpressionStatement: assertExpressionStatement2} = lib_exports;
|
|
34181
34185
|
|
|
34182
34186
|
function makeStatementFormatter(fn) {
|
|
@@ -34333,7 +34337,7 @@ function parseAndBuildMetadata(formatter, code2, opts) {
|
|
|
34333
34337
|
const {
|
|
34334
34338
|
placeholderWhitelist,
|
|
34335
34339
|
placeholderPattern,
|
|
34336
|
-
preserveComments,
|
|
34340
|
+
preserveComments = false,
|
|
34337
34341
|
syntacticPlaceholders,
|
|
34338
34342
|
} = opts;
|
|
34339
34343
|
|
|
@@ -34815,7 +34819,7 @@ var index = Object.assign(smart.bind(void 0), {
|
|
|
34815
34819
|
ast: smart.ast,
|
|
34816
34820
|
});
|
|
34817
34821
|
|
|
34818
|
-
// node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
34822
|
+
// ../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
34819
34823
|
var comma = ','.charCodeAt(0);
|
|
34820
34824
|
var semicolon = ';'.charCodeAt(0);
|
|
34821
34825
|
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
@@ -35064,7 +35068,7 @@ function encode(decoded) {
|
|
|
35064
35068
|
return writer.flush();
|
|
35065
35069
|
}
|
|
35066
35070
|
|
|
35067
|
-
// node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
|
|
35071
|
+
// ../babel-babel/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
|
|
35068
35072
|
var schemeRegex = /^[\w+.-]+:\/\//;
|
|
35069
35073
|
var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
|
|
35070
35074
|
var fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
|
|
@@ -35284,7 +35288,7 @@ case 2:
|
|
|
35284
35288
|
}
|
|
35285
35289
|
}
|
|
35286
35290
|
|
|
35287
|
-
// node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs
|
|
35291
|
+
// ../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs
|
|
35288
35292
|
function stripFilename(path) {
|
|
35289
35293
|
if (!path)
|
|
35290
35294
|
return '';
|
|
@@ -35556,7 +35560,7 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
|
35556
35560
|
return index3;
|
|
35557
35561
|
}
|
|
35558
35562
|
|
|
35559
|
-
// node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
|
|
35563
|
+
// ../babel-babel/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
|
|
35560
35564
|
var SetArray = class {
|
|
35561
35565
|
constructor() {
|
|
35562
35566
|
this._indexes = {
|
|
@@ -35832,7 +35836,7 @@ function addMappingInternal(skipable, map, mapping) {
|
|
|
35832
35836
|
return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
|
|
35833
35837
|
}
|
|
35834
35838
|
|
|
35835
|
-
//
|
|
35839
|
+
// ../babel-babel/packages/babel-generator/lib/index.js
|
|
35836
35840
|
var import_jsesc = __toESM(require_jsesc(), 1);
|
|
35837
35841
|
|
|
35838
35842
|
var SourceMap = class {
|
|
@@ -37624,7 +37628,7 @@ function TSDeclareFunction2(node, parent) {
|
|
|
37624
37628
|
}
|
|
37625
37629
|
|
|
37626
37630
|
function TSDeclareMethod2(node) {
|
|
37627
|
-
_classMethodHead.call(this, node);
|
|
37631
|
+
_classMethodHead.call(this, node, false);
|
|
37628
37632
|
this.semicolon();
|
|
37629
37633
|
}
|
|
37630
37634
|
|
|
@@ -39673,8 +39677,10 @@ function ClassPrivateMethod2(node) {
|
|
|
39673
39677
|
this.print(node.body);
|
|
39674
39678
|
}
|
|
39675
39679
|
|
|
39676
|
-
function _classMethodHead(node) {
|
|
39677
|
-
|
|
39680
|
+
function _classMethodHead(node, allowDecorators = true) {
|
|
39681
|
+
if (allowDecorators) {
|
|
39682
|
+
this.printJoin(node.decorators);
|
|
39683
|
+
}
|
|
39678
39684
|
|
|
39679
39685
|
if (!this.format.preserveFormat) {
|
|
39680
39686
|
const endLine = node.key.loc?.end?.line;
|
|
@@ -41677,7 +41683,7 @@ function generate(ast, opts = {}, code2) {
|
|
|
41677
41683
|
return printer.generate(ast);
|
|
41678
41684
|
}
|
|
41679
41685
|
|
|
41680
|
-
// node_modules/obug/dist/core.js
|
|
41686
|
+
// ../babel-babel/node_modules/obug/dist/core.js
|
|
41681
41687
|
function selectColor(colors2, namespace) {
|
|
41682
41688
|
let hash = 0;
|
|
41683
41689
|
|
|
@@ -41724,7 +41730,7 @@ function enable(namespaces$1) {
|
|
|
41724
41730
|
names.push(ns);
|
|
41725
41731
|
}
|
|
41726
41732
|
|
|
41727
|
-
// node_modules/obug/dist/node.js
|
|
41733
|
+
// ../babel-babel/node_modules/obug/dist/node.js
|
|
41728
41734
|
var colors = [];
|
|
41729
41735
|
|
|
41730
41736
|
var inspectOpts = {};
|
|
@@ -41771,7 +41777,7 @@ function createDebug2(namespace, options) {
|
|
|
41771
41777
|
}
|
|
41772
41778
|
|
|
41773
41779
|
enable(process.env.DEBUG || '');
|
|
41774
|
-
//
|
|
41780
|
+
// ../babel-babel/packages/babel-helper-globals/data/builtin-lower.json
|
|
41775
41781
|
|
|
41776
41782
|
var builtin_lower_default = [
|
|
41777
41783
|
'decodeURI',
|
|
@@ -41789,7 +41795,7 @@ var builtin_lower_default = [
|
|
|
41789
41795
|
'unescape',
|
|
41790
41796
|
];
|
|
41791
41797
|
|
|
41792
|
-
//
|
|
41798
|
+
// ../babel-babel/packages/babel-helper-globals/data/builtin-upper.json
|
|
41793
41799
|
var builtin_upper_default = [
|
|
41794
41800
|
'AggregateError',
|
|
41795
41801
|
'Array',
|
|
@@ -41842,7 +41848,7 @@ var builtin_upper_default = [
|
|
|
41842
41848
|
'WeakSet',
|
|
41843
41849
|
];
|
|
41844
41850
|
|
|
41845
|
-
//
|
|
41851
|
+
// ../babel-babel/packages/babel-traverse/lib/index.js
|
|
41846
41852
|
var ReferencedIdentifier = [
|
|
41847
41853
|
'Identifier',
|
|
41848
41854
|
'JSXIdentifier',
|
package/bundle/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"
|
|
1
|
+
{"inputs":{"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js":{"bytes":13639,"imports":[],"format":"esm"},"../babel-babel/packages/babel-helper-string-parser/lib/index.js":{"bytes":7680,"imports":[],"format":"esm"},"../babel-babel/packages/babel-types/lib/index.js":{"bytes":352299,"imports":[{"path":"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js","kind":"import-statement","original":"@babel/helper-validator-identifier"},{"path":"../babel-babel/packages/babel-helper-string-parser/lib/index.js","kind":"import-statement","original":"@babel/helper-string-parser"}],"format":"esm"},"../babel-babel/packages/babel-parser/lib/index.js":{"bytes":481510,"imports":[],"format":"esm"},"../babel-babel/packages/babel-code-frame/lib/common-BO7XIBW3.js":{"bytes":3594,"imports":[],"format":"esm"},"../babel-babel/node_modules/js-tokens/index.js":{"bytes":12672,"imports":[],"format":"esm"},"../babel-babel/packages/babel-code-frame/lib/index.js":{"bytes":4080,"imports":[{"path":"../babel-babel/packages/babel-code-frame/lib/common-BO7XIBW3.js","kind":"import-statement","original":"./common-BO7XIBW3.js"},{"path":"util","kind":"import-statement","external":true},{"path":"../babel-babel/node_modules/js-tokens/index.js","kind":"import-statement","original":"js-tokens"},{"path":"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js","kind":"import-statement","original":"@babel/helper-validator-identifier"}],"format":"esm"},"../babel-babel/packages/babel-template/lib/index.js":{"bytes":16579,"imports":[{"path":"../babel-babel/packages/babel-types/lib/index.js","kind":"import-statement","original":"@babel/types"},{"path":"../babel-babel/packages/babel-parser/lib/index.js","kind":"import-statement","original":"@babel/parser"},{"path":"../babel-babel/packages/babel-code-frame/lib/index.js","kind":"import-statement","original":"@babel/code-frame"}],"format":"esm"},"../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs":{"bytes":12869,"imports":[],"format":"esm"},"../babel-babel/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs":{"bytes":8609,"imports":[],"format":"esm"},"../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs":{"bytes":15571,"imports":[{"path":"../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs","kind":"import-statement","original":"@jridgewell/sourcemap-codec"},{"path":"../babel-babel/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs","kind":"import-statement","original":"@jridgewell/resolve-uri"}],"format":"esm"},"../babel-babel/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs":{"bytes":7969,"imports":[{"path":"../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs","kind":"import-statement","original":"@jridgewell/sourcemap-codec"},{"path":"../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs","kind":"import-statement","original":"@jridgewell/trace-mapping"}],"format":"esm"},"../babel-babel/node_modules/jsesc/jsesc.js":{"bytes":8104,"imports":[],"format":"cjs"},"../babel-babel/packages/babel-generator/lib/index.js":{"bytes":128325,"imports":[{"path":"../babel-babel/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs","kind":"import-statement","original":"@jridgewell/gen-mapping"},{"path":"../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs","kind":"import-statement","original":"@jridgewell/trace-mapping"},{"path":"../babel-babel/packages/babel-types/lib/index.js","kind":"import-statement","original":"@babel/types"},{"path":"../babel-babel/node_modules/jsesc/jsesc.js","kind":"import-statement","original":"jsesc"}],"format":"esm"},"../babel-babel/node_modules/obug/dist/core.js":{"bytes":3557,"imports":[],"format":"esm"},"../babel-babel/node_modules/obug/dist/node.js":{"bytes":3091,"imports":[{"path":"../babel-babel/node_modules/obug/dist/core.js","kind":"import-statement","original":"./core.js"},{"path":"tty","kind":"import-statement","external":true},{"path":"util","kind":"import-statement","external":true}],"format":"esm"},"../babel-babel/packages/babel-helper-globals/data/builtin-lower.json":{"bytes":203,"imports":[],"format":"esm","with":{"type":"json"}},"../babel-babel/packages/babel-helper-globals/data/builtin-upper.json":{"bytes":718,"imports":[],"format":"esm","with":{"type":"json"}},"../babel-babel/packages/babel-traverse/lib/index.js":{"bytes":152692,"imports":[{"path":"../babel-babel/node_modules/obug/dist/node.js","kind":"import-statement","original":"obug"},{"path":"../babel-babel/packages/babel-code-frame/lib/index.js","kind":"import-statement","original":"@babel/code-frame"},{"path":"../babel-babel/packages/babel-types/lib/index.js","kind":"import-statement","original":"@babel/types"},{"path":"../babel-babel/packages/babel-parser/lib/index.js","kind":"import-statement","original":"@babel/parser"},{"path":"../babel-babel/packages/babel-helper-globals/data/builtin-lower.json","kind":"import-statement","original":"@babel/helper-globals/data/builtin-lower.json","with":{"type":"json"}},{"path":"../babel-babel/packages/babel-helper-globals/data/builtin-upper.json","kind":"import-statement","original":"@babel/helper-globals/data/builtin-upper.json","with":{"type":"json"}},{"path":"../babel-babel/packages/babel-generator/lib/index.js","kind":"import-statement","original":"@babel/generator"},{"path":"../babel-babel/packages/babel-template/lib/index.js","kind":"import-statement","original":"@babel/template"}],"format":"esm"},"lib/index.js":{"bytes":300,"imports":[{"path":"../babel-babel/packages/babel-template/lib/index.js","kind":"import-statement","original":"@babel/template"},{"path":"../babel-babel/packages/babel-generator/lib/index.js","kind":"import-statement","original":"@babel/generator"},{"path":"../babel-babel/packages/babel-types/lib/index.js","kind":"import-statement","original":"@babel/types"},{"path":"../babel-babel/packages/babel-traverse/lib/index.js","kind":"import-statement","original":"@babel/traverse"},{"path":"../babel-babel/packages/babel-parser/lib/index.js","kind":"import-statement","original":"@babel/parser"},{"path":"../babel-babel/packages/babel-code-frame/lib/index.js","kind":"import-statement","original":"@babel/code-frame"}],"format":"esm"}},"outputs":{"bundle/index.js":{"imports":[{"path":"util","kind":"import-statement","external":true},{"path":"tty","kind":"import-statement","external":true},{"path":"util","kind":"import-statement","external":true}],"exports":["codeFrameColumns","generate","parse","parseExpression","template","tokTypes","traverse","types"],"entryPoint":"lib/index.js","inputs":{"../babel-babel/node_modules/jsesc/jsesc.js":{"bytesInOutput":8976},"../babel-babel/packages/babel-types/lib/index.js":{"bytesInOutput":383585},"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js":{"bytesInOutput":13192},"../babel-babel/packages/babel-helper-string-parser/lib/index.js":{"bytesInOutput":7645},"../babel-babel/packages/babel-parser/lib/index.js":{"bytesInOutput":481293},"../babel-babel/packages/babel-code-frame/lib/common-BO7XIBW3.js":{"bytesInOutput":3540},"../babel-babel/packages/babel-code-frame/lib/index.js":{"bytesInOutput":3834},"../babel-babel/node_modules/js-tokens/index.js":{"bytesInOutput":14697},"../babel-babel/packages/babel-template/lib/index.js":{"bytesInOutput":16926},"../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs":{"bytesInOutput":4609},"../babel-babel/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs":{"bytesInOutput":4373},"../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs":{"bytesInOutput":5805},"../babel-babel/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs":{"bytesInOutput":5767},"../babel-babel/packages/babel-generator/lib/index.js":{"bytesInOutput":129088},"lib/index.js":{"bytesInOutput":0},"../babel-babel/node_modules/obug/dist/core.js":{"bytesInOutput":3434},"../babel-babel/node_modules/obug/dist/node.js":{"bytesInOutput":2805},"../babel-babel/packages/babel-helper-globals/data/builtin-lower.json":{"bytesInOutput":232},"../babel-babel/packages/babel-helper-globals/data/builtin-upper.json":{"bytesInOutput":747},"../babel-babel/packages/babel-traverse/lib/index.js":{"bytesInOutput":154505}},"bytes":1247974}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/babel",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Babel 8 bundled",
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
"@swc/core": "^1.3.101",
|
|
58
58
|
"@types/node": "^25.0.6",
|
|
59
59
|
"acorn-stage3": "^4.0.0",
|
|
60
|
-
"c8": "^10.1.2",
|
|
61
60
|
"check-dts": "^0.9.0",
|
|
62
|
-
"eslint": "^
|
|
61
|
+
"eslint": "^10.0.2",
|
|
63
62
|
"eslint-plugin-n": "^17.9.0",
|
|
64
63
|
"eslint-plugin-putout": "^29.4.0",
|
|
65
64
|
"globals": "^17.0.0",
|
|
66
|
-
"madrun": "^
|
|
65
|
+
"madrun": "^13.0.0",
|
|
67
66
|
"nodemon": "^3.0.1",
|
|
68
|
-
"putout": "^
|
|
67
|
+
"putout": "^42.0.23",
|
|
68
|
+
"superc8": "^12.1.2",
|
|
69
69
|
"supertape": "^12.0.12",
|
|
70
70
|
"tsup": "^8.0.1",
|
|
71
71
|
"typescript": "^5.2.2"
|