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

@babel/plugin-proposal-object-rest-spread

Package Overview
Dependencies
Maintainers
5
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-proposal-object-rest-spread - npm Package Compare versions

Comparing version 7.9.6 to 7.10.0

10

lib/index.js

@@ -302,3 +302,3 @@ "use strict";

} = prop;
ref = _core.types.memberExpression(ref, _core.types.cloneNode(node.key), node.computed);
ref = _core.types.memberExpression(ref, _core.types.cloneNode(node.key), node.computed || _core.types.isLiteral(node.key));
});

@@ -450,2 +450,10 @@ const objectPatternPath = path.findParent(path => path.isObjectPattern());

if (loose) {
if (hadProps) {
exp.arguments.push(obj);
}
return;
}
exp = _core.types.callExpression(_core.types.cloneNode(helper), [exp, ...(hadProps ? [_core.types.objectExpression([]), obj] : [])]);

@@ -452,0 +460,0 @@ }

6

package.json
{
"name": "@babel/plugin-proposal-object-rest-spread",
"version": "7.9.6",
"version": "7.10.0",
"description": "Compile object rest and spread to ES5",

@@ -23,6 +23,6 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-object-rest-spread",

"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/core": "^7.10.0",
"@babel/helper-plugin-test-runner": "^7.8.3"
},
"gitHead": "9c2846bcacc75aa931ea9d556950c2113765d43d"
"gitHead": "5da2440adff6f25579fb6e9a018062291c89416f"
}
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