Skip to content

Commit

Permalink
None, not latest.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed May 30, 2018
1 parent a3e9ab5 commit 985c8c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function parseIdentifier(identifier) {
}

function resolveMeta(target) {
const url = `${origin}${target.name}@${target.version || "latest"}/package.json`;
const url = `${origin}${target.name}${target.version ? `@${target.version}` : ""}/package.json`;
let meta = metas.get(url);
if (!meta) metas.set(url, meta = fetch(url).then(response => {
if (!response.ok) throw new Error("unable to load package.json");
Expand Down

0 comments on commit 985c8c3

Please sign in to comment.