Skip to content

Commit

Permalink
fix: fixup JSPM API build request format (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored Sep 3, 2021
1 parent 209ce96 commit d59fa54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/jspm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function ensureBuild (pkg: ExactPackage) {

// no package.json AND no build error -> post a build request
// once the build request has been posted, try polling for up to 2 mins
const buildRes = await fetch(`${apiUrl}/build/${encodeURIComponent(pkg.name + '@' + pkg.version)}`);
const buildRes = await fetch(`${apiUrl}/build/${pkg.name}@${pkg.version}`);
if (!buildRes.ok && buildRes.status !== 403) {
const err = (await buildRes.json()).error;
throw new JspmError(`Unable to request the JSPM API for a build of ${pkgStr}, with error: ${err}.`);
Expand Down

0 comments on commit d59fa54

Please sign in to comment.