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.0.0-beta.52 to 7.0.0-beta.53

17

lib/index.js

@@ -129,2 +129,13 @@ "use strict";

function removeUnusedExcludedKeys(path) {
const bindings = path.getOuterBindingIdentifierPaths();
Object.keys(bindings).forEach(bindingName => {
if (path.scope.getBinding(bindingName).references > 1) {
return;
}
bindings[bindingName].parentPath.remove();
});
}
function createObjectSpread(path, file, objRef) {

@@ -157,3 +168,3 @@ const props = path.get("properties");

return [impureComputedPropertyDeclarators, restElement.argument, _core().types.callExpression(file.addHelper("objectWithoutProperties"), [_core().types.cloneNode(objRef), keyExpression])];
return [impureComputedPropertyDeclarators, restElement.argument, _core().types.callExpression(file.addHelper(`objectWithoutProperties${loose ? "Loose" : ""}`), [_core().types.cloneNode(objRef), keyExpression])];
}

@@ -237,2 +248,6 @@

if (loose) {
removeUnusedExcludedKeys(objectPatternPath);
}
_core().types.assertIdentifier(argument);

@@ -239,0 +254,0 @@

10

package.json
{
"name": "@babel/plugin-proposal-object-rest-spread",
"version": "7.0.0-beta.52",
"version": "7.0.0-beta.53",
"description": "Compile object rest and spread to ES5",

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

"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-beta.52",
"@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.52"
"@babel/helper-plugin-utils": "7.0.0-beta.53",
"@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.53"
},

@@ -20,5 +20,5 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "7.0.0-beta.52",
"@babel/helper-plugin-test-runner": "7.0.0-beta.52"
"@babel/core": "7.0.0-beta.53",
"@babel/helper-plugin-test-runner": "7.0.0-beta.53"
}
}
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