New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.5.0 to 0.6.0

test/examples/spread.js

5

lib/index.js

@@ -8,2 +8,3 @@ var fs = require('fs');

var es6restParams = require('es6-rest-params');
var es6spread = require('es6-spread');
var es6templates = require('es6-templates');

@@ -85,2 +86,6 @@ var regenerator = require('regenerator');

if (options.spread !== false) {
ast = es6spread.transform(ast);
}
if (options.templates !== false) {

@@ -87,0 +92,0 @@ ast = es6templates.transform(ast);

5

package.json
{
"name": "esnext",
"version": "0.5.0",
"version": "0.6.0",
"description": "Transform next-generation JavaScript to today's JavaScript.",

@@ -35,4 +35,5 @@ "main": "lib/index.js",

"ast-types": "^0.3.23",
"es6-default-params": "0.0.1"
"es6-default-params": "0.0.1",
"es6-spread": "0.0.1"
}
}

28

README.md

@@ -30,14 +30,15 @@ # esnext

* classes (via [es6-class][es6-class])
* generators (via [regenerator][regenerator])
* arrow functions (via [es6-arrow-function][es6-arrow-function])
* template strings (via [es6-templates][es6-templates])
* rest params (via [es6-rest-params][es6-rest-params])
* [classes][features-classes] (via [es6-class][es6-class])
* [generators][features-generators] (via [regenerator][regenerator])
* [arrow functions][features-arrows] (via [es6-arrow-function][es6-arrow-function])
* [template strings][features-template-strings] (via [es6-templates][es6-templates])
* [rest params][features-default-rest-spread] (via [es6-rest-params][es6-rest-params])
* [default params][features-default-rest-spread] (via [es6-default-params][es6-default-params])
### TODO
* modules (integration with [es6-module-transpiler][es6-module-transpiler] required)
* spread arguments
* block scoping (`let`)
* destructuring
* [modules][features-modules] (i.e. integration with [es6-module-transpiler][es6-module-transpiler])
* [spread arguments][features-default-rest-spread]
* [block scoping (`let`)][features-let-const]
* [destructuring][features-destructuring]

@@ -106,2 +107,3 @@ Any omissions here are not intentional and we'd love to integrate support for

[es6-class]: https://github.com/square/es6-class
[es6-default-params]: https://github.com/square/es6-default-params
[es6-module-transpiler]: https://github.com/square/es6-module-transpiler

@@ -111,2 +113,10 @@ [es6-rest-params]: https://github.com/thomasboyt/es6-rest-params

[es6features]: https://github.com/lukehoban/es6features
[features-arrows]: https://github.com/lukehoban/es6features#arrows
[features-classes]: https://github.com/lukehoban/es6features#classes
[features-default-rest-spread]: https://github.com/lukehoban/es6features#default--rest--spread
[features-destructuring]: https://github.com/lukehoban/es6features#destructuring
[features-generators]: https://github.com/lukehoban/es6features#generators
[features-let-const]: https://github.com/lukehoban/es6features#let--const
[features-modules]: https://github.com/lukehoban/es6features#modules
[features-template-strings]: https://github.com/lukehoban/es6features#template-strings
[recast]: https://github.com/benjamn/recast

@@ -113,0 +123,0 @@ [regenerator]: http://facebook.github.io/regenerator/

@@ -57,1 +57,6 @@ /* jshint esnext:true */

);
assert.deepEqual(
Counter.forCounts(...[1, 2]).map(counter => counter.count),
[1, 2]
);

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