Socket
Socket
Sign inDemoInstall

acorn-es6

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

3

index.js

@@ -7,4 +7,3 @@ 'use strict';

require('./transforms/spread.js'),
// see https://github.com/marijnh/acorn/issues/129
// require('./transforms/default-parameters.js'),
require('./transforms/default-parameters.js'),
require('./transforms/for-of.js'),

@@ -11,0 +10,0 @@ require('./transforms/property-methods.js')

{
"name": "acorn-es6",
"version": "0.0.1",
"version": "0.0.2",
"description": "Support many ES6 features with no runtime requirements",
"keywords": [],
"dependencies": {
"acorn": "^0.8.0"
"acorn": "https://github.com/marijnh/acorn/archive/015a0e90bcbd5c4093650917d1373d211c086a41.tar.gz"
},

@@ -16,3 +16,3 @@ "devDependencies": {

"scripts": {
"test": "mocha -R spec"
"test": "node test"
},

@@ -19,0 +19,0 @@ "repository": {

@@ -32,2 +32,10 @@ # acorn-es6

### defaultParameters
```js
function logDeveloper(name, codes = 'JavaScript', livesIn = 'USA') {
console.log('name: %s, codes: %s, lives in: %s', name, codes, livesIn);
}
```
### forOf

@@ -59,3 +67,3 @@

items.forEach(function (item) { console.log(item); });
};
}
```

@@ -72,3 +80,2 @@

// 5 + 10 = 15
};
```

@@ -75,0 +82,0 @@

@@ -18,3 +18,2 @@ 'use strict';

// see https://github.com/marijnh/acorn/issues/129
if (file === 'default-parameters.js') return;
test(file, function () {

@@ -21,0 +20,0 @@ var src = fs.readFileSync(__dirname + '/examples/' + file, 'utf8');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc