[Pkg-javascript-commits] [node-module-deps] 181/444: switch back to detective, drop mine

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:47:54 UTC 2017


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

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

commit 89e9b443234cd67c8fb236a79f6a5420dfe917bc
Author: James Halliday <mail at substack.net>
Date:   Mon Feb 24 10:18:52 2014 -0800

    switch back to detective, drop mine
---
 index.js     | 5 ++---
 package.json | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/index.js b/index.js
index 5aad7f5..e1c45d0 100644
--- a/index.js
+++ b/index.js
@@ -4,7 +4,7 @@ var spawn = require('child_process').spawn;
 
 var browserResolve = require('browser-resolve');
 var nodeResolve = require('resolve');
-var mine = require('mine');
+var detective = require('detective');
 var through = require('through');
 var concat = require('concat-stream');
 var parents = require('parents');
@@ -243,14 +243,13 @@ module.exports = function (mains, opts) {
             deps = [];
         }
         else {
-            try { var depRows = mine(src) }
+            try { var deps = detective(src) }
             catch (ex) {
                 var message = ex && ex.message ? ex.message : ex;
                 return output.emit('error', new Error(
                     'Parsing file ' + file + ': ' + message
                 ));
             }
-            deps = depRows.map(function (d) { return d.name });
         }
         var p = deps.length;
         var current = { id: file, filename: file, paths: [], package: pkg };
diff --git a/package.json b/package.json
index 5ef0b58..90487f2 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,7 @@
     "concat-stream": "~1.4.1",
     "minimist": "~0.0.5",
     "parents": "0.0.2",
-    "mine": "~0.0.1"
+    "detective": "~2.4.0"
   },
   "devDependencies": {
     "tape": "~2.3.2",

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



More information about the Pkg-javascript-commits mailing list