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.3.0 to 8.4.0

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 8.4.0 (2021-06-11)
### New features
A new option, `allowSuperOutsideMethod`, can be used to suppress the error when `super` is used in the wrong context.
## 8.3.0 (2021-05-31)

@@ -2,0 +8,0 @@

3

dist/acorn.d.ts

@@ -15,3 +15,3 @@ export as namespace acorn

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

@@ -24,2 +24,3 @@ onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void

allowAwaitOutsideFunction?: boolean
allowSuperOutsideMethod?: boolean
allowHashBang?: boolean

@@ -26,0 +27,0 @@ locations?: boolean

@@ -19,3 +19,3 @@ {

},
"version": "8.3.0",
"version": "8.4.0",
"engines": {"node": ">=0.4.0"},

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

@@ -57,5 +57,6 @@ # Acorn

either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10 (2019),
11 (2020), or 12 (2021, partial support), or `"latest"` (the latest
the library supports). This influences support for strict mode, the
set of reserved words, and support for new syntax features.
11 (2020), 12 (2021, partial support), 13 (2022, partial support)
or `"latest"` (the latest the library supports). This influences
support for strict mode, the set of reserved words, and support
for new syntax features.

@@ -104,2 +105,5 @@ **NOTE**: Only 'stage 4' (finalized) ECMAScript features are being

- **allowSuperOutsideMethod**: By default, `super` outside a method
raises an error. Set this to `true` to accept such code.
- **allowHashBang**: When this is enabled (off by default), if the

@@ -106,0 +110,0 @@ code starts with the characters `#!` (as in a shellscript), the

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

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