Socket
Socket
Sign inDemoInstall

@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.14.5 to 7.14.7

10

lib/index.js

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

let allLiteral = true;
let hasTemplateLiteral = false;

@@ -111,2 +112,3 @@ for (const prop of props) {

keys.push(_core.types.cloneNode(prop.key));
hasTemplateLiteral = true;
} else if (_core.types.isLiteral(prop.key)) {

@@ -122,3 +124,4 @@ keys.push(_core.types.stringLiteral(String(prop.key.value)));

keys,
allLiteral
allLiteral,
hasTemplateLiteral
};

@@ -171,3 +174,4 @@ }

keys,
allLiteral
allLiteral,
hasTemplateLiteral
} = extractNormalizedKeys(path);

@@ -186,3 +190,3 @@

if (!_core.types.isProgram(path.scope.block)) {
if (!hasTemplateLiteral && !_core.types.isProgram(path.scope.block)) {
const program = path.findParent(path => path.isProgram());

@@ -189,0 +193,0 @@ const id = path.scope.generateUidIdentifier("excluded");

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

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

"dependencies": {
"@babel/compat-data": "^7.14.5",
"@babel/compat-data": "^7.14.7",
"@babel/helper-compilation-targets": "^7.14.5",

@@ -31,3 +31,3 @@ "@babel/helper-plugin-utils": "^7.14.5",

"devDependencies": {
"@babel/core": "7.14.5",
"@babel/core": "7.14.6",
"@babel/helper-plugin-test-runner": "7.14.5"

@@ -34,0 +34,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