Bump babylon to 7.0.0-beta.33 (#3372)
parent
23c306c8a0
commit
d52d721cd1
|
@ -15,7 +15,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"babel-code-frame": "7.0.0-alpha.12",
|
||||
"babylon": "7.0.0-beta.31",
|
||||
"babylon": "7.0.0-beta.33",
|
||||
"camelcase": "4.1.0",
|
||||
"chalk": "2.1.0",
|
||||
"cjk-regex": "1.0.2",
|
||||
|
|
|
@ -17,7 +17,8 @@ function parse(text, parsers, opts) {
|
|||
"objectRestSpread",
|
||||
"decorators",
|
||||
"classProperties",
|
||||
"exportExtensions",
|
||||
"exportDefaultFrom",
|
||||
"exportNamespaceFrom",
|
||||
"asyncGenerators",
|
||||
"functionBind",
|
||||
"functionSent",
|
||||
|
|
|
@ -3443,17 +3443,18 @@ function printExportDeclaration(path, options, print) {
|
|||
}, "specifiers");
|
||||
|
||||
const isNamespaceFollowed =
|
||||
namespaceSpecifiers.length !== 0 &&
|
||||
(specifiers.length !== 0 || defaultSpecifiers.length !== 0);
|
||||
namespaceSpecifiers.length !== 0 && specifiers.length !== 0;
|
||||
|
||||
const isDefaultFollowed =
|
||||
defaultSpecifiers.length !== 0 && specifiers.length !== 0;
|
||||
defaultSpecifiers.length !== 0 &&
|
||||
(namespaceSpecifiers.length !== 0 || specifiers.length !== 0);
|
||||
|
||||
parts.push(
|
||||
decl.exportKind === "type" ? "type " : "",
|
||||
concat(namespaceSpecifiers),
|
||||
concat([isNamespaceFollowed ? ", " : ""]),
|
||||
concat(defaultSpecifiers),
|
||||
concat([isDefaultFollowed ? ", " : ""]),
|
||||
concat(namespaceSpecifiers),
|
||||
concat([isNamespaceFollowed ? ", " : ""]),
|
||||
specifiers.length !== 0
|
||||
? group(
|
||||
concat([
|
||||
|
|
|
@ -3,8 +3,14 @@
|
|||
exports[`export.js 1`] = `
|
||||
export * as ns from 'mod';
|
||||
export v from 'mod';
|
||||
export a, * as b from 'mod';
|
||||
export c, { foo } from 'mod';
|
||||
export * as d, { bar } from 'mod';
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
export * as ns from "mod";
|
||||
export v from "mod";
|
||||
export a, * as b from "mod";
|
||||
export c, { foo } from "mod";
|
||||
export * as d, { bar } from "mod";
|
||||
|
||||
`;
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
export * as ns from 'mod';
|
||||
export v from 'mod';
|
||||
export a, * as b from 'mod';
|
||||
export c, { foo } from 'mod';
|
||||
export * as d, { bar } from 'mod';
|
||||
|
|
|
@ -1,5 +1,20 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`arrow.js 1`] = `
|
||||
function *f() {
|
||||
(yield a => a);
|
||||
(yield async a => a);
|
||||
(yield async (a) => a);
|
||||
}
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
function* f() {
|
||||
yield a => a;
|
||||
yield async a => a;
|
||||
yield async a => a;
|
||||
}
|
||||
|
||||
`;
|
||||
|
||||
exports[`conditional.js 1`] = `
|
||||
function* f() {
|
||||
a = (yield) ? 1 : 1;
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
function *f() {
|
||||
(yield a => a);
|
||||
(yield async a => a);
|
||||
(yield async (a) => a);
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`exits with non-zero code when input has a syntax error (stderr) 1`] = `
|
||||
"[error] stdin: SyntaxError: Unexpected token, expected ; (1:2)
|
||||
"[error] stdin: SyntaxError: Unexpected token, expected \\";\\" (1:2)
|
||||
[error] > 1 | a.2
|
||||
[error] | ^
|
||||
"
|
||||
|
|
|
@ -8,7 +8,7 @@ exports[`do not write file with --write + formatted file (stdout) 1`] = `
|
|||
`;
|
||||
|
||||
exports[`do not write file with --write + invalid file (stderr) 1`] = `
|
||||
"[error] invalid.js: SyntaxError: Unexpected token, expected ; (1:6)
|
||||
"[error] invalid.js: SyntaxError: Unexpected token, expected \\";\\" (1:6)
|
||||
[error] > 1 | this is invalid!
|
||||
[error] | ^
|
||||
"
|
||||
|
|
|
@ -783,9 +783,9 @@ babel-types@^6.26.0:
|
|||
lodash "^4.17.4"
|
||||
to-fast-properties "^1.0.3"
|
||||
|
||||
babylon@7.0.0-beta.31:
|
||||
version "7.0.0-beta.31"
|
||||
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.31.tgz#7ec10f81e0e456fd0f855ad60fa30c2ac454283f"
|
||||
babylon@7.0.0-beta.33:
|
||||
version "7.0.0-beta.33"
|
||||
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.33.tgz#63ba117965e90616ac9fc26620e74b70ba0d6e17"
|
||||
|
||||
babylon@^6.13.0, babylon@^6.17.2:
|
||||
version "6.17.3"
|
||||
|
|
Loading…
Reference in New Issue