chore: bump dependencies (#1428)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useSignal } from "@preact/signals";
|
||||
|
||||
import Prism from "https://esm.sh/prismjs@1.27.0";
|
||||
import "https://esm.sh/prismjs@1.27.0/components/prism-typescript?no-check";
|
||||
import Prism from "https://esm.sh/prismjs@1.29.0";
|
||||
import "https://esm.sh/prismjs@1.29.0/components/prism-typescript?no-check";
|
||||
|
||||
interface CodeBoxProps {
|
||||
code: string;
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.1.0",
|
||||
"@preact/signals": "https://esm.sh/*@preact/signals@1.1.3",
|
||||
"@preact/signals-core": "https://esm.sh/@preact/signals-core@1.2.3",
|
||||
"$std/": "https://deno.land/std@0.190.0/",
|
||||
"$std/": "https://deno.land/std@0.193.0/",
|
||||
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts"
|
||||
},
|
||||
"compilerOptions": {
|
||||
|
||||
@@ -45,7 +45,7 @@ export default function Home(props: PageProps<HomeProps>) {
|
||||
<title>{TITLE}</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://esm.sh/prismjs@1.27.0/themes/prism-dark.min.css"
|
||||
href="https://esm.sh/prismjs@1.29.0/themes/prism-dark.min.css"
|
||||
/>
|
||||
<meta name="description" content={DESCRIPTION} />
|
||||
<meta property="og:title" content={TITLE} />
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
import { RouteConfig } from "$fresh/server.ts";
|
||||
import { Handlers } from "$fresh/server.ts";
|
||||
import { parse } from "$std/semver/mod.ts";
|
||||
import { format, parse } from "$std/semver/mod.ts";
|
||||
import VERSIONS from "../../versions.json" assert { type: "json" };
|
||||
import { extname } from "$std/path/mod.ts";
|
||||
|
||||
@@ -22,16 +22,16 @@ export const handler: Handlers = {
|
||||
const isHTML = accept?.includes("text/html");
|
||||
const { version, path } = ctx.params;
|
||||
|
||||
const semver = parse(version, { includePrerelease: true });
|
||||
const semver = parse(version);
|
||||
if (!semver) {
|
||||
return new Response("Invalid version", { status: 400 });
|
||||
}
|
||||
|
||||
if (!VERSIONS.includes(semver.version)) {
|
||||
if (!VERSIONS.includes(format(semver))) {
|
||||
return new Response("Version not found", { status: 404 });
|
||||
}
|
||||
|
||||
const url = `${BASE_URL}${semver.version}/${path}`;
|
||||
const url = `${BASE_URL}${format(semver)}/${path}`;
|
||||
const r = await fetch(url, { redirect: "manual" });
|
||||
const response = new Response(r.body, r);
|
||||
response.headers.delete("content-encoding");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export * as gfm from "https://deno.land/x/gfm@0.2.1/mod.ts";
|
||||
export * as gfm from "https://deno.land/x/gfm@0.2.5/mod.ts";
|
||||
import "https://esm.sh/prismjs@1.29.0/components/prism-jsx.js?no-check";
|
||||
import "https://esm.sh/prismjs@1.29.0/components/prism-typescript.js?no-check";
|
||||
import "https://esm.sh/prismjs@1.29.0/components/prism-tsx.js?no-check";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import puppeteer from "https://deno.land/x/puppeteer@16.2.0/mod.ts";
|
||||
import { Image } from "https://deno.land/x/imagescript@1.2.15/mod.ts";
|
||||
import { join } from "https://deno.land/std@0.190.0/path/mod.ts";
|
||||
import { join } from "https://deno.land/std@0.193.0/path/mod.ts";
|
||||
|
||||
const url = Deno.args[0];
|
||||
const id = Deno.args[1];
|
||||
|
||||
Reference in New Issue
Block a user