@putout/babel 5.2.8 → 5.2.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/README.md +2 -11
- package/bundle/index.js +6 -4
- package/bundle/metafile-esm.json +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -3,19 +3,10 @@
|
|
|
3
3
|
[NPMIMGURL]: https://img.shields.io/npm/v/@putout/babel.svg?style=flat&longCache=true
|
|
4
4
|
[NPMURL]: https://npmjs.org/package/@putout/babel "npm"
|
|
5
5
|
|
|
6
|
-
Pre-builts of Babel 8.
|
|
6
|
+
Pre-builts of [Babel 8](https://github.com/babel/babel/releases/tag/v8.0.0-rc.1).
|
|
7
7
|
|
|
8
8
|
Includes:
|
|
9
|
-
- [`
|
|
10
|
-
- [`cleanup optional AST checks`](https://github.com/babel/babel/pull/17759);
|
|
11
|
-
- [`Remove smart pipeline support and remove accessor property from Standardized alias`](https://github.com/babel/babel/pull/17732);
|
|
12
|
-
- [`Fix support super method call`](https://github.com/babel/babel/pull/17662);
|
|
13
|
-
- [`Fix hoisting of function declarations in loops and switch`](https://github.com/babel/babel/pull/17691);
|
|
14
|
-
- [`Enable strictNullChecks for @babel/core`](https://github.com/babel/babel/pull/17611);
|
|
15
|
-
- [`Improve generator performance`](https://github.com/babel/babel/pull/17718);
|
|
16
|
-
- [`generator: cleanup Babel 8 comments`](https://github.com/babel/babel/pull/17659);
|
|
17
|
-
- [`Remove @babel/plugin-transform-object-assign`](https://github.com/babel/babel/pull/17619);
|
|
18
|
-
|
|
9
|
+
- [`clean up unused error message`](https://github.com/babel/babel/pull/17764);
|
|
19
10
|
|
|
20
11
|
Usage
|
|
21
12
|
|
package/bundle/index.js
CHANGED
|
@@ -18043,7 +18043,6 @@ var UnparenthesizedPipeBodyDescriptions = /* @__PURE__ */new Set([
|
|
|
18043
18043
|
]);
|
|
18044
18044
|
|
|
18045
18045
|
var PipelineOperatorErrors = {
|
|
18046
|
-
PipeBodyIsTighter: 'Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.',
|
|
18047
18046
|
PipeTopicRequiresHackPipes: 'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',
|
|
18048
18047
|
PipeTopicUnbound: 'Topic reference is unbound; it must be inside a pipe body.',
|
|
18049
18048
|
PipeTopicUnconfiguredToken: ({token}) => `Invalid topic token ${token}. In order to use ${token} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${token}" }.`,
|
|
@@ -26998,7 +26997,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
26998
26997
|
|
|
26999
26998
|
const tokenType = this.state.type;
|
|
27000
26999
|
|
|
27001
|
-
if (tokenType === 44 || tokenType === 48 || tokenType !== 6 && tokenCanStartExpression(tokenType) && !this.hasPrecedingLineBreak()) {
|
|
27000
|
+
if (tokenType === 44 || tokenType === 48 || tokenType !== 6 && tokenType !== 89 && tokenType !== 116 && tokenCanStartExpression(tokenType) && !this.hasPrecedingLineBreak()) {
|
|
27002
27001
|
return;
|
|
27003
27002
|
}
|
|
27004
27003
|
|
|
@@ -33404,7 +33403,10 @@ function getMarkerLines(loc, source, opts, startLineBaseZero) {
|
|
|
33404
33403
|
...loc.end,
|
|
33405
33404
|
};
|
|
33406
33405
|
|
|
33407
|
-
const {
|
|
33406
|
+
const {
|
|
33407
|
+
linesAbove = 2,
|
|
33408
|
+
linesBelow = 3,
|
|
33409
|
+
} = opts || {};
|
|
33408
33410
|
|
|
33409
33411
|
const startLine = startLoc.line - startLineBaseZero;
|
|
33410
33412
|
const startColumn = startLoc.column;
|
|
@@ -42441,7 +42443,7 @@ function verify$1(visitor) {
|
|
|
42441
42443
|
continue;
|
|
42442
42444
|
|
|
42443
42445
|
if (!TYPES2.includes(nodeType)) {
|
|
42444
|
-
throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${'8.0.0-
|
|
42446
|
+
throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${'8.0.0-rc.1'}`);
|
|
42445
42447
|
}
|
|
42446
42448
|
|
|
42447
42449
|
const visitors2 = visitor[nodeType];
|
package/bundle/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js":{"bytes":13698,"imports":[],"format":"esm"},"../babel-babel/packages/babel-helper-string-parser/lib/index.js":{"bytes":7680,"imports":[],"format":"esm"},"../babel-babel/packages/babel-types/lib/index.js":{"bytes":352438,"imports":[{"path":"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js","kind":"import-statement","original":"@babel/helper-validator-identifier"},{"path":"../babel-babel/packages/babel-helper-string-parser/lib/index.js","kind":"import-statement","original":"@babel/helper-string-parser"}],"format":"esm"},"../babel-babel/packages/babel-parser/lib/index.js":{"bytes":
|
|
1
|
+
{"inputs":{"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js":{"bytes":13698,"imports":[],"format":"esm"},"../babel-babel/packages/babel-helper-string-parser/lib/index.js":{"bytes":7680,"imports":[],"format":"esm"},"../babel-babel/packages/babel-types/lib/index.js":{"bytes":352438,"imports":[{"path":"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js","kind":"import-statement","original":"@babel/helper-validator-identifier"},{"path":"../babel-babel/packages/babel-helper-string-parser/lib/index.js","kind":"import-statement","original":"@babel/helper-string-parser"}],"format":"esm"},"../babel-babel/packages/babel-parser/lib/index.js":{"bytes":482916,"imports":[],"format":"esm"},"../babel-babel/packages/babel-code-frame/lib/common-BO7XIBW3.js":{"bytes":3594,"imports":[],"format":"esm"},"../babel-babel/node_modules/js-tokens/index.js":{"bytes":12672,"imports":[],"format":"esm"},"../babel-babel/packages/babel-code-frame/lib/index.js":{"bytes":4831,"imports":[{"path":"../babel-babel/packages/babel-code-frame/lib/common-BO7XIBW3.js","kind":"import-statement","original":"./common-BO7XIBW3.js"},{"path":"util","kind":"import-statement","external":true},{"path":"../babel-babel/node_modules/js-tokens/index.js","kind":"import-statement","original":"js-tokens"},{"path":"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js","kind":"import-statement","original":"@babel/helper-validator-identifier"}],"format":"esm"},"../babel-babel/packages/babel-template/lib/index.js":{"bytes":16571,"imports":[{"path":"../babel-babel/packages/babel-types/lib/index.js","kind":"import-statement","original":"@babel/types"},{"path":"../babel-babel/packages/babel-parser/lib/index.js","kind":"import-statement","original":"@babel/parser"},{"path":"../babel-babel/packages/babel-code-frame/lib/index.js","kind":"import-statement","original":"@babel/code-frame"}],"format":"esm"},"../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs":{"bytes":12869,"imports":[],"format":"esm"},"../babel-babel/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs":{"bytes":8609,"imports":[],"format":"esm"},"../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs":{"bytes":15571,"imports":[{"path":"../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs","kind":"import-statement","original":"@jridgewell/sourcemap-codec"},{"path":"../babel-babel/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs","kind":"import-statement","original":"@jridgewell/resolve-uri"}],"format":"esm"},"../babel-babel/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs":{"bytes":7969,"imports":[{"path":"../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs","kind":"import-statement","original":"@jridgewell/sourcemap-codec"},{"path":"../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs","kind":"import-statement","original":"@jridgewell/trace-mapping"}],"format":"esm"},"../babel-babel/node_modules/jsesc/jsesc.js":{"bytes":8104,"imports":[],"format":"cjs"},"../babel-babel/packages/babel-generator/lib/index.js":{"bytes":128624,"imports":[{"path":"../babel-babel/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs","kind":"import-statement","original":"@jridgewell/gen-mapping"},{"path":"../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs","kind":"import-statement","original":"@jridgewell/trace-mapping"},{"path":"../babel-babel/packages/babel-types/lib/index.js","kind":"import-statement","original":"@babel/types"},{"path":"../babel-babel/node_modules/jsesc/jsesc.js","kind":"import-statement","original":"jsesc"}],"format":"esm"},"../babel-babel/node_modules/obug/dist/core.js":{"bytes":3557,"imports":[],"format":"esm"},"../babel-babel/node_modules/obug/dist/node.js":{"bytes":3091,"imports":[{"path":"../babel-babel/node_modules/obug/dist/core.js","kind":"import-statement","original":"./core.js"},{"path":"tty","kind":"import-statement","external":true},{"path":"util","kind":"import-statement","external":true}],"format":"esm"},"../babel-babel/packages/babel-helper-globals/data/builtin-lower.json":{"bytes":203,"imports":[],"format":"esm","with":{"type":"json"}},"../babel-babel/packages/babel-helper-globals/data/builtin-upper.json":{"bytes":718,"imports":[],"format":"esm","with":{"type":"json"}},"../babel-babel/packages/babel-traverse/lib/index.js":{"bytes":152692,"imports":[{"path":"../babel-babel/node_modules/obug/dist/node.js","kind":"import-statement","original":"obug"},{"path":"../babel-babel/packages/babel-code-frame/lib/index.js","kind":"import-statement","original":"@babel/code-frame"},{"path":"../babel-babel/packages/babel-types/lib/index.js","kind":"import-statement","original":"@babel/types"},{"path":"../babel-babel/packages/babel-parser/lib/index.js","kind":"import-statement","original":"@babel/parser"},{"path":"../babel-babel/packages/babel-helper-globals/data/builtin-lower.json","kind":"import-statement","original":"@babel/helper-globals/data/builtin-lower.json","with":{"type":"json"}},{"path":"../babel-babel/packages/babel-helper-globals/data/builtin-upper.json","kind":"import-statement","original":"@babel/helper-globals/data/builtin-upper.json","with":{"type":"json"}},{"path":"../babel-babel/packages/babel-generator/lib/index.js","kind":"import-statement","original":"@babel/generator"},{"path":"../babel-babel/packages/babel-template/lib/index.js","kind":"import-statement","original":"@babel/template"}],"format":"esm"},"lib/index.js":{"bytes":300,"imports":[{"path":"../babel-babel/packages/babel-template/lib/index.js","kind":"import-statement","original":"@babel/template"},{"path":"../babel-babel/packages/babel-generator/lib/index.js","kind":"import-statement","original":"@babel/generator"},{"path":"../babel-babel/packages/babel-types/lib/index.js","kind":"import-statement","original":"@babel/types"},{"path":"../babel-babel/packages/babel-traverse/lib/index.js","kind":"import-statement","original":"@babel/traverse"},{"path":"../babel-babel/packages/babel-parser/lib/index.js","kind":"import-statement","original":"@babel/parser"},{"path":"../babel-babel/packages/babel-code-frame/lib/index.js","kind":"import-statement","original":"@babel/code-frame"}],"format":"esm"}},"outputs":{"bundle/index.js":{"imports":[{"path":"util","kind":"import-statement","external":true},{"path":"tty","kind":"import-statement","external":true},{"path":"util","kind":"import-statement","external":true}],"exports":["codeFrameColumns","generate","parse","parseExpression","template","tokTypes","traverse","types"],"entryPoint":"lib/index.js","inputs":{"../babel-babel/node_modules/jsesc/jsesc.js":{"bytesInOutput":8976},"../babel-babel/packages/babel-types/lib/index.js":{"bytesInOutput":383695},"../babel-babel/packages/babel-helper-validator-identifier/lib/index.js":{"bytesInOutput":13255},"../babel-babel/packages/babel-helper-string-parser/lib/index.js":{"bytesInOutput":7645},"../babel-babel/packages/babel-parser/lib/index.js":{"bytesInOutput":482696},"../babel-babel/packages/babel-code-frame/lib/common-BO7XIBW3.js":{"bytesInOutput":3540},"../babel-babel/packages/babel-code-frame/lib/index.js":{"bytesInOutput":3834},"../babel-babel/node_modules/js-tokens/index.js":{"bytesInOutput":14697},"../babel-babel/packages/babel-template/lib/index.js":{"bytesInOutput":16918},"../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs":{"bytesInOutput":4609},"../babel-babel/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs":{"bytesInOutput":4373},"../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs":{"bytesInOutput":5805},"../babel-babel/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs":{"bytesInOutput":5767},"../babel-babel/packages/babel-generator/lib/index.js":{"bytesInOutput":129366},"lib/index.js":{"bytesInOutput":0},"../babel-babel/node_modules/obug/dist/core.js":{"bytesInOutput":3434},"../babel-babel/node_modules/obug/dist/node.js":{"bytesInOutput":2805},"../babel-babel/packages/babel-helper-globals/data/builtin-lower.json":{"bytesInOutput":232},"../babel-babel/packages/babel-helper-globals/data/builtin-upper.json":{"bytesInOutput":747},"../babel-babel/packages/babel-traverse/lib/index.js":{"bytesInOutput":154489}},"bytes":1249804}}}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/babel",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
|
-
"description": "Babel 8
|
|
6
|
+
"description": "Babel 8 bundled",
|
|
7
7
|
"homepage": "https://github.com/putoutjs/babel",
|
|
8
8
|
"main": "./bundle/index.js",
|
|
9
9
|
"exports": {
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"commonjs"
|
|
49
49
|
],
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@babel/code-frame": "8.0.0-
|
|
52
|
-
"@babel/generator": "8.0.0-
|
|
53
|
-
"@babel/parser": "8.0.0-
|
|
54
|
-
"@babel/template": "8.0.0-
|
|
55
|
-
"@babel/traverse": "8.0.0-
|
|
56
|
-
"@babel/types": "8.0.0-
|
|
51
|
+
"@babel/code-frame": "8.0.0-rc.1",
|
|
52
|
+
"@babel/generator": "8.0.0-rc.1",
|
|
53
|
+
"@babel/parser": "8.0.0-rc.1",
|
|
54
|
+
"@babel/template": "8.0.0-rc.1",
|
|
55
|
+
"@babel/traverse": "8.0.0-rc.1",
|
|
56
|
+
"@babel/types": "8.0.0-rc.1",
|
|
57
57
|
"@swc/core": "^1.3.101",
|
|
58
58
|
"@types/node": "^25.0.6",
|
|
59
59
|
"acorn-stage3": "^4.0.0",
|