Commit a7e3b310b892161b29e770229392b156af586c25
Include bundledDependencies
cel committed on 10/16/2017, 11:11:34 PMParent: c31a90e7d3d4e6187e47fa310ec54346f03f40d2
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -203,9 +203,9 @@ | ||
203 | 203 | var newLink = {} |
204 | 204 | for (var k in link) newLink[k] = link[k] |
205 | 205 | getPackageJsonFromTarballBlob(sbot, id, function (err, pkg) { |
206 | 206 | 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] | |
208 | 208 | if (!--waiting) next() |
209 | 209 | }) |
210 | 210 | return newLink |
211 | 211 | }) |
@@ -633,8 +633,9 @@ | ||
633 | 633 | return self.respondError(400, 'Mismatched package version: ' + [pkg.version, version]) |
634 | 634 | linksByVersion[version] = link |
635 | 635 | link.version = version |
636 | 636 | link.dependencies = pkg.dependencies || {} |
637 | + link.bundledDependencies = pkg.bundledDependencies || pkg.bundleDependencies | |
637 | 638 | } |
638 | 639 | |
639 | 640 | // associate blobs with dist-tags |
640 | 641 | var tags = data['dist-tags'] || {} |
@@ -656,8 +657,9 @@ | ||
656 | 657 | name: 'npm:' + name + ':' + link.version + (link.tag ? ':' + link.tag : ''), |
657 | 658 | link: link.link, |
658 | 659 | size: link.size, |
659 | 660 | dependencies: link.dependencies, |
661 | + bundledDependencies: link.bundledDependencies, | |
660 | 662 | }) |
661 | 663 | } |
662 | 664 | return self.publishPkgs(mentions) |
663 | 665 | } |
Built with git-ssb-web