From 86d38c2d828460b28918fb2c6482768ed6f8dcb9 Mon Sep 17 00:00:00 2001 From: cpojer Date: Sat, 31 Jan 2026 17:12:28 +0900 Subject: [PATCH] chore: Oops, "long" is actually used + fix TypeScript error. --- package.json | 1 + pnpm-lock.yaml | 21 +++++++++++++++++---- src/imessage/send.ts | 2 +- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d84712c3e..27484af51 100644 --- a/package.json +++ b/package.json @@ -187,6 +187,7 @@ "json5": "^2.2.3", "jszip": "^3.10.1", "linkedom": "^0.18.12", + "long": "^5.3.2", "markdown-it": "^14.1.0", "node-edge-tts": "^1.2.9", "osc-progress": "^0.3.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bee63ac96..c6112aaa5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -114,6 +114,9 @@ importers: linkedom: specifier: ^0.18.12 version: 0.18.12 + long: + specifier: ^5.3.2 + version: 5.3.2 markdown-it: specifier: ^14.1.0 version: 14.1.0 @@ -6459,7 +6462,7 @@ snapshots: dependencies: '@types/node': 24.10.9 optionalDependencies: - axios: 1.13.4(debug@4.4.3) + axios: 1.13.4 transitivePeerDependencies: - debug @@ -6656,7 +6659,7 @@ snapshots: '@azure/core-auth': 1.10.1 '@azure/msal-node': 3.8.6 '@microsoft/agents-activity': 1.2.3 - axios: 1.13.4(debug@4.4.3) + axios: 1.13.4 jsonwebtoken: 9.0.3 jwks-rsa: 3.2.2 object-path: 0.11.8 @@ -7488,7 +7491,7 @@ snapshots: '@slack/types': 2.19.0 '@slack/web-api': 7.13.0 '@types/express': 5.0.6 - axios: 1.13.4(debug@4.4.3) + axios: 1.13.4 express: 5.2.1 path-to-regexp: 8.3.0 raw-body: 3.0.2 @@ -7534,7 +7537,7 @@ snapshots: '@slack/types': 2.19.0 '@types/node': 25.1.0 '@types/retry': 0.12.0 - axios: 1.13.4(debug@4.4.3) + axios: 1.13.4 eventemitter3: 5.0.4 form-data: 4.0.5 is-electron: 2.2.2 @@ -8428,6 +8431,14 @@ snapshots: aws4@1.13.2: {} + axios@1.13.4: + dependencies: + follow-redirects: 1.15.11 + form-data: 4.0.5 + proxy-from-env: 1.1.0 + transitivePeerDependencies: + - debug + axios@1.13.4(debug@4.4.3): dependencies: follow-redirects: 1.15.11(debug@4.4.3) @@ -9003,6 +9014,8 @@ snapshots: flatbuffers@24.12.23: {} + follow-redirects@1.15.11: {} + follow-redirects@1.15.11(debug@4.4.3): optionalDependencies: debug: 4.4.3 diff --git a/src/imessage/send.ts b/src/imessage/send.ts index 8941bf6c9..8b8395460 100644 --- a/src/imessage/send.ts +++ b/src/imessage/send.ts @@ -125,7 +125,7 @@ export async function sendMessageIMessage( const client = opts.client ?? (await createIMessageRpcClient({ cliPath, dbPath })); const shouldClose = !opts.client; try { - const result = await client.request("send", params, { + const result = await client.request<{ ok?: string }>("send", params, { timeoutMs: opts.timeoutMs, }); const resolvedId = resolveMessageId(result);