From aefcb24ad6fcd10cb5d593e2be6cfed730c281f1 Mon Sep 17 00:00:00 2001 From: pagoru Date: Sat, 8 Aug 2026 13:01:03 +0200 Subject: [PATCH] feat: update dayjs dependency to jsr.io - fix #129 --- deno.json | 3 ++- src/utils/cors.utils.ts | 2 +- src/utils/date.utils.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/deno.json b/deno.json index d593872..834135b 100644 --- a/deno.json +++ b/deno.json @@ -19,7 +19,8 @@ "@random-seed": "npm:random-seed@0.3.0", - "dayjs": "npm:dayjs@1.11.13", + "@xtool/dayjs": "jsr:@xtool/dayjs@0.1.4", + "@deno/kv-utils": "jsr:@deno/kv-utils@0.1.3", "cborx": "npm:cbor-x@1.6.0" }, diff --git a/src/utils/cors.utils.ts b/src/utils/cors.utils.ts index e044db5..f7e5379 100644 --- a/src/utils/cors.utils.ts +++ b/src/utils/cors.utils.ts @@ -5,7 +5,7 @@ export const getCORSHeaders = (): Headers => { for (const [key, value] of CORS_HEADERS) headers.append(key, value); return headers; }; -1; + export const appendCORSHeaders = (headers: Headers): void => { for (const [key, value] of CORS_HEADERS) headers.append(key, value); }; diff --git a/src/utils/date.utils.ts b/src/utils/date.utils.ts index bad0c41..bc985f9 100644 --- a/src/utils/date.utils.ts +++ b/src/utils/date.utils.ts @@ -1,4 +1,4 @@ -import dayjs from "dayjs"; +import { dayjs } from "@xtool/dayjs"; export const getBeautyDate = (): string => dayjs().format("YY-MM-DD HH:mm:ss:SSS");