babel-plugin-transform-es2015-parameters
Advanced tools
Comparing version 7.0.0-alpha.1 to 7.0.0-alpha.3
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16915
75
+ Addedbabel-code-frame@7.0.0-alpha.3(transitive)
+ Addedbabel-helper-call-delegate@7.0.0-alpha.3(transitive)
+ Addedbabel-helper-get-function-arity@7.0.0-alpha.3(transitive)
+ Addedbabel-helper-hoist-variables@7.0.0-alpha.3(transitive)
+ Addedbabel-messages@7.0.0-alpha.3(transitive)
+ Addedbabel-template@7.0.0-alpha.3(transitive)
+ Addedbabel-traverse@7.0.0-alpha.3(transitive)
+ Addedbabel-types@7.0.0-alpha.3(transitive)
+ Addedbabylon@7.0.0-beta.7(transitive)
- Removedbabel-code-frame@7.0.0-alpha.1(transitive)
- Removedbabel-helper-call-delegate@7.0.0-alpha.1(transitive)
- Removedbabel-helper-get-function-arity@7.0.0-alpha.1(transitive)
- Removedbabel-helper-hoist-variables@7.0.0-alpha.1(transitive)
- Removedbabel-messages@7.0.0-alpha.1(transitive)
- Removedbabel-template@7.0.0-alpha.1(transitive)
- Removedbabel-traverse@7.0.0-alpha.1(transitive)
- Removedbabel-types@7.0.0-alpha.1(transitive)
- Removedbabylon@7.0.0-beta.4(transitive)
Updatedbabel-template@7.0.0-alpha.3
Updatedbabel-traverse@7.0.0-alpha.3
Updatedbabel-types@7.0.0-alpha.3