Skip to content

Commit

Permalink
Merge pull request #35 from yavorsky/fix-scoped-packages
Browse files Browse the repository at this point in the history
Fix registry url for scoped packages.
  • Loading branch information
Sven SAULEAU authored Dec 12, 2017
2 parents c8e3b44 + 5eb46e0 commit e97ae68
Show file tree
Hide file tree
Showing 2 changed files with 3,831 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/serve-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = function servePackage ( req, res, next ) {
return query;
}, {} );

get( `${registry}/${encodeURIComponent( qualified )}` ).then( JSON.parse )
get( `${registry}/${encodeURIComponent( qualified ).replace('%40', '@')}` ).then( JSON.parse )
.then( meta => {
if ( !meta.versions ) {
logger.error( `[${qualified}] invalid module` );
Expand Down
Loading

0 comments on commit e97ae68

Please sign in to comment.