dsh-mobile-access 1.0.2 → 1.0.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.md +3 -3
- package/client.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ dsh web authentication required; reopen the URL printed by dsh web.
|
|
|
33
33
|
推荐使用官方 DSH CLI 一次安装。已发布到 npm;下面是**可复现**的精确版本命令:
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
dsh plugin --profile web add dsh-mobile-access@1.0.
|
|
36
|
+
dsh plugin --profile web add dsh-mobile-access@1.0.3
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
也可以使用 `@latest`,但 pnpm 的元数据缓存/镜像可能暂时仍解析到旧版;需要最新版时优先使用上面的精确版本,或显式指定官方 registry:
|
|
@@ -42,7 +42,7 @@ dsh plugin --profile web add dsh-mobile-access@1.0.2
|
|
|
42
42
|
dsh plugin --profile web add dsh-mobile-access@latest --registry=https://registry.npmjs.org/
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
本机 2026-10-24 的实测结果:默认 registry 下 `@latest` 仍解析到 `1.0.0`,精确版本可正确安装;指定 npmjs 后 `@latest`
|
|
45
|
+
本机 2026-10-24 的实测结果:默认 registry 下 `@latest` 仍解析到 `1.0.0`,精确版本可正确安装;指定 npmjs 后 `@latest` 会解析到最新版。`1.0.0` 已包含 Safari 配对修复;`1.0.1` 只增加安装文档和发布元数据;`1.0.2`/`1.0.3` 增加 iPhone 自带键盘换行(`1.0.3` 额外加入 Safari 不支持改写键盘事件时的编辑回退)。
|
|
46
46
|
|
|
47
47
|
`dsh plugin` 会在 profile 目录执行 pnpm 安装,并自动把声明了 `dsh.bundle.patch` 的包追加到 `dsh.profile.bundles`;不需要手工编辑 `cordis.patch.yml` 或 bundle 列表。
|
|
48
48
|
|
|
@@ -58,7 +58,7 @@ dsh plugin --profile web add /Users/open/Documents/Stocks/plugins/dsh-mobile-acc
|
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
60
|
npm pack
|
|
61
|
-
dsh plugin --profile web add /absolute/path/to/dsh-mobile-access-1.0.
|
|
61
|
+
dsh plugin --profile web add /absolute/path/to/dsh-mobile-access-1.0.3.tgz
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
如果 DSH 正在运行,安装后的 host bundle 可能需要重启才能加载;插件管理器提示 `restart-required` 时,**不要自行重启**,按项目约定通知用户手工重启 DSH,用户确认「已重启」后再继续。已有环境也可以继续使用 DSH 插件管理入口的 `install_bundle`,目标为本目录的绝对路径;两种方式等价。
|
package/client.js
CHANGED
|
@@ -83,6 +83,10 @@ function installIOSReturnNewline() {
|
|
|
83
83
|
Object.defineProperty(event, 'shiftKey', { configurable: true, value: true });
|
|
84
84
|
}
|
|
85
85
|
catch {
|
|
86
|
+
// Fall through to the explicit edit fallback.
|
|
87
|
+
}
|
|
88
|
+
const currentShift = event.shiftKey;
|
|
89
|
+
if (currentShift !== true) {
|
|
86
90
|
event.preventDefault();
|
|
87
91
|
event.stopImmediatePropagation();
|
|
88
92
|
if (!doc.execCommand('insertLineBreak'))
|
package/package.json
CHANGED