dsh-pocket 2.6.1 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +1 -1
- package/README.md +2 -2
- package/client/api.js +0 -3
- package/client/client.js +194 -320
- package/client/index.jsx +0 -125
- package/client/mobile/mobile-apply.tsx +1 -0
- package/client/pocket-locales.js +0 -38
- package/lib/index.js +1 -8
- package/lib/proxy.mjs +2 -2
- package/lib/settings.mjs +0 -75
- package/lib/tunnel.mjs +11 -5
- package/lib/web-rpc.js +1 -20
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -194,7 +194,7 @@ Such tools take over all traffic and often cut cloudflared's tunnel-edge connect
|
|
|
194
194
|
```sh
|
|
195
195
|
npm install
|
|
196
196
|
node client/build.mjs # rebuild after editing client/
|
|
197
|
-
npm test # proxy / auth / compression / tunnel / service / RPC / settings (
|
|
197
|
+
npm test # proxy / auth / compression / tunnel / service / RPC / settings (109 tests)
|
|
198
198
|
```
|
|
199
199
|
|
|
200
200
|
**Want to try your changes locally without publishing?** Point the installed plugin at your local checkout with a symlink and restart dsh web. Full steps (including switching back to the npm release) are in [LOCAL-DEV.md](./LOCAL-DEV.md).
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
<a href="https://www.npmjs.com/package/dsh-pocket"><img alt="npm" src="https://img.shields.io/npm/v/dsh-pocket?color=4d6bfe&label=npm"></a>
|
|
11
11
|
<a href="https://www.npmjs.com/package/dsh-pocket"><img alt="downloads" src="https://img.shields.io/npm/dm/dsh-pocket?color=4d6bfe"></a>
|
|
12
|
-
<a href="https://github.com/shaobeichen/dsh-pocket/actions"><img alt="CI" src="https://github.com/shaobeichen/dsh-pocket/actions/workflows/
|
|
12
|
+
<a href="https://github.com/shaobeichen/dsh-pocket/actions"><img alt="CI" src="https://github.com/shaobeichen/dsh-pocket/actions/workflows/release.yml/badge.svg"></a>
|
|
13
13
|
<a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-GPL--2.0-red.svg"></a>
|
|
14
14
|
<a href="https://github.com/shaobeichen/dsh-pocket/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/shaobeichen/dsh-pocket"></a>
|
|
15
15
|
<a href="https://awesome-dsh-plugin.com/zh/"><img alt="Awesome DSH Plugin" src="https://awesome-dsh-plugin.com/badge.svg"></a>
|
|
@@ -195,7 +195,7 @@ npx @deepseek-ai/dsh web
|
|
|
195
195
|
```sh
|
|
196
196
|
npm install
|
|
197
197
|
node client/build.mjs # 改 client/ 后重新打包
|
|
198
|
-
npm test # 代理 / 认证 / 压缩 / 隧道 / 服务 / RPC / 设置(
|
|
198
|
+
npm test # 代理 / 认证 / 压缩 / 隧道 / 服务 / RPC / 设置(109 测试)
|
|
199
199
|
```
|
|
200
200
|
|
|
201
201
|
**改完想在本机先试?** 不用发版:把插件换成指向本地仓库的软链,重启 dsh web 就是本地代码。完整步骤(含怎么换回 npm 官方版本)见 [LOCAL-DEV.md](./LOCAL-DEV.md)。
|
package/client/api.js
CHANGED
|
@@ -15,9 +15,6 @@ export const POCKET_ENDPOINTS = Object.freeze({
|
|
|
15
15
|
lanSetEnabled: 'lan.setEnabled',
|
|
16
16
|
pinSetCustom: 'pin.setCustom',
|
|
17
17
|
pocketReset: 'pocket.reset',
|
|
18
|
-
tempPinCreate: 'tempPin.create',
|
|
19
|
-
tempPinList: 'tempPin.list',
|
|
20
|
-
tempPinRevoke: 'tempPin.revoke',
|
|
21
18
|
});
|
|
22
19
|
|
|
23
20
|
/** 语义化版本比较:a > b 返回正数,相等 0,a < b 负数(数字段 + 预发布后缀)。 */
|