Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-es2015-parameters

Package Overview
Dependencies
Maintainers
6
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 6.6.0 to 6.6.4

2

lib/default.js

@@ -36,3 +36,3 @@ /* eslint max-len: 0 */

function hasDefaults(node) {
for (var _iterator = (node.params /*: Array<Object>*/), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _getIterator(_iterator);;) {
for (var _iterator = node.params, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _getIterator(_iterator);;) {
var _ref;

@@ -39,0 +39,0 @@

@@ -13,3 +13,3 @@ "use strict";

Function: function Function(path) {
var params /*: Array*/ = path.get("params");
var params = path.get("params");

@@ -16,0 +16,0 @@ // If there's a rest param, no need to loop through it. Also, we need to

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

/*:: import type { NodePath } from "babel-traverse";*/
exports["default"] = function () {

@@ -30,3 +29,3 @@ return {

// default/rest visitors require access to `arguments`
var params /*: Array<NodePath>*/ = path.get("params");
var params = path.get("params");
for (var _iterator = params, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _getIterator(_iterator);;) {

@@ -33,0 +32,0 @@ var _ref;

@@ -196,3 +196,3 @@ /* eslint indent: 0 */

if (!state.deopted && !state.references.length) {
for (var _iterator = (state.candidates /*: Array*/), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _getIterator(_iterator);;) {
for (var _iterator = state.candidates, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _getIterator(_iterator);;) {
var _ref;

@@ -199,0 +199,0 @@

{
"name": "babel-plugin-transform-es2015-parameters",
"version": "6.6.0",
"version": "6.6.4",
"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": "^6.6.0",
"babel-helper-call-delegate": "^6.6.0",
"babel-helper-get-function-arity": "^6.3.13",
"babel-template": "^6.6.0",
"babel-types": "^6.6.0",
"babel-traverse": "^6.6.4",
"babel-helper-call-delegate": "^6.6.4",
"babel-helper-get-function-arity": "^6.6.4",
"babel-template": "^6.6.4",
"babel-types": "^6.6.4",
"babel-runtime": "^5.0.0"

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