git ssb

3+

cel / ssb-npm-registry



Commit e3dc59bd63e1aee4cb776449e47d41f18b72b205

Fix bugs

cel committed on 8/30/2018, 3:21:23 AM
Parent: 125f39126d641932fa6ea0bf4af24df471f727c0

Files changed

bootstrap/bin.jschanged
index.jschanged
bootstrap/bin.jsView
@@ -34,14 +34,15 @@
3434 return args.shift()
3535 }
3636
3737 function version() {
38- var pkg = require('./package')
38 + var pkg = require('../package')
3939 console.log(pkg.name + ' ' + pkg.version)
4040 }
4141
4242 function usage(code) {
43- console.error(fs.readFileSync(path.join(__dirname, 'usage.txt')))
43 + (code ? process.stderr : process.stdout)
44 + .write(fs.readFileSync(path.join(__dirname, 'usage.txt'), 'utf8'))
4445 process.exit(code)
4546 }
4647
4748 function main(args) {
index.jsView
@@ -557,9 +557,9 @@
557557 if (err) return cb(err)
558558 var version = distTags[spec]
559559 || semver.maxSatisfying(Object.keys(versions), spec)
560560 var item = versions[version]
561- if (!item) return cb(new Error('Version not found: ' + name + '@' + spec))
561 + if (!item) return cb(new Error('Version not found: ' + pkgName + '@' + spec))
562562 self.getMsgIdForBlobMention(item.blobId, item.author, function (err, id) {
563563 if (err) return cb(err)
564564 item.msgId = id
565565 cb(null, item)

Built with git-ssb-web