git ssb

3+

cel / ssb-npm-registry



Commit 8a4974fd8a7728b57aaa09d797b14fb065313500

Require dependencies to already be on ssb-npm when publishing

cel committed on 6/30/2018, 8:57:22 PM
Parent: 688be4c9d6200dd66d47d9087952c52b4a9de824

Files changed

index.jschanged
index.jsView
@@ -181,9 +181,9 @@
181181 if (err) return cb(err)
182182 var version = distTags[spec]
183183 || semver.maxSatisfying(Object.keys(versions), spec)
184184 var item = versions[version]
185- if (!item) return console.error('version not found: ' + name + '@' + spec)
185 + if (!item) return cb(new Error('Dependency version not found: ' + name + '@' + spec))
186186 msgs[item.msg.key] = item.msg.value
187187 var c = item.msg.value.content
188188 if (Array.isArray(c.dependencyBranch)) {
189189 for (var k = 0; k < c.dependencyBranch.length; k++) {

Built with git-ssb-web