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.4.4 to 7.5.0

12

lib/index.js

@@ -357,3 +357,2 @@ "use strict";

function push() {
if (!props.length) return;
args.push(_core().types.objectExpression(props));

@@ -363,6 +362,2 @@ props = [];

if (_core().types.isSpreadElement(path.node.properties[0])) {
args.push(_core().types.objectExpression([]));
}
for (const prop of path.node.properties) {

@@ -377,3 +372,6 @@ if (_core().types.isSpreadElement(prop)) {

push();
if (props.length) {
push();
}
let helper;

@@ -384,3 +382,3 @@

} else {
helper = file.addHelper("objectSpread");
helper = file.addHelper("objectSpread2");
}

@@ -387,0 +385,0 @@

{
"name": "@babel/plugin-proposal-object-rest-spread",
"version": "7.4.4",
"version": "7.5.0",
"description": "Compile object rest and spread to ES5",

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

"devDependencies": {
"@babel/core": "^7.4.4",
"@babel/core": "^7.5.0",
"@babel/helper-plugin-test-runner": "^7.0.0"
},
"gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba"
"gitHead": "49da9a07c81156e997e60146eb001ea77b7044c4"
}
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