diff --git a/package.json b/package.json index 8c0c019..b6fa9cb 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,6 @@ "@types/module-alias": "^2.0.0", "@types/node": "^22.0.0", "@types/nodemailer": "^6.4.7", - "@types/qs": "^6.9.5", "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", "commitizen": "^4.2.3", @@ -107,7 +106,6 @@ "debug": "^4.3.1", "https-proxy-agent": "5.0.1", "nodemailer": "^6.9.1", - "qs": "^6.10.3", "socks-proxy-agent": "^5.0.1" }, "config": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0c9ad64..669014c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,9 +23,6 @@ importers: nodemailer: specifier: ^6.9.1 version: 6.9.16 - qs: - specifier: ^6.10.3 - version: 6.13.0 socks-proxy-agent: specifier: ^5.0.1 version: 5.0.1 @@ -66,9 +63,6 @@ importers: '@types/nodemailer': specifier: ^6.4.7 version: 6.4.16 - '@types/qs': - specifier: ^6.9.5 - version: 6.9.16 '@typescript-eslint/eslint-plugin': specifier: 7.18.0 version: 7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.6.3))(eslint@8.57.1)(typescript@5.6.3) @@ -1184,9 +1178,6 @@ packages: '@types/normalize-package-data@2.4.1': resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} - '@types/qs@6.9.16': - resolution: {integrity: sha512-7i+zxXdPD0T4cKDuxCUXJ4wHcsJLwENa6Z3dCu8cfCK743OGy5Nu1RmAGqDPsoTDINVEcdXKRvR/zre+P2Ku1A==} - '@types/stack-utils@2.0.3': resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==} @@ -3965,10 +3956,6 @@ packages: (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) - qs@6.13.0: - resolution: {integrity: sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==} - engines: {node: '>=0.6'} - queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} @@ -6005,8 +5992,6 @@ snapshots: '@types/normalize-package-data@2.4.1': {} - '@types/qs@6.9.16': {} - '@types/stack-utils@2.0.3': {} '@types/strip-bom@3.0.0': {} @@ -9270,10 +9255,6 @@ snapshots: q@1.5.1: {} - qs@6.13.0: - dependencies: - side-channel: 1.0.6 - queue-microtask@1.2.3: {} quick-lru@4.0.1: {} diff --git a/src/push/qmsg.ts b/src/push/qmsg.ts index 35dc96a..f72a20c 100644 --- a/src/push/qmsg.ts +++ b/src/push/qmsg.ts @@ -6,12 +6,12 @@ import { ajax } from '@/utils/ajax' const Debugger = debug('push:qmsg') /** - * 推送类型,见 [Qmsg](https://qmsg.zendee.cn/api.html)。 + * 推送类型,见 [Qmsg](https://qmsg.zendee.cn/docs)。 */ export type QmsgPushType = 'send' | 'group' /** - * Qmsg酱。使用说明见 [Qmsg酱](https://qmsg.zendee.cn/api.html) + * Qmsg酱。使用说明见 [Qmsg酱](https://qmsg.zendee.cn/docs) * * @author CaoMeiYouRen * @date 2022-02-17 diff --git a/src/utils/ajax.ts b/src/utils/ajax.ts index f89c358..a3cd21d 100644 --- a/src/utils/ajax.ts +++ b/src/utils/ajax.ts @@ -1,5 +1,4 @@ import axios, { AxiosResponse, Method, AxiosRequestHeaders } from 'axios' -import qs from 'qs' import debug from 'debug' import HttpsProxyAgent from 'https-proxy-agent' import SocksProxyAgent from 'socks-proxy-agent' @@ -34,7 +33,7 @@ export async function ajax(config: AjaxConfig): Promise).toString() } let httpAgent = null