Socket
Socket
Sign inDemoInstall

babel-plugin-transform-es2015-parameters

Package Overview
Dependencies
Maintainers
3
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-es2015-parameters - npm Package Compare versions

Comparing version 7.0.0-alpha.9 to 7.0.0-alpha.10

1

lib/default.js

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

var argsIdentifier = t.identifier("arguments");
argsIdentifier._shadowedFunctionLiteral = path;

@@ -94,0 +93,0 @@ function pushDefNode(left, right, i) {

4

lib/index.js

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

ArrowFunctionExpression: function ArrowFunctionExpression(path) {
if (!path.isArrowFunctionExpression()) return;
var params = path.get("params");

@@ -26,3 +28,3 @@ for (var _iterator = params, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {

if (param.isRestElement() || param.isAssignmentPattern()) {
path.arrowFunctionToShadowed();
path.arrowFunctionToExpression();
break;

@@ -29,0 +31,0 @@ }

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

argsId._shadowedFunctionLiteral = path;
var state = {

@@ -213,4 +211,2 @@ references: [],

state.deopted = state.deopted || !!node.shadow;
var start = t.numericLiteral(node.params.length);

@@ -217,0 +213,0 @@ var key = scope.generateUidIdentifier("key");

{
"name": "babel-plugin-transform-es2015-parameters",
"version": "7.0.0-alpha.9",
"version": "7.0.0-alpha.10",
"description": "Compile ES2015 default and rest parameters to ES5",

@@ -9,7 +9,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-parameters",

"dependencies": {
"babel-traverse": "7.0.0-alpha.9",
"babel-helper-call-delegate": "7.0.0-alpha.9",
"babel-helper-get-function-arity": "7.0.0-alpha.9",
"babel-template": "7.0.0-alpha.9",
"babel-types": "7.0.0-alpha.9"
"babel-traverse": "7.0.0-alpha.10",
"babel-helper-call-delegate": "7.0.0-alpha.10",
"babel-helper-get-function-arity": "7.0.0-alpha.10",
"babel-template": "7.0.0-alpha.10",
"babel-types": "7.0.0-alpha.10"
},

@@ -20,4 +20,4 @@ "keywords": [

"devDependencies": {
"babel-helper-plugin-test-runner": "7.0.0-alpha.9"
"babel-helper-plugin-test-runner": "7.0.0-alpha.10"
}
}
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