-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor ~ replace JSDelivr/SkyPack imports with 'esm.sh'
* Deno-v2.0.0-rc7+ is now requiring "import" permissions - JSDelivr and SkyPack are not on the Deno-2.0 default allowlist - esm.sh *is* included in the "allow-import" default domain list - ref: <denoland/deno#25469> to comply with Deno-2.0 'import' permission defaults
- Loading branch information
Showing
2 changed files
with
28 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,20 @@ export const $fs = { exists, existsSync, expandGlob, expandGlobSync }; | |
|
||
// export { default as $xdgAppPaths } from 'https://cdn.jsdelivr.net/gh/rivy/js.xdg-app-paths@9466e97/src/mod.deno.ts'; | ||
|
||
// export * as $lodash from 'https://cdn.skypack.dev/pin/[email protected]/lodash.js'; | ||
export * as $lodash from 'https://cdn.skypack.dev/[email protected]'; | ||
export * as $cliffyTable from 'https://deno.land/x/[email protected]/table/mod.ts'; // *pin*; [email protected] == last version to use [email protected] (or lower) | ||
export { default as $osPaths } from 'https://deno.land/x/[email protected]/src/mod.deno.ts'; | ||
export * as $semver from 'https://deno.land/x/[email protected]/mod.ts'; | ||
export * as $tty from 'https://deno.land/x/[email protected]/mod.ts'; | ||
export { default as $xdgAppPaths } from 'https://deno.land/x/[email protected]/src/mod.deno.ts'; | ||
|
||
// export * as $lodash from 'https://cdn.skypack.dev/pin/[email protected]/lodash.js'; | ||
// export * as $lodash from 'https://cdn.skypack.dev/[email protected]'; | ||
// * revise URL to use 'esm.sh' instead of 'cdn.skypack.dev' for compatibility with Deno-2.0 "import" permission defaults | ||
// export { default as $lodash } from 'https://esm.sh/[email protected]'; | ||
// export { _ as $lodash } from 'https://esm.sh/[email protected]'; | ||
// export * as $lodash from 'https://deno.land/x/[email protected]/dist/lodash.js'; | ||
export { default as $lodash } from 'npm:[email protected]'; // requires deno-v1.25.0+; recommend deno-v1.30.0+ for better results | ||
|
||
// export { default as $yargs } from 'https://deno.land/x/[email protected]/deno.ts'; | ||
|
||
//=== features (functions, objects, and/or values) | ||
|