Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depends on acorn #22

Open
bastien-roucaries opened this issue Nov 11, 2023 · 0 comments
Open

Depends on acorn #22

bastien-roucaries opened this issue Nov 11, 2023 · 0 comments

Comments

@bastien-roucaries
Copy link

From debian:

Date: Sat, 11 Nov 2023 21:25:14 +0000
Subject: Depend on acorn instead of node-acorn

---
 index.js     | 2 +-
 package.json | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index bbdd7c1..8656a22 100644
--- a/index.js
+++ b/index.js
@@ -1,4 +1,4 @@
-var parse = require('acorn-node').parse;
+var parse = require('acorn').parse;
 
 module.exports = function (src) {
     // If src is a Buffer, esprima will just stringify it, so we beat them to
diff --git a/package.json b/package.json
index 88165e8..0bc9c70 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
     "browser-unpack": "bin/cmd.js"
   },
   "dependencies": {
-    "acorn-node": "^1.3.0",
+    "acorn": "^8.3.0",
     "concat-stream": "^1.5.0",
     "minimist": "^1.1.1"
   },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant