[Pkg-javascript-devel] Bug#905944: Bug#905944: Broken rdepends command

Jonas Smedegaard jonas at jones.dk
Wed Sep 12 20:38:08 BST 2018


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20180912/fc06a1a5/attachment.sig>


More information about the Pkg-javascript-devel mailing list