Comparing version 0.7.8 to 0.7.9
@@ -11,2 +11,3 @@ var fs = require('fs'); | ||
var regenerator = require('regenerator'); | ||
var es6comprehensions = require('es6-comprehensions'); | ||
@@ -52,2 +53,3 @@ var esprima = require('esprima'); | ||
* | ||
* arrayComprehensions - Compile ES6 array comprehensions. | ||
* arrowFunction - Compile ES6 arrow functions into normal functions. | ||
@@ -100,2 +102,6 @@ * class - Compile ES6 classes into ES5 constructors. | ||
if (options.arrayComprehensions !== false) { | ||
ast = es6comprehensions.transform(ast); | ||
} | ||
return ast; | ||
@@ -102,0 +108,0 @@ } |
{ | ||
"name": "esnext", | ||
"version": "0.7.8", | ||
"version": "0.7.9", | ||
"description": "Transform next-generation JavaScript to today's JavaScript.", | ||
@@ -36,4 +36,5 @@ "main": "lib/index.js", | ||
"es6-spread": "^0.0.5", | ||
"es6-rest-params": "^0.1.0" | ||
"es6-rest-params": "^0.1.0", | ||
"es6-comprehensions": "^0.2.2" | ||
} | ||
} |
@@ -37,2 +37,3 @@ # esnext | ||
* [spread][features-default-rest-spread] (via [es6-spread][es6-spread]) | ||
* [comprehensions][features-comprehensions] (via [es6-comprehensions][es6-comprehensions]) | ||
@@ -113,2 +114,3 @@ ### TODO | ||
[es6-class]: https://github.com/square/es6-class | ||
[es6-comprehensions]: https://github.com/dreame4/es6-comprehensions | ||
[es6-default-params]: https://github.com/square/es6-default-params | ||
@@ -122,2 +124,3 @@ [es6-module-transpiler]: https://github.com/square/es6-module-transpiler | ||
[features-classes]: https://github.com/lukehoban/es6features#classes | ||
[features-comprehensions]: https://github.com/lukehoban/es6features#comprehensions | ||
[features-default-rest-spread]: https://github.com/lukehoban/es6features#default--rest--spread | ||
@@ -124,0 +127,0 @@ [features-destructuring]: https://github.com/lukehoban/es6features#destructuring |
@@ -62,1 +62,6 @@ /* jshint esnext:true */ | ||
); | ||
assert.deepEqual( | ||
[for (x of Counter.forCounts(1, 2, 3).map(counter => counter.count)) x*x], | ||
[1, 4, 9] | ||
); |
Sorry, the diff of this file is not supported yet
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
14637
16
265
134
12
+ Addedes6-comprehensions@^0.2.2
+ Addedast-util@0.0.6(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedes6-comprehensions@0.2.3(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedminimist@0.1.0(transitive)
+ Addedobject-keys@0.4.0(transitive)
+ Addedreadable-stream@1.0.34(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedthrough2@0.4.2(transitive)
+ Addedxtend@2.1.2(transitive)
+ Addedyargs@1.2.6(transitive)