File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ export async function findModuleSlug(modUrl: string) {
14
14
return `https/raw.githubusercontent.com/${ owner } /${ repo } /${ ref } /${ path . join ( '/' ) || 'deps.ts' } ` ;
15
15
}
16
16
}
17
+ // convert jsr URLs into jsr specifiers
18
+ if ( url . host === 'jsr.io' ) {
19
+ return `jsr/${ url . pathname . slice ( 1 ) } ` ;
20
+ }
17
21
18
22
return `${ url . protocol . slice ( 0 , - 1 ) } /${ url . host } ${ url . pathname } ` ;
19
23
}
Original file line number Diff line number Diff line change 68
68
< form id ="dependencies-of " action ="/dependencies-of/ " method ="GET "
69
69
style ="display: flex; flex-direction: row; ">
70
70
< input type ="url " name ="url " class ="url " required autofocus style ="flex: 1; "
71
- placeholder ="Module URL (e.g. https://deno.land/x/opine/mod.ts) " pattern ="https://.+ " />
71
+ placeholder ="Module URL (e.g. https://deno.land/x/opine/mod.ts, jsr:@dbushell/http-tunnel ) " pattern ="https://.+|jsr: .+ " />
72
72
< button type ="submit "> Visualize!</ button >
73
73
</ form >
74
74
You can’t perform that action at this time.
0 commit comments