Socket
Socket
Sign inDemoInstall

acorn-private-methods

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acorn-private-methods - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

.eslintignore

4

.eslintrc.json

@@ -8,2 +8,6 @@ {

"plugins": ["node"],
"overrides": [{
"files": ["rollup.config.js", "index.js"],
"parserOptions": { "sourceType": "module" }
}],
"rules": {

@@ -10,0 +14,0 @@ "accessor-pairs": "error",

@@ -0,1 +1,6 @@

## 0.3.3 (2020-08-13)
* Migrate to ESM
* Mark as compatible with acorn@8
## 0.3.2 (2020-06-11)

@@ -2,0 +7,0 @@

8

index.js

@@ -1,6 +0,6 @@

"use strict"
// eslint-disable-next-line node/no-unsupported-features/es-syntax
import privateClassElements from "acorn-private-class-elements"
const privateClassElements = require("acorn-private-class-elements")
module.exports = function(Parser) {
// eslint-disable-next-line node/no-unsupported-features/es-syntax
export default function privateMethods(Parser) {
const ExtendedParser = privateClassElements(Parser)

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

@@ -8,2 +8,4 @@ {

],
"main": "dist/acorn-private-methods.js",
"module": "dist/acorn-private-methods.mjs",
"engines": {

@@ -18,2 +20,3 @@ "node": ">=4.8.2"

"scripts": {
"build": "rollup -c rollup.config.js",
"test": "mocha",

@@ -24,16 +27,17 @@ "test:test262": "node run_test262.js",

"peerDependencies": {
"acorn": "^6 || ^7"
"acorn": "^6 || ^7 || ^8"
},
"dependencies": {
"acorn-private-class-elements": "^0.2.6"
"acorn-private-class-elements": "^0.2.7"
},
"version": "0.3.2",
"version": "0.3.3",
"devDependencies": {
"acorn": "^7",
"acorn": "^8",
"eslint": "^7",
"eslint-plugin-node": "^11",
"mocha": "^8",
"test262": "git+https://github.com/tc39/test262.git#adf2cf4204a748463cacb68f07d0d006b00c3821",
"rollup": "^2.10.0",
"test262": "git+https://github.com/tc39/test262.git#e0758bbeacac7776dae2a69f88eb4742f0930d7c",
"test262-parser-runner": "^0.5.0"
}
}

@@ -19,4 +19,12 @@ # Private methods and getter/setters support for Acorn

or as an ECMAScript Module:
```javascript
import {Parser} from 'acorn';
import privateMethods from 'acorn-private-methods';
Parser.extend(privateMethods).parse('class X { #a() {} }');
```
## License
This plugin is released under an [MIT License](./LICENSE).
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