acorn-private-methods
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -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 @@ |
@@ -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). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30259
15
693
30
7
+ Addedacorn@8.12.1(transitive)
- Removedacorn@7.4.1(transitive)