feat: update use globa.hatter.ink

This commit is contained in:
2025-06-21 10:29:43 +08:00
parent 62b3cba54d
commit aefa8d371e
8 changed files with 41 additions and 41 deletions

View File

@@ -1,9 +1,9 @@
#!/usr/bin/env runts -- --allow-env --allow-import --allow-net
import { parseArgs } from "jsr:@std/cli/parse-args";
import { encryptEcdhP256 } from "https://hatter.ink/script/get/@0/deno-wrapkey-mod.ts";
import { log } from "https://hatter.ink/script/get/@1/deno-commons-mod.ts";
import { fetchWithTimoutAndAutoProxy } from "https://hatter.ink/script/get/@0/deno-fetch-auto-proxy-mod.ts";
import { encryptEcdhP256 } from "https://global.hatter.ink/script/get/@0/deno-wrapkey-mod.ts";
import { log } from "https://global.hatter.ink/script/get/@1/deno-commons-mod.ts";
import { fetchWithTimoutAndAutoProxy } from "https://global.hatter.ink/script/get/@0/deno-fetch-auto-proxy-mod.ts";
const endpoint = Deno.env.get("POST_ENCRYPTED_NOTE_ENDPOINT");
const publicKeyPointHex = Deno.env.get("ENCRYPTION_PUBLIC_KEY_POINT_HEX");
@@ -56,5 +56,5 @@ const response = await fetchWithTimoutAndAutoProxy(
console.info(response.status, await response.json());
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250124T004246+08:00.MEQCIAISKWEn9Tw0XxS/vEIV
// 8FwzpEz4DspoEiRiYYSgicbJAiAG6yY8pQsclOUX6wytN6W6ia+UGM4CLheMvtF3fkIiGQ==
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250621T102758+08:00.MEYCIQCNUYJ+DlrcTT15QOdQ
// Z+6eFhnaJWSqMZhEBHxq0m3qMQIhAJvwKn5ZzXkDGj+PRcfCIQ0NWTLHTYsjcOOxUkYC/TBv