Skip to content

Commit

Permalink
fix: don't throw on 500s from esm.sh (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubblyworld authored Apr 17, 2023
1 parent f66836c commit 1c81706
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/providers/esmsh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export async function getPackageConfig(
case 403:
case 404:
case 406:
case 500:
this.pcfgs[pkgUrl] = null;
return;
default:
Expand Down
1 change: 1 addition & 0 deletions src/trace/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export class Resolver {
case 403:
case 404:
case 406:
case 500:
this.pcfgs[pkgUrl] = null;
return;
default:
Expand Down

0 comments on commit 1c81706

Please sign in to comment.