acorn-es7-plugin
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -48,2 +48,5 @@ var NotAsync = {} ; | ||
} | ||
this.reservedWords = new RegExp(this.reservedWords.toString().replace(/await|async/g,"").replace("|/","/").replace("/|","/").replace("||","|")) ; | ||
this.reservedWordsStrict = new RegExp(this.reservedWordsStrict.toString().replace(/await|async/g,"").replace("|/","/").replace("/|","/").replace("||","|")) ; | ||
this.reservedWordsStrictBind = new RegExp(this.reservedWordsStrictBind.toString().replace(/await|async/g,"").replace("|/","/").replace("/|","/").replace("||","|")) ; | ||
return base.apply(this,arguments); | ||
@@ -50,0 +53,0 @@ } |
{ | ||
"name": "acorn-es7-plugin", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "A plugin for the Acorn parser that understands the ES7 keywords async and await", | ||
@@ -5,0 +5,0 @@ "main": "acorn-es7-plugin.js", |
@@ -103,1 +103,11 @@ [![NPM](https://nodei.co/npm/acorn-es7-plugin.png?downloads=true&downloadRank=true)](https://nodei.co/npm/acorn-es7-plugin/) | ||
| asyncExits | Allow the additional sequences `async return <optional-expression>` and `async throw <expression>`. These sequences are used with [nodent](https://github.com/MatAtBread/nodent). In each case, as with async functions, a standard ReturnStatement (or ThrowStatement) node is generated, with an additional member 'async' set to true. | ||
Changelog | ||
========= | ||
10-Dec-15: v1.0.10 | ||
- Update the plugin code to remove 'async' and 'await' from the super-strict keyword tests introduced in acorn v2.6.x that generate parse errors before the plugin gets a chance to manage them. | ||
@@ -7,3 +7,3 @@ { | ||
"scripts": { | ||
"test": "mocha --opts ./mocha.opts" | ||
"test": "node test-es5.js ; mocha --opts ./mocha.opts" | ||
}, | ||
@@ -33,4 +33,5 @@ "repository": { | ||
"mocha": "^2.3.3", | ||
"colors": "^1.1.2", | ||
"xtend": "^4.0.1" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20354
9
508
113
1