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.7 to 7.15.6

lib/shouldStoreRHSInTemporaryVariable.js

4

lib/index.js

@@ -20,2 +20,4 @@ "use strict";

var _shouldStoreRHSInTemporaryVariable = require("./shouldStoreRHSInTemporaryVariable");
const ZERO_REFS = (() => {

@@ -308,3 +310,3 @@ const node = _core.types.identifier("a");

if (originalPath.node.id.properties.length > 1 && !_core.types.isIdentifier(originalPath.node.init)) {
if ((0, _shouldStoreRHSInTemporaryVariable.default)(originalPath.node.id) && !_core.types.isIdentifier(originalPath.node.init)) {
const initRef = path.scope.generateUidIdentifierBasedOnNode(originalPath.node.init, "ref");

@@ -311,0 +313,0 @@ originalPath.insertBefore(_core.types.variableDeclarator(initRef, originalPath.node.init));

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

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

"dependencies": {
"@babel/compat-data": "^7.14.7",
"@babel/helper-compilation-targets": "^7.14.5",
"@babel/compat-data": "^7.15.0",
"@babel/helper-compilation-targets": "^7.15.4",
"@babel/helper-plugin-utils": "^7.14.5",
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
"@babel/plugin-transform-parameters": "^7.14.5"
"@babel/plugin-transform-parameters": "^7.15.4"
},

@@ -31,4 +31,5 @@ "peerDependencies": {

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

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

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