Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

acorn-es7-plugin

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.12 to 1.0.13

9

acorn-es7-plugin.js

@@ -55,2 +55,11 @@ var NotAsync = {} ;

parser.extend("shouldParseExportStatement",function(base){
return function(){
if (this.type.label==='name' && this.value==='async' && asyncFunction.test(this.input.substr(this.start))) {
return true ;
}
return base.apply(this,arguments) ;
}
}) ;
parser.extend("parseStatement",function(base){

@@ -57,0 +66,0 @@ return function (declaration, topLevel) {

2

package.json
{
"name": "acorn-es7-plugin",
"version": "1.0.12",
"version": "1.0.13",
"description": "A plugin for the Acorn parser that understands the ES7 keywords async and await",

@@ -5,0 +5,0 @@ "main": "acorn-es7-plugin.js",

@@ -106,3 +106,6 @@ [![NPM](https://nodei.co/npm/acorn-es7-plugin.png?downloads=true&downloadRank=true)](https://nodei.co/npm/acorn-es7-plugin/)

=========
03-May-16: v1.0.13
- Correctly parse the statement `export async function name(){...}` as _async function name(){...}_ is a valid named declaration.
26-Feb-16: v1.0.12

@@ -109,0 +112,0 @@

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