File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/repl/src/lib/workers/bundler Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -300,14 +300,14 @@ async function get_bundle(
300
300
301
301
const fetch_package_info = async ( pkg_url : string ) => {
302
302
try {
303
- pkg_url = await follow_redirects ( pkg_url , uid ) ;
303
+ const redirected = await follow_redirects ( pkg_url , uid ) ;
304
304
305
- if ( ! pkg_url ) throw new Error ( ) ;
305
+ if ( ! redirected ) throw new Error ( ) ;
306
306
307
- const pkg_json = ( await fetch_if_uncached ( pkg_url , uid ) ) ?. body ;
307
+ const pkg_json = ( await fetch_if_uncached ( redirected , uid ) ) ?. body ;
308
308
const pkg = JSON . parse ( pkg_json ?? '""' ) ;
309
309
310
- const pkg_url_base = pkg_url . replace ( / \/ p a c k a g e \. j s o n $ / , '' ) ;
310
+ const pkg_url_base = redirected . replace ( / \/ p a c k a g e \. j s o n $ / , '' ) ;
311
311
312
312
return {
313
313
pkg,
You can’t perform that action at this time.
0 commit comments