Skip to content

Commit

Permalink
lock esm.sh versions
Browse files Browse the repository at this point in the history
lucacasonato committed Nov 1, 2021
1 parent 9779000 commit f1cf877
Showing 3 changed files with 11 additions and 21 deletions.
17 changes: 1 addition & 16 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
{
"deno.enable": true,
"deno.lint": true,
"deno.unstable": false,
"deno.suggest.imports.hosts": {
"https://deno.land": true,
"https://x.nest.land": true,
"https://crux.land": true,
"https://x.lcas.dev": true,
"https://cdn.skypack.dev": false,
"https://esm.sh": false,
"https://skypack.": false,
"https://cdn..sh": false,
"https://e": false,
"https://esm": false,
"https://esm,.": false,
"https://esm.": false,
"https://esm.s": false
}
"deno.unstable": false
}
13 changes: 9 additions & 4 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -3,13 +3,18 @@
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
/// <reference lib="deno.ns" />
/// <reference lib="deno.unstable" />

export { emojify } from "https://deno.land/x/emoji@0.1.2/mod.ts";

export { default as marked } from "https://esm.sh/marked@3.0.7";
// @deno-types="https://cdn.esm.sh/v53/@types/marked@3.0.1/index.d.ts"
export { default as marked } from "https://cdn.esm.sh/v53/marked@3.0.7/deno/marked.js";

export * as Prism from "https://esm.sh/prismjs@1.25.0";
// @deno-types="https://cdn.esm.sh/v53/@types/prismjs@1.16.6/index.d.ts"
export * as Prism from "https://cdn.esm.sh/v53/prismjs@1.25.0/deno/prismjs.js";

export { default as sanitizeHtml } from "https://esm.sh/sanitize-html@2.5.2";
// @deno-types="https://cdn.esm.sh/v53/@types/sanitize-html@2.5.0/index.d.ts"
export { default as sanitizeHtml } from "https://cdn.esm.sh/v53/sanitize-html@2.5.2/deno/sanitize-html.js";

export { escape as htmlEscape } from "https://esm.sh/he@1.2.0";
// @deno-types="https://cdn.esm.sh/v53/@types/he@1.1.2/index.d.ts"
export { escape as htmlEscape } from "https://cdn.esm.sh/v53/he@1.2.0/deno/he.js";
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -3,4 +3,4 @@ build:
echo "/** @type {string} */\nexport const CSS = \``cat style/dist/main.css`\`;" > style.js

dev:
deno run --allow-net --allow-read --unstable --watch ./example/main.ts
deno run --allow-net --allow-read --watch --unstable ./example/main.ts

0 comments on commit f1cf877

Please sign in to comment.