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 7.0.0-alpha.1 to 7.0.0-alpha.3

14

package.json
{
"name": "babel-plugin-transform-es2015-parameters",
"version": "7.0.0-alpha.1",
"version": "7.0.0-alpha.3",
"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.1",
"babel-helper-call-delegate": "7.0.0-alpha.1",
"babel-helper-get-function-arity": "7.0.0-alpha.1",
"babel-template": "7.0.0-alpha.1",
"babel-types": "7.0.0-alpha.1"
"babel-traverse": "7.0.0-alpha.3",
"babel-helper-call-delegate": "7.0.0-alpha.3",
"babel-helper-get-function-arity": "7.0.0-alpha.3",
"babel-template": "7.0.0-alpha.3",
"babel-types": "7.0.0-alpha.3"
},

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

"devDependencies": {
"babel-helper-plugin-test-runner": "7.0.0-alpha.1"
"babel-helper-plugin-test-runner": "7.0.0-alpha.3"
}
}

@@ -11,2 +11,29 @@ # babel-plugin-transform-es2015-parameters

## Examples
**In**
```javascript
function test(x = "hello", { a, b }, ...args) {
console.log(x, a, b, args);
}
```
**Out**
```javascript
function test() {
var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "hello";
var _ref = arguments[1];
var a = _ref.a,
b = _ref.b;
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
args[_key - 2] = arguments[_key];
}
console.log(x, a, b, args);
}
```
## Installation

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