@lark-project/meegle 1.0.8 → 1.0.9
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/CHANGELOG.md +6 -0
- package/README.md +12 -0
- package/README.zh-CN.md +9 -0
- package/bin/meegle-darwin-arm64 +0 -0
- package/bin/meegle-darwin-x64 +0 -0
- package/bin/meegle-linux-arm64 +0 -0
- package/bin/meegle-linux-x64 +0 -0
- package/bin/meegle-win32-arm64.exe +0 -0
- package/bin/meegle-win32-x64.exe +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@ versioned section on each npm release.
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [v1.0.9] - 2026-06-11
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- `attachment +download` now performs an extra integrity check on the downloaded file and aborts — writing nothing to disk — when the file fails validation or cannot be verified. A failed check returns a `CLIENT_FILE_SIGN_MISMATCH` error and an unverifiable response returns `CLIENT_FILE_SIGN_UNVERIFIED`; both carry a retry hint.
|
|
16
|
+
|
|
11
17
|
## [v1.0.8] - 2026-06-09
|
|
12
18
|
|
|
13
19
|
### Added
|
package/README.md
CHANGED
|
@@ -474,6 +474,18 @@ meegle attachment +download "$URL" \
|
|
|
474
474
|
--output ./local.pdf --overwrite
|
|
475
475
|
```
|
|
476
476
|
|
|
477
|
+
**Integrity check (`+download`)**: `+download` performs an extra integrity check
|
|
478
|
+
on each downloaded file and aborts — writing nothing — if the file fails
|
|
479
|
+
validation or cannot be verified. On a failed check you get a
|
|
480
|
+
`CLIENT_FILE_SIGN_MISMATCH` error (unverifiable response →
|
|
481
|
+
`CLIENT_FILE_SIGN_UNVERIFIED`); both are transient, so just retry.
|
|
482
|
+
|
|
483
|
+
**Custom headers / env routing**: any custom headers configured for the active
|
|
484
|
+
profile are applied to the download GET as well as the preprocess call, so an
|
|
485
|
+
environment-routing header pins the whole download to the same environment. Auth
|
|
486
|
+
headers are stripped before the GET so the token never reaches the
|
|
487
|
+
object-storage host.
|
|
488
|
+
|
|
477
489
|
`+upload` returns a JSON object with the file token and metadata:
|
|
478
490
|
|
|
479
491
|
```json
|
package/README.zh-CN.md
CHANGED
|
@@ -468,6 +468,15 @@ meegle attachment +download "$URL" \
|
|
|
468
468
|
--output ./local.pdf --overwrite
|
|
469
469
|
```
|
|
470
470
|
|
|
471
|
+
**完整性校验(`+download`)**:`+download` 会对下载的文件做一次额外的完整性校验,
|
|
472
|
+
若校验失败或无法校验则中止下载、不写任何文件。校验不通过时返回
|
|
473
|
+
`CLIENT_FILE_SIGN_MISMATCH` 错误(无法校验时为 `CLIENT_FILE_SIGN_UNVERIFIED`);
|
|
474
|
+
两者都是临时问题,重试即可。
|
|
475
|
+
|
|
476
|
+
**自定义头 / 环境路由**:当前 profile 配置的自定义头会同时作用于下载 GET 与预处理调用,
|
|
477
|
+
从而用环境路由头把整条下载固定到同一环境。GET 前会剥掉 auth 相关头,
|
|
478
|
+
确保 token 不会发到对象存储所在的主机。
|
|
479
|
+
|
|
471
480
|
`+upload` 输出 JSON 对象,包含 file_token 与文件元信息:
|
|
472
481
|
|
|
473
482
|
```json
|
package/bin/meegle-darwin-arm64
CHANGED
|
Binary file
|
package/bin/meegle-darwin-x64
CHANGED
|
Binary file
|
package/bin/meegle-linux-arm64
CHANGED
|
Binary file
|
package/bin/meegle-linux-x64
CHANGED
|
Binary file
|
|
Binary file
|
package/bin/meegle-win32-x64.exe
CHANGED
|
Binary file
|