Comparing version 1.14.2 to 1.14.3
{ | ||
"name": "esnext", | ||
"version": "1.14.2", | ||
"version": "1.14.3", | ||
"description": "Update your project to the latest ECMAScript syntax.", | ||
"main": "dist/esnext.umd.js", | ||
"jsnext:main": "dist/esnext.es6.js", | ||
"jsnext:main": "dist/esnext.ecma.js", | ||
"bin": { | ||
@@ -15,3 +15,3 @@ "esnext": "./bin/index.js" | ||
"prebuild": "npm run lint && rm -rf dist", | ||
"build": "rollup -c rollup.umd.config.js && rollup -c rollup.es6.config.js", | ||
"build": "rollup -c rollup.umd.config.js && rollup -c rollup.ecma.config.js", | ||
"prepublish": "npm run build" | ||
@@ -34,2 +34,4 @@ }, | ||
"license": "MIT", | ||
"repository": "https://github.com/esnext/esnext.git", | ||
"bugs": "https://github.com/esnext/esnext/issues", | ||
"dependencies": { | ||
@@ -36,0 +38,0 @@ "escope": "^3.3.0", |
@@ -100,9 +100,11 @@ import BaseContext from '../context'; | ||
if (node.parentNode.type === Syntax.ExpressionStatement) { | ||
// `a = obj.a;` -> `(a = obj.a);` | ||
// ^ ^ | ||
this.insert(assignments[0].range[0], '('); | ||
this.insert(assignments[assignments.length - 1].range[1], ')'); | ||
if (node.parentNode.type !== Syntax.ExpressionStatement) { | ||
return false; | ||
} | ||
// `a = obj.a;` -> `(a = obj.a);` | ||
// ^ ^ | ||
this.insert(assignments[0].range[0], '('); | ||
this.insert(assignments[assignments.length - 1].range[1], ')'); | ||
this._rewriteDestructurableElements(assignments); | ||
@@ -109,0 +111,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
232108
6931