git ssb

3+

cel / ssb-npm-registry



Commit 23dee655b1fb892aa6254ff7c38abfb7ea3e4f83

Include dependencies in publish

cel committed on 10/16/2017, 10:48:10 PM
Parent: dc53dc59b7abd4fd3a0823750f115e939991a4ce

Files changed

index.jschanged
index.jsView
@@ -610,8 +610,9 @@
610610 if (pkg.version && pkg.version !== version)
611611 return self.respondError(400, 'Mismatched package version: ' + [pkg.version, version])
612612 linksByVersion[version] = link
613613 link.version = version
614+ link.dependencies = pkg.dependencies
614615 }
615616
616617 // associate blobs with dist-tags
617618 var tags = data['dist-tags'] || {}
@@ -632,8 +633,9 @@
632633 mentions.push({
633634 name: 'npm:' + name + ':' + link.version + (link.tag ? ':' + link.tag : ''),
634635 link: link.link,
635636 size: link.size,
637+ dependencies: link.dependencies,
636638 })
637639 }
638640 return self.publishPkgs(mentions)
639641 }

Built with git-ssb-web