Skip to content

Commit

Permalink
fix: updates urls to point at new ui
Browse files Browse the repository at this point in the history
  • Loading branch information
dzucconi committed Mar 23, 2020
1 parent 8090305 commit e27976e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const findApiKey = () => {
return;
}

open(`${CONFIG.baseURL}/webapp/app.html#/profile`);
open(CONFIG.baseURL);
};

const generateNpmrc = async () => {
Expand All @@ -29,10 +29,10 @@ const generateNpmrc = async () => {
});

const { data: auth } = await client.get(
`${CONFIG.baseURL}/api/npm/npm/auth/${CONFIG.organization}`
`${CONFIG.baseURL}/${CONFIG.organization}/api/npm/npm/auth/${CONFIG.organization}`
);

return `registry=${CONFIG.baseURL}/api/npm/npm/
return `registry=${CONFIG.baseURL}/${CONFIG.organization}/api/npm/npm/
${auth.trim()}
`;
};
Expand All @@ -48,7 +48,7 @@ ${auth.trim()}
CONFIG.organization = organization;
}

CONFIG.baseURL = `https://${CONFIG.organization}.jfrog.io/${CONFIG.organization}`;
CONFIG.baseURL = `https://${CONFIG.organization}.jfrog.io`;

if (!CONFIG.apiKey) {
const { hasApiKey } = await prompt([
Expand Down

0 comments on commit e27976e

Please sign in to comment.