git ssb

3+

cel / ssb-npm-registry



Commit a7e3b310b892161b29e770229392b156af586c25

Include bundledDependencies

cel committed on 10/16/2017, 11:11:34 PM
Parent: c31a90e7d3d4e6187e47fa310ec54346f03f40d2

Files changed

index.jschanged
index.jsView
@@ -203,9 +203,9 @@
203203 var newLink = {}
204204 for (var k in link) newLink[k] = link[k]
205205 getPackageJsonFromTarballBlob(sbot, id, function (err, pkg) {
206206 if (err) return cb(err)
207- for (var k in opts) newLink[k] = pkg[k]
207+ for (var k in props) newLink[k] = pkg[k]
208208 if (!--waiting) next()
209209 })
210210 return newLink
211211 })
@@ -633,8 +633,9 @@
633633 return self.respondError(400, 'Mismatched package version: ' + [pkg.version, version])
634634 linksByVersion[version] = link
635635 link.version = version
636636 link.dependencies = pkg.dependencies || {}
637+ link.bundledDependencies = pkg.bundledDependencies || pkg.bundleDependencies
637638 }
638639
639640 // associate blobs with dist-tags
640641 var tags = data['dist-tags'] || {}
@@ -656,8 +657,9 @@
656657 name: 'npm:' + name + ':' + link.version + (link.tag ? ':' + link.tag : ''),
657658 link: link.link,
658659 size: link.size,
659660 dependencies: link.dependencies,
661+ bundledDependencies: link.bundledDependencies,
660662 })
661663 }
662664 return self.publishPkgs(mentions)
663665 }

Built with git-ssb-web