[Pkg-javascript-commits] [node-detective] 75/119: Revert "remove esprima-six, go back to esprima"

Bastien Roucariès rouca at moszumanska.debian.org
Wed Sep 6 09:44:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-detective.

commit baaef587556f25eb182f7b8300d0415816856ee6
Author: James Halliday <mail at substack.net>
Date:   Tue Mar 18 15:49:30 2014 -0700

    Revert "remove esprima-six, go back to esprima"
    
    This reverts commit 58144729b1f2b2b0ae0260bad35ade72dcacdfa6.
---
 index.js           | 2 +-
 package.json       | 2 +-
 test/generators.js | 9 +++++++++
 test/yield.js      | 9 +++++++++
 4 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index 2d76b0e..ac250b7 100644
--- a/index.js
+++ b/index.js
@@ -1,4 +1,4 @@
-var esprima = require('esprima');
+var esprima = require('esprima-six');
 var escodegen = require('escodegen');
 
 var traverse = function (node, cb) {
diff --git a/package.json b/package.json
index 6ad45b2..7da7936 100644
--- a/package.json
+++ b/package.json
@@ -18,7 +18,7 @@
   },
   "dependencies": {
     "escodegen": "~1.1.0",
-    "esprima": "~1.0.4"
+    "esprima-six": "0.0.3"
   },
   "devDependencies": {
     "tap": "~0.4.0"
diff --git a/test/generators.js b/test/generators.js
new file mode 100644
index 0000000..c16d534
--- /dev/null
+++ b/test/generators.js
@@ -0,0 +1,9 @@
+var test = require('tap').test;
+var detective = require('../');
+var fs = require('fs');
+var src = fs.readFileSync(__dirname + '/files/generators.js');
+
+test('generators', function (t) {
+    t.plan(1);
+    t.deepEqual(detective(src), [ 'a', 'b' ]);
+});
diff --git a/test/yield.js b/test/yield.js
new file mode 100644
index 0000000..85560ab
--- /dev/null
+++ b/test/yield.js
@@ -0,0 +1,9 @@
+var test = require('tap').test;
+var detective = require('../');
+var fs = require('fs');
+var src = fs.readFileSync(__dirname + '/files/yield.js');
+
+test('yield', function (t) {
+    t.plan(1);
+    t.deepEqual(detective(src), [ 'a', 'c' ]);
+});

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-detective.git



More information about the Pkg-javascript-commits mailing list