Socket
Socket
Sign inDemoInstall

@babel/helper-simple-access

Package Overview
Dependencies
Maintainers
6
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-simple-access - npm Package Compare versions

Comparing version 7.0.0-beta.38 to 7.0.0-beta.39

8

lib/index.js

@@ -35,5 +35,5 @@ "use strict";

} else {
var varName = path.scope.generateDeclaredUidIdentifier("old");
var assignment = t.binaryExpression(path.node.operator.slice(0, 1), varName, t.numericLiteral(1));
path.replaceWith(t.sequenceExpression([t.assignmentExpression("=", varName, arg.node), t.assignmentExpression("=", arg.node, assignment), varName]));
var varName = path.scope.generateDeclaredUidIdentifier("old").name;
var binary = t.binaryExpression(path.node.operator.slice(0, 1), t.identifier(varName), t.numericLiteral(1));
path.replaceWith(t.sequenceExpression([t.assignmentExpression("=", t.identifier(varName), arg.node), t.assignmentExpression("=", t.cloneNode(arg.node), binary), t.identifier(varName)]));
}

@@ -59,3 +59,3 @@ }

path.node.right = t.binaryExpression(path.node.operator.slice(0, -1), path.node.left, path.node.right);
path.node.right = t.binaryExpression(path.node.operator.slice(0, -1), t.cloneNode(path.node.left), path.node.right);
path.node.operator = "=";

@@ -62,0 +62,0 @@ }

{
"name": "@babel/helper-simple-access",
"version": "7.0.0-beta.38",
"version": "7.0.0-beta.39",
"description": "Babel helper for ensuring that access to a given value is performed through simple accesses",

@@ -11,6 +11,6 @@ "author": "Logan Smyth <loganfsmyth@gmail.com>",

"dependencies": {
"@babel/template": "7.0.0-beta.38",
"@babel/types": "7.0.0-beta.38",
"@babel/template": "7.0.0-beta.39",
"@babel/types": "7.0.0-beta.39",
"lodash": "^4.2.0"
}
}
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