Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
fix: api dist
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jan 8, 2022
1 parent f09757b commit 059fea3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/apis/dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ module.exports = function* () {
paths.shift();

var category = paths.shift();
if (category.startsWith('@')) {
// @journeyapps/sqlcipher
category = `${category}/${paths.shift()}`;
}
var name = paths.join('/').replace(/^\/?/, '/').replace(/\/?$/, '/');
debug('request %s, normalize to %s, got category: %s, name: %s', this.path, p, category, name);

Expand Down

0 comments on commit 059fea3

Please sign in to comment.