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

acorn

Package Overview
Dependencies
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acorn - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json

@@ -6,3 +6,3 @@ {

"main": "dist/acorn.js",
"version": "1.0.0",
"version": "1.0.1",
"engines": {

@@ -9,0 +9,0 @@ "node": ">=0.4.0"

@@ -40,3 +40,3 @@ // Acorn is a tiny, fast JavaScript parser written in JavaScript.

export const version = "1.0.0"
export const version = "1.0.1"

@@ -43,0 +43,0 @@ // The main exported interface (under `self.acorn` when in the

@@ -60,2 +60,6 @@ // The algorithm used to determine whether a regexp can appear at a

tt.parenR.updateContext = tt.braceR.updateContext = function() {
if (this.context.length == 1) {
this.exprAllowed = true
return
}
let out = this.context.pop()

@@ -68,3 +72,3 @@ if (out === types.b_stat && this.curContext() === types.f_expr) {

} else {
this.exprAllowed = !(out && out.isExpr)
this.exprAllowed = !out.isExpr
}

@@ -71,0 +75,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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