Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
6
Maintainers
4
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.16.7 to 7.17.3

36

lib/index.js

@@ -645,2 +645,3 @@ 'use strict';

samsung: "2",
rhino: "1.7.14",
electron: "0.20"

@@ -731,2 +732,3 @@ },

samsung: "2",
rhino: "1.7.14",
electron: "0.20"

@@ -743,2 +745,3 @@ },

samsung: "2",
rhino: "1.7.14",
electron: "0.20"

@@ -833,2 +836,3 @@ },

samsung: "6",
rhino: "1.7.14",
electron: "1.4"

@@ -1035,2 +1039,3 @@ },

samsung: "6",
rhino: "1.7.14",
electron: "1.4"

@@ -1326,2 +1331,3 @@ },

samsung: "1",
rhino: "1.7.14",
electron: "0.20"

@@ -1340,2 +1346,3 @@ },

samsung: "1",
rhino: "1.7.14",
electron: "0.20"

@@ -1354,2 +1361,3 @@ },

samsung: "1",
rhino: "1.7.14",
electron: "0.20"

@@ -1368,2 +1376,3 @@ },

samsung: "1",
rhino: "1.7.14",
electron: "0.20"

@@ -1406,2 +1415,3 @@ },

samsung: "1",
rhino: "1.7.14",
electron: "0.20"

@@ -1420,2 +1430,3 @@ },

samsung: "1",
rhino: "1.7.14",
electron: "0.20"

@@ -1434,2 +1445,3 @@ },

samsung: "1",
rhino: "1.7.14",
electron: "0.20"

@@ -1472,2 +1484,3 @@ },

samsung: "1",
rhino: "1.7.14",
electron: "0.20"

@@ -1498,2 +1511,3 @@ },

samsung: "1",
rhino: "1.7.14",
electron: "0.20"

@@ -1534,2 +1548,3 @@ },

samsung: "3.4",
rhino: "1.7.14",
electron: "0.21"

@@ -1560,2 +1575,3 @@ },

samsung: "1",
rhino: "1.7.14",
electron: "0.20"

@@ -1586,2 +1602,3 @@ },

samsung: "1",
rhino: "1.7.14",
electron: "0.20"

@@ -1600,2 +1617,3 @@ },

samsung: "1",
rhino: "1.7.14",
electron: "0.20"

@@ -1614,2 +1632,3 @@ },

samsung: "1",
rhino: "1.7.14",
electron: "0.20"

@@ -1808,9 +1827,14 @@ },

const {
isObjectProperty: isObjectProperty$1
isObjectProperty: isObjectProperty$1,
isArrayPattern,
isObjectPattern,
isAssignmentPattern: isAssignmentPattern$1,
isRestElement,
isIdentifier
} = core.types;
function shouldStoreRHSInTemporaryVariable(node) {
if (core.types.isArrayPattern(node)) {
if (isArrayPattern(node)) {
const nonNullElements = node.elements.filter(element => element !== null);
if (nonNullElements.length > 1) return true;else return shouldStoreRHSInTemporaryVariable(nonNullElements[0]);
} else if (core.types.isObjectPattern(node)) {
} else if (isObjectPattern(node)) {
const {

@@ -1828,6 +1852,6 @@ properties

}
} else if (core.types.isAssignmentPattern(node)) {
} else if (isAssignmentPattern$1(node)) {
return shouldStoreRHSInTemporaryVariable(node.left);
} else if (core.types.isRestElement(node)) {
if (core.types.isIdentifier(node.argument)) return true;
} else if (isRestElement(node)) {
if (isIdentifier(node.argument)) return true;
return shouldStoreRHSInTemporaryVariable(node.argument);

@@ -1834,0 +1858,0 @@ } else {

8

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

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

"dependencies": {
"@babel/compat-data": "^7.16.4",
"@babel/compat-data": "^7.17.0",
"@babel/helper-compilation-targets": "^7.16.7",

@@ -31,5 +31,5 @@ "@babel/helper-plugin-utils": "^7.16.7",

"devDependencies": {
"@babel/core": "^7.16.7",
"@babel/core": "^7.17.3",
"@babel/helper-plugin-test-runner": "^7.16.7",
"@babel/parser": "^7.16.7"
"@babel/parser": "^7.17.3"
},

@@ -36,0 +36,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc