-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…745) * feat: allow version to be a `pkg.pr.new` url Co-authored-by: Oscar Dominguez <[email protected]> * fix: move from full url to `ref:[pr|hash]` * fix: typescript * chore: mode tarparser.d.ts * chore: swap `ref:` for `pr-` * feat: allow version to be `commit-[commithash] * feat: show error if fetching the `tar` fails * fix: lint * bump tarparser * DRY out * fix: only use fetched package json if it's available * move logic into component * simplify with regex * trim down a bit * fix * more robust error handling * separate onstatus from onerror * simplify with regex * no need to thunkify * DRY out * avoid overloading svelteUrl, just use the verison string directly * use Promise.withResolvers, simplify error handling * turns out this code doesn't actually do anything - very old versions are already broken and this doesn't fix them. we can deal with that another time if we want to * use existing FETCH_CACHE * tidy up * remove some unused code * lint * ugh --------- Co-authored-by: Oscar Dominguez <[email protected]> Co-authored-by: Rich Harris <[email protected]>
- Loading branch information
1 parent
e830fe9
commit 926b033
Showing
13 changed files
with
181 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
// REPL props | ||
|
||
export const svelteUrl = `https://unpkg.com/svelte@4`; | ||
export const mapbox_setup = `window.MAPBOX_ACCESS_TOKEN = '${ | ||
import.meta.env.VITE_MAPBOX_ACCESS_TOKEN | ||
}';`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.