diff --git a/desktop-dev/src/helper/zodHelper.ts b/desktop-dev/src/helper/zodHelper.ts index bea23d84d4..7ff4cf24e6 100644 --- a/desktop-dev/src/helper/zodHelper.ts +++ b/desktop-dev/src/helper/zodHelper.ts @@ -1,12 +1,12 @@ //! use zod error: Relative import path "zod" not prefixed with / or ./ or ../ only remote //! https://github.com/denoland/deno/issues/17598 -import { RefinementCtx, z } from "zod"; +import { RefinementCtx, z } from "https://deno.land/x/zod@v3.21.4/mod.ts"; import { $MMID } from "../core/types.ts"; // const z_mmid = z.string().endsWith(".dweb"); export const mmidType = z.custom<$MMID>((val) => { return typeof val === "string" && val.endsWith(".dweb"); }); -export * from "zod"; +export * from "https://deno.land/x/zod@v3.21.4/mod.ts"; export { mmidType as mmid }; import type { @@ -15,7 +15,7 @@ import type { ZodObject, ZodRawShape, ZodTypeAny, -} from "zod"; +} from "https://deno.land/x/zod@v3.21.4/mod.ts"; /// 以下代码来自 https://github.com/rileytomasek/zodix (MIT license) /// 因为源码有点问题,并且引入了一些不该引入的包,所以这里只提取了部分有需要的,并修复了一些问题 diff --git a/plaoc/scripts/npm.client.json b/plaoc/scripts/npm.client.json index b5267c2e30..2dd22b1422 100644 --- a/plaoc/scripts/npm.client.json +++ b/plaoc/scripts/npm.client.json @@ -4,7 +4,7 @@ "mainExports": ".", "buildToRootDir": "./build/client", "name": "@dweb-browser/plaoc", - "version": "0.1.0", + "version": "0.1.1", "lib": [ "es2021", "dom"