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

esnext

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esnext - npm Package Compare versions

Comparing version 0.7.8 to 0.7.9

test/examples/array-comprehensions.js

6

lib/index.js

@@ -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 @@ }

5

package.json
{
"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"
}
}

3

README.md

@@ -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

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