From e10f8ee641c3152bdd4016b956315a4fb0cf7fd1 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 2 Nov 2021 11:27:11 +0100 Subject: [PATCH] Revert "lock esm.sh versions" This reverts commit f1cf877e56ef8c902a9ff657ab35d5753f85c0f9. --- .vscode/settings.json | 17 ++++++++++++++++- deps.ts | 13 ++++--------- makefile | 2 +- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 99f2846..f6c4374 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,20 @@ { "deno.enable": true, "deno.lint": true, - "deno.unstable": false + "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 + } } diff --git a/deps.ts b/deps.ts index 4255601..a087af6 100644 --- a/deps.ts +++ b/deps.ts @@ -3,18 +3,13 @@ /// /// /// -/// export { emojify } from "https://deno.land/x/emoji@0.1.2/mod.ts"; -// @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 { default as marked } from "https://esm.sh/marked@3.0.7"; -// @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 * as Prism from "https://esm.sh/prismjs@1.25.0"; -// @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 { default as sanitizeHtml } from "https://esm.sh/sanitize-html@2.5.2"; -// @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"; +export { escape as htmlEscape } from "https://esm.sh/he@1.2.0"; diff --git a/makefile b/makefile index 7ca0009..eef18c7 100644 --- a/makefile +++ b/makefile @@ -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 --watch --unstable ./example/main.ts \ No newline at end of file + deno run --allow-net --allow-read --unstable --watch ./example/main.ts \ No newline at end of file