@babel/helper-builder-binary-assignment-operator-visitor
Advanced tools
Comparing version 7.1.0 to 7.7.0
@@ -8,24 +8,10 @@ "use strict"; | ||
function _helperExplodeAssignableExpression() { | ||
const data = _interopRequireDefault(require("@babel/helper-explode-assignable-expression")); | ||
var _helperExplodeAssignableExpression = _interopRequireDefault(require("@babel/helper-explode-assignable-expression")); | ||
_helperExplodeAssignableExpression = function () { | ||
return data; | ||
}; | ||
var t = _interopRequireWildcard(require("@babel/types")); | ||
return data; | ||
} | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
function t() { | ||
const data = _interopRequireWildcard(require("@babel/types")); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
t = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
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)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -46,5 +32,5 @@ | ||
const nodes = []; | ||
const exploded = (0, _helperExplodeAssignableExpression().default)(node.left, nodes, this, scope); | ||
nodes.push(t().assignmentExpression("=", exploded.ref, build(exploded.uid, node.right))); | ||
path.replaceWith(t().sequenceExpression(nodes)); | ||
const exploded = (0, _helperExplodeAssignableExpression.default)(node.left, nodes, this, scope); | ||
nodes.push(t.assignmentExpression("=", exploded.ref, build(exploded.uid, node.right))); | ||
path.replaceWith(t.sequenceExpression(nodes)); | ||
}, | ||
@@ -51,0 +37,0 @@ |
{ | ||
"name": "@babel/helper-builder-binary-assignment-operator-visitor", | ||
"version": "7.1.0", | ||
"version": "7.7.0", | ||
"description": "Helper function to build binary assignment operator visitors", | ||
@@ -12,5 +12,6 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-builder-binary-assignment-operator-visitor", | ||
"dependencies": { | ||
"@babel/helper-explode-assignable-expression": "^7.1.0", | ||
"@babel/types": "^7.0.0" | ||
} | ||
"@babel/helper-explode-assignable-expression": "^7.7.0", | ||
"@babel/types": "^7.7.0" | ||
}, | ||
"gitHead": "97faa83953cb87e332554fa559a4956d202343ea" | ||
} |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
4141
38
1