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

babel-helper-builder-binary-assignment-operator-visitor

Package Overview
Dependencies
Maintainers
6
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-helper-builder-binary-assignment-operator-visitor - npm Package Compare versions

Comparing version 7.0.0-beta.2 to 7.0.0-beta.3

27

lib/index.js
"use strict";
exports.__esModule = true;
exports.default = _default;
exports.default = function (opts) {
var _babelHelperExplodeAssignableExpression = _interopRequireDefault(require("babel-helper-explode-assignable-expression"));
var t = _interopRequireWildcard(require("babel-types"));
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _default(opts) {
var build = opts.build,

@@ -14,3 +23,3 @@ operator = opts.operator;

var nodes = [];
var exploded = (0, _babelHelperExplodeAssignableExpression2.default)(node.left, nodes, this, scope);
var exploded = (0, _babelHelperExplodeAssignableExpression.default)(node.left, nodes, this, scope);
nodes.push(t.assignmentExpression("=", exploded.ref, build(exploded.uid, node.right)));

@@ -27,14 +36,2 @@ path.replaceWith(t.sequenceExpression(nodes));

};
};
var _babelHelperExplodeAssignableExpression = require("babel-helper-explode-assignable-expression");
var _babelHelperExplodeAssignableExpression2 = _interopRequireDefault(_babelHelperExplodeAssignableExpression);
var _babelTypes = require("babel-types");
var t = _interopRequireWildcard(_babelTypes);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
}
{
"name": "babel-helper-builder-binary-assignment-operator-visitor",
"version": "7.0.0-beta.2",
"version": "7.0.0-beta.3",
"description": "Helper function to build binary assignment operator visitors",

@@ -9,5 +9,5 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-builder-binary-assignment-operator-visitor",

"dependencies": {
"babel-helper-explode-assignable-expression": "7.0.0-beta.2",
"babel-types": "7.0.0-beta.2"
"babel-helper-explode-assignable-expression": "7.0.0-beta.3",
"babel-types": "7.0.0-beta.3"
}
}
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