From aefa8d371e45f99c5a95bdb97d61b23a25df3a40 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sat, 21 Jun 2025 10:29:43 +0800 Subject: [PATCH] feat: update use globa.hatter.ink --- libraries/deno-github-mod.ts | 2 +- script-meta-v2.json | 36 ++++++++++++++++++------------------ single-scripts/ip.ts | 6 +++--- single-scripts/kpxcenv.ts | 6 +++--- single-scripts/post-note.ts | 10 +++++----- single-scripts/publickey.ts | 6 +++--- single-scripts/ssh-verify.ts | 10 +++++----- single-scripts/wget.ts | 6 +++--- 8 files changed, 41 insertions(+), 41 deletions(-) diff --git a/libraries/deno-github-mod.ts b/libraries/deno-github-mod.ts index 171633c..f06e158 100644 --- a/libraries/deno-github-mod.ts +++ b/libraries/deno-github-mod.ts @@ -1,6 +1,6 @@ import { fetchWithTimoutAndAutoProxy, -} from "https://hatter.ink/script/get/@0/deno-fetch-auto-proxy-mod.ts"; +} from "https://global.hatter.ink/script/get/@0/deno-fetch-auto-proxy-mod.ts"; export class SshKey { algorithm: string; diff --git a/script-meta-v2.json b/script-meta-v2.json index d0ab28f..bd102df 100644 --- a/script-meta-v2.json +++ b/script-meta-v2.json @@ -35,30 +35,30 @@ }, "ip.ts": { "script_name": "ip.ts", - "script_length": 646, - "script_sha256": "655bb8e80a7e81bd849591bb4fcf1a19f4293466f456b382603e4c9f1448b9d9", + "script_length": 653, + "script_sha256": "cd368b27d491e222d0e7c3c2e63c765bcb9e3b1968e9fa1a530bd45823137e42", "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/ip.ts", "single_script_file": true, "publish_time": 1745036734128, - "update_time": 1745036734128 + "update_time": 1750472965160 }, "kpxcenv.ts": { "script_name": "kpxcenv.ts", - "script_length": 3709, - "script_sha256": "18285d82451f07e4d4406cf210d3ff580a275f5bdad329fe46cf3a32f7f69bc7", + "script_length": 3716, + "script_sha256": "81973ffb85b220437e9f1878c11270b1ff4e9a2cad4949618e4cd3565f5393a2", "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/kpxcenv.ts", "single_script_file": true, "publish_time": 1737272626141, - "update_time": 1737650670434 + "update_time": 1750472965160 }, "post-note.ts": { "script_name": "post-note.ts", - "script_length": 1904, - "script_sha256": "fade16a1898e6b0dc9239159e1c21a08ffcb480e823d8f26285b4056300828ba", + "script_length": 1925, + "script_sha256": "dfd76c534aae1a31a86af9dd7de85dbf2426bfca45a7967b457ef3d114ede4a2", "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/post-note.ts", "single_script_file": true, "publish_time": 1737475603673, - "update_time": 1737650670435 + "update_time": 1750472965161 }, "print-env.ts": { "script_name": "print-env.ts", @@ -71,12 +71,12 @@ }, "publickey.ts": { "script_name": "publickey.ts", - "script_length": 1860, - "script_sha256": "e218d3ad8b95e9c0b2fb04c54e12c4f6e12034e26e403b7fa3929ce441cfd954", + "script_length": 1867, + "script_sha256": "05e8ee748747e662857532cd65f4a81ad1dac2ae40d00a4eadcd82321bba1b8e", "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/publickey.ts", "single_script_file": true, "publish_time": 1737272626140, - "update_time": 1737650670433 + "update_time": 1750472965159 }, "sigstore-verify.ts": { "script_name": "sigstore-verify.ts", @@ -88,20 +88,20 @@ }, "ssh-verify.ts": { "script_name": "ssh-verify.ts", - "script_length": 2833, - "script_sha256": "2bef5eda489cd612f05fb09fe9b481d40c282bc732362c6f8dd6e5e8dba1ecf7", + "script_length": 2854, + "script_sha256": "7ab00ff45b2549290e5f2763d9e2109ced0350be5c17b69240437b8403618d9c", "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/ssh-verify.ts", "single_script_file": true, "publish_time": 1737272626141, - "update_time": 1737650670435 + "update_time": 1750472965161 }, "wget.ts": { "script_name": "wget.ts", - "script_length": 4069, - "script_sha256": "4b66d00dcf450e349553419fea50d2ada1ac539a13374beda6df3f7b44bc7927", + "script_length": 4076, + "script_sha256": "2d36cbb0c7f10807e7c83d0b616faa3d790b498ed64ad1bce441a2bb35baf785", "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/wget.ts", "single_script_file": true, "publish_time": 1737272626139, - "update_time": 1742738412083 + "update_time": 1750472965158 } } \ No newline at end of file diff --git a/single-scripts/ip.ts b/single-scripts/ip.ts index e24aca7..a10ae5e 100755 --- a/single-scripts/ip.ts +++ b/single-scripts/ip.ts @@ -2,7 +2,7 @@ import { log, -} from "https://hatter.ink/script/get/@1/deno-commons-mod.ts"; +} from "https://global.hatter.ink/script/get/@1/deno-commons-mod.ts"; const args = Deno.args; @@ -21,5 +21,5 @@ const response_json = await response.json(); console.log(JSON.stringify(response_json, null, 2)); -// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250419T122502+08:00.MEYCIQDWT10PIhmdVF/CZmvn -// KZcE5ylE47Bpi3om0XenYeD7JQIhAOm7m+W6q7rr/hkSD16UpST5q7Qe6tKwpZqNvn6rYITQ +// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250621T102827+08:00.MEUCIH8GzRWo5xszTVRLgnj0 +// G1NFdOP1S6AppVwTaZOIKRBvAiEAuQHAkkR8qqypkPyef82YmxDlgqe+/IFijBdcPzU5WtQ= diff --git a/single-scripts/kpxcenv.ts b/single-scripts/kpxcenv.ts index 162175b..de262b9 100755 --- a/single-scripts/kpxcenv.ts +++ b/single-scripts/kpxcenv.ts @@ -10,7 +10,7 @@ import { compareVersion, isEnvOn, log, -} from "https://hatter.ink/script/get/@1/deno-commons-mod.ts"; +} from "https://global.hatter.ink/script/get/@1/deno-commons-mod.ts"; const args = Deno.args; if (args.length == 0) { @@ -123,5 +123,5 @@ const command = new Deno.Command(shellCommand, { }); const _child = command.spawn(); -// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250124T004246+08:00.MEUCIAiAJhDERg+lCsFI6nn6 -// 1vlppaV09v13lkXAMH5J2emTAiEA2KrxMqkHp4UXGw5GMz3Ft97RBPcuefbDJZ1HmufZQB0= +// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250621T102747+08:00.MEYCIQCI2ic4Mi6kZVAAgBBS +// 9VT9PCrf2QShr3maSyfwe6jk7QIhAPNpRqEmEH2H7AGp499xHDxtXLqgy6eCK/2p8hf7Coaj diff --git a/single-scripts/post-note.ts b/single-scripts/post-note.ts index 0752d4b..82178dc 100755 --- a/single-scripts/post-note.ts +++ b/single-scripts/post-note.ts @@ -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 diff --git a/single-scripts/publickey.ts b/single-scripts/publickey.ts index 55c2773..14ec880 100755 --- a/single-scripts/publickey.ts +++ b/single-scripts/publickey.ts @@ -5,7 +5,7 @@ // - https://docs.deno.com/api/node/crypto/~/X509Certificate#property_issuercertificate // - https://docs.deno.com/api/node/crypto/~/createPublicKey -import { log } from "https://hatter.ink/script/get/@1/deno-commons-mod.ts"; +import { log } from "https://global.hatter.ink/script/get/@1/deno-commons-mod.ts"; const { X509Certificate, createPublicKey } = await import("node:crypto"); @@ -52,5 +52,5 @@ try { Deno.exit(1); } -// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250124T004246+08:00.MEYCIQCxYN3lJQBKtoO/gjpY -// Rqtzv6Ioj0xket0BjSRRRtsbeAIhAOfG9pIdbcKONHhNNvSfIFs7/Lf0rEoP9SgnXHAhI/9D +// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250621T102817+08:00.MEUCIQCPEZwTEQZItYIu2Gxt +// Fjrt9RMPnZkktrMNsjsia9rZIgIgMQGerRyb2lKuEUmC94iMPa9cgAciBJGhBi7l1rPf3XI= diff --git a/single-scripts/ssh-verify.ts b/single-scripts/ssh-verify.ts index 143660d..96b7f88 100755 --- a/single-scripts/ssh-verify.ts +++ b/single-scripts/ssh-verify.ts @@ -1,14 +1,14 @@ #!/usr/bin/env runts -- --allow-env --allow-import --allow-read --allow-net import { parseArgs } from "jsr:@std/cli/parse-args"; -import { log } from "https://hatter.ink/script/get/@1/deno-commons-mod.ts"; +import { log } from "https://global.hatter.ink/script/get/@1/deno-commons-mod.ts"; import { fetchKeys, SshKey, -} from "https://hatter.ink/script/get/@1/deno-github-mod.ts"; +} from "https://global.hatter.ink/script/get/@1/deno-github-mod.ts"; import { SshSignature, -} from "https://hatter.ink/script/get/@0/deno-sshsig-mod.ts"; +} from "https://global.hatter.ink/script/get/@0/deno-sshsig-mod.ts"; const flags = parseArgs(Deno.args, { boolean: ["help", "debug"], @@ -97,5 +97,5 @@ if (flags.username) { log.warn("GitHub user is not assigned, user is not verified."); } -// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250124T004247+08:00.MEQCIH3nWGP1ZcLnmNrulS6r -// KmiV0xdtDVtiAFYUzrjtwMy9AiAhzXvxwHL0xkF5an9/B70s8SsdoXYbKqX1rZ7wbyYXVw== +// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250621T102806+08:00.MEUCIAO1f5bpFQ6gcngQfllM +// 12DjqXNweEM5jOk+vI3ydcqsAiEA8D8km+o5tqWzvIhNF7Ts6trqE/vvrKyKTzp7dXZND3k= diff --git a/single-scripts/wget.ts b/single-scripts/wget.ts index b6b0cec..9c82395 100755 --- a/single-scripts/wget.ts +++ b/single-scripts/wget.ts @@ -12,7 +12,7 @@ import { formatSize2, log, printLastLine, -} from "https://hatter.ink/script/get/@1/deno-commons-mod.ts"; +} from "https://global.hatter.ink/script/get/@1/deno-commons-mod.ts"; function getOutputFilename(filename: string): string { const original = filename; @@ -141,5 +141,5 @@ log.success( }`, ); -// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250323T215914+08:00.MEUCIQDMzVu+oh/6ES4XhxQX -// sIMB7e2ApNkqkROUqf10xgZqVQIgdSARi8Wg4WDWHVL2YB8WsMYZEJKafSTSt5Za+hy7dcY= +// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250621T102718+08:00.MEQCIHvQwXrDEk9HSijMmtn+ +// Yusk647Yk2ewDfBOIcRwNH66AiBaAxbaVCoryP/e20SuL5JyL2qYyPb6SeDoxXF41AkGxA==