Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
56
Maintainers
6
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.14.2 to 7.14.4

11

lib/index.js

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

keyExpression = _core.types.arrayExpression(keys);
if (!_core.types.isProgram(path.scope.block)) {
const program = path.findParent(path => path.isProgram());
const id = path.scope.generateUidIdentifier("excluded");
program.scope.push({
id,
init: keyExpression,
kind: "const"
});
keyExpression = _core.types.cloneNode(id);
}
}

@@ -183,0 +194,0 @@

8

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

@@ -20,4 +20,4 @@ "repository": {

"dependencies": {
"@babel/compat-data": "^7.14.0",
"@babel/helper-compilation-targets": "^7.13.16",
"@babel/compat-data": "^7.14.4",
"@babel/helper-compilation-targets": "^7.14.4",
"@babel/helper-plugin-utils": "^7.13.0",

@@ -31,5 +31,5 @@ "@babel/plugin-syntax-object-rest-spread": "^7.8.3",

"devDependencies": {
"@babel/core": "7.14.2",
"@babel/core": "7.14.3",
"@babel/helper-plugin-test-runner": "7.13.10"
}
}
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