browser-unpack icon indicating copy to clipboard operation
browser-unpack copied to clipboard

Depends on acorn

Open bastien-roucaries opened this issue 2 years ago • 0 comments

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"
   },

bastien-roucaries avatar Nov 11 '23 21:11 bastien-roucaries