Socket
Socket
Sign inDemoInstall

babel-plugin-transform-object-rest-spread

Package Overview
Dependencies
1
Maintainers
5
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0-alpha.19 to 7.0.0-alpha.20

23

lib/index.js

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

var prop = _ref2;
var _prop = _ref2;
if (t.isSpreadElement(prop)) {
if (t.isSpreadElement(_prop)) {
return true;

@@ -60,10 +60,10 @@ }

var prop = _ref3;
var _prop2 = _ref3;
if (t.isIdentifier(prop.key) && !prop.computed) {
keys.push(t.stringLiteral(prop.key.name));
} else if (t.isLiteral(prop.key)) {
keys.push(t.stringLiteral(String(prop.key.value)));
if (t.isIdentifier(_prop2.key) && !_prop2.computed) {
keys.push(t.stringLiteral(_prop2.key.name));
} else if (t.isLiteral(_prop2.key)) {
keys.push(t.stringLiteral(String(_prop2.key.value)));
} else {
keys.push(prop.key);
keys.push(_prop2.key);
allLiteral = false;

@@ -94,6 +94,7 @@ }

var propPath = _ref4;
var key = propPath.get("key");
var _propPath = _ref4;
if (propPath.node.computed && !key.isPure()) {
var key = _propPath.get("key");
if (_propPath.node.computed && !key.isPure()) {
var identifier = path.scope.generateUidIdentifierBasedOnNode(key.node);

@@ -100,0 +101,0 @@ var declarator = t.variableDeclarator(identifier, key.node);

{
"name": "babel-plugin-transform-object-rest-spread",
"version": "7.0.0-alpha.19",
"version": "7.0.0-alpha.20",
"description": "Compile object rest and spread to ES5",

@@ -12,7 +12,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-object-rest-spread",

"dependencies": {
"babel-plugin-syntax-object-rest-spread": "7.0.0-alpha.19"
"babel-plugin-syntax-object-rest-spread": "7.0.0-alpha.20"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "7.0.0-alpha.19"
"babel-helper-plugin-test-runner": "7.0.0-alpha.20"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc