Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-destructuring

Package Overview
Dependencies
Maintainers
4
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-destructuring - npm Package Compare versions

Comparing version 7.18.0 to 7.18.6

29

lib/index.js

@@ -209,3 +209,3 @@ 'use strict';

copiedPattern.properties[i] = Object.assign({}, copiedPattern.properties[i], {
copiedPattern.properties[i] = Object.assign({}, prop, {
key: name

@@ -416,14 +416,19 @@ });

for (const node of nodes) {
if (tail !== null && core.types.isVariableDeclaration(node)) {
tail.declarations.push(...node.declarations);
if (core.types.isVariableDeclaration(node)) {
if (tail !== null) {
tail.declarations.push(...node.declarations);
continue;
} else {
node.kind = nodeKind;
tail = node;
}
} else {
node.kind = nodeKind;
tail = null;
}
if (!node.loc) {
node.loc = nodeLoc;
}
if (!node.loc) {
node.loc = nodeLoc;
}
nodesOut.push(node);
tail = core.types.isVariableDeclaration(node) ? node : null;
}
nodesOut.push(node);
}

@@ -531,3 +536,3 @@

path.ensureBlock();
const statementBody = node.body.body;
const statementBody = path.node.body.body;
const nodes = [];

@@ -586,3 +591,3 @@

destructuring.init(pattern, ref);
node.body.body = nodes.concat(node.body.body);
node.body.body = [...nodes, ...node.body.body];
scope.crawl();

@@ -589,0 +594,0 @@ },

{
"name": "@babel/plugin-transform-destructuring",
"version": "7.18.0",
"version": "7.18.6",
"description": "Compile ES2015 destructuring to ES5",

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

"dependencies": {
"@babel/helper-plugin-utils": "^7.17.12"
"@babel/helper-plugin-utils": "^7.18.6"
},

@@ -27,5 +27,5 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "^7.18.0",
"@babel/helper-plugin-test-runner": "^7.16.7",
"@babel/traverse": "^7.18.0"
"@babel/core": "^7.18.6",
"@babel/helper-plugin-test-runner": "^7.18.6",
"@babel/traverse": "^7.18.6"
},

@@ -35,3 +35,4 @@ "engines": {

},
"author": "The Babel Team (https://babel.dev/team)"
"author": "The Babel Team (https://babel.dev/team)",
"type": "commonjs"
}

Sorry, the diff of this file is not supported yet

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