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
6
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.41 to 7.0.0-beta.42

10

lib/index.js

@@ -25,2 +25,6 @@ "use strict";

function getExtendsHelper(file) {
return useBuiltIns ? _core.types.memberExpression(_core.types.identifier("Object"), _core.types.identifier("assign")) : file.addHelper("extends");
}
function hasRestElement(path) {

@@ -153,2 +157,6 @@ var foundRestElement = false;

if (keys.length === 0) {
return [impureComputedPropertyDeclarators, restElement.argument, _core.types.callExpression(getExtendsHelper(file), [_core.types.objectExpression([]), _core.types.cloneNode(objRef)])];
}
var keyExpression;

@@ -360,3 +368,3 @@

if (loose) {
helper = useBuiltIns ? _core.types.memberExpression(_core.types.identifier("Object"), _core.types.identifier("assign")) : file.addHelper("extends");
helper = getExtendsHelper(file);
} else {

@@ -363,0 +371,0 @@ helper = file.addHelper("objectSpread");

12

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

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

"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-beta.41",
"@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.41"
"@babel/helper-plugin-utils": "7.0.0-beta.42",
"@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.42"
},
"peerDependencies": {
"@babel/core": "7.0.0-beta.41"
"@babel/core": "7.0.0-beta.42"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.41",
"@babel/helper-plugin-test-runner": "7.0.0-beta.41"
"@babel/core": "7.0.0-beta.42",
"@babel/helper-plugin-test-runner": "7.0.0-beta.42"
}
}

@@ -74,5 +74,4 @@ # @babel/plugin-proposal-object-rest-spread

Enabling this option will use `Object.assign` directly instead of the Babel's `extends` helper. Keep in mind that this flag only applies when `loose: true`.
Enabling this option will use `Object.assign` directly instead of the Babel's `extends` helper.
##### Example

@@ -79,0 +78,0 @@

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