Quoting Julien Puydt (2018-08-12 07:23:50)
> The 'rdepends' command is broken ; the reason is that the api to do 
> the request wasn't official and has been removed, see:
>    https://github.com/npm/registry/issues/231
> 
> Currently the best way to get it back might be to parse the pages 
>    like: https://www.npmjs.com/browse/depended/MODULE_NAME

Thanks to 
https://stackoverflow.com/questions/18796890/how-do-you-find-out-which-npm-modules-depend-on-yours
 
I found that this minimal hack is a temporary workaround:

--- helper.py   2018-08-17 13:53:04.000000000 +0200
+++ helper.py   2018-09-12 21:30:39.978795567 +0200
@@ -81,7 +81,7 @@
 def search_for_reverse_dependencies(module):
     if isinstance(module, _Npm2Deb):
         module = module.name
-    url = "http://registry.npmjs.org/-/_view/dependedUpon?startkey="; \
+    url = 
"https://skimdb.npmjs.com/registry/_design/app/_view/dependedUpon?startkey="; \
         + "[%%22%(name)s%%22]&endkey=[%%22%(name)s%%22,%%7B%%7D]&group_level=2"
     url = url % {'name': module}
     _debug(1, "opening url %s" % url)


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to