git ssb

3+

cel / ssb-npm-registry



Commit c7e682a509b3799849c99c314fe7dbf8aaf0733a

Handle scoped package names

cel committed on 11/25/2017, 8:02:45 PM
Parent: c5edad5b4ad6b6432f5c825f69aa747a2fde423d

Files changed

index.jschanged
index.jsView
@@ -461,9 +461,9 @@
461461
462462 Req.prototype.servePkg = function (pathname) {
463463 var self = this
464464 var parts = pathname.split('/')
465- var pkgName = parts.shift()
465+ var pkgName = parts.shift().replace(/%2f/i, '/')
466466 if (parts[0] === '-rev') return this.respondError(501, 'Unpublish is not supported')
467467 var spec = parts.shift()
468468 if (spec) try { spec = decodeURIComponent(spec) } finally {}
469469 if (parts.length > 0) return this.respondError(404)

Built with git-ssb-web