-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for JSON imports (#513)
* chore: write acceptance test * fix: update edge-bundler * fix: update deno min version
- Loading branch information
Showing
17 changed files
with
495 additions
and
187 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { load } from "https://deno.land/x/eszip@v0.40.0/loader.ts"; | ||
import { LoadResponse } from "https://deno.land/x/eszip@v0.40.0/mod.ts"; | ||
import { load } from "https://deno.land/x/eszip@v0.55.2/loader.ts"; | ||
import { LoadResponse } from "https://deno.land/x/eszip@v0.55.2/mod.ts"; | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts"; | ||
import { retryAsync } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { isTooManyTries } from "https://deno.land/x/[email protected]/retry/tooManyTries.ts"; | ||
|
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,4 +1,4 @@ | ||
import { build, LoadResponse } from 'https://deno.land/x/eszip@v0.40.0/mod.ts' | ||
import { build, LoadResponse } from 'https://deno.land/x/eszip@v0.55.2/mod.ts' | ||
|
||
import * as path from 'https://deno.land/[email protected]/path/mod.ts' | ||
|
||
|
34 changes: 34 additions & 0 deletions
34
deno/vendor/deno.land/x/[email protected]/data_local_dir/mod.ts
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** Returns the path to the user's local data directory. | ||
* | ||
* The returned value depends on the operating system and is either a string, | ||
* containing a value from the following table, or `null`. | ||
* | ||
* | Platform | Value | Example | | ||
* | -------- | ---------------------------------------- | -------------------------------------------- | | ||
* | Linux | `$XDG_DATA_HOME` or `$HOME`/.local/share | /home/justjavac/.local/share | | ||
* | macOS | `$HOME`/Library/Application Support | /Users/justjavac/Library/Application Support | | ||
* | Windows | `$LOCALAPPDATA` | C:\Users\justjavac\AppData\Local | | ||
*/ | ||
export default function dataDir(): string | null { | ||
switch (Deno.build.os) { | ||
case "linux": { | ||
const xdg = Deno.env.get("XDG_DATA_HOME"); | ||
if (xdg) return xdg; | ||
|
||
const home = Deno.env.get("HOME"); | ||
if (home) return `${home}/.local/share`; | ||
break; | ||
} | ||
|
||
case "darwin": { | ||
const home = Deno.env.get("HOME"); | ||
if (home) return `${home}/Library/Application Support`; | ||
break; | ||
} | ||
|
||
case "windows": | ||
return Deno.env.get("LOCALAPPDATA") ?? null; | ||
} | ||
|
||
return null; | ||
} |
Binary file not shown.
Oops, something went wrong.