Socket
Socket
Sign inDemoInstall

acorn

Package Overview
Dependencies
Maintainers
3
Versions
133
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 8.0.1 to 8.0.2

AUTHORS

8

CHANGELOG.md

@@ -0,1 +1,9 @@

## 8.0.2 (2020-09-30)
### Bug fixes
Make the TypeScript types reflect the current allowed values for `ecmaVersion`.
Fix another regexp/division tokenizer issue.
## 8.0.1 (2020-08-12)

@@ -2,0 +10,0 @@

14

dist/acorn.d.ts

@@ -5,7 +5,7 @@ export as namespace acorn

declare namespace acorn {
function parse(input: string, options?: Options): Node
function parse(input: string, options: Options): Node
function parseExpressionAt(input: string, pos?: number, options?: Options): Node
function parseExpressionAt(input: string, pos: number, options: Options): Node
function tokenizer(input: string, options?: Options): {
function tokenizer(input: string, options: Options): {
getToken(): Token

@@ -16,3 +16,3 @@ [Symbol.iterator](): Iterator<Token>

interface Options {
ecmaVersion?: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020
ecmaVersion: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 'latest'
sourceType?: 'script' | 'module'

@@ -42,5 +42,5 @@ onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void

parse(this: Parser): Node
static parse(this: typeof Parser, input: string, options?: Options): Node
static parseExpressionAt(this: typeof Parser, input: string, pos: number, options?: Options): Node
static tokenizer(this: typeof Parser, input: string, options?: Options): {
static parse(this: typeof Parser, input: string, options: Options): Node
static parseExpressionAt(this: typeof Parser, input: string, pos: number, options: Options): Node
static tokenizer(this: typeof Parser, input: string, options: Options): {
getToken(): Token

@@ -47,0 +47,0 @@ [Symbol.iterator](): Iterator<Token>

@@ -12,3 +12,3 @@ {

},
"version": "8.0.1",
"version": "8.0.2",
"engines": {"node": ">=0.4.0"},

@@ -15,0 +15,0 @@ "maintainers": [

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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