Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

esnext

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esnext - npm Package Compare versions

Comparing version 1.14.2 to 1.14.3

dist/esnext.ecma.js

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc