dsh-hashcheck 0.1.3 → 0.1.4
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 +10 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -41,4 +41,14 @@ Exit codes: `0` clean, `1` findings, `2` usage or read error. In CI, gate on the
|
|
|
41
41
|
|
|
42
42
|
Deterministic by construction: paths are sorted and normalized to forward slashes, no timestamps or mtimes enter the digest, so the same tree produces the same manifest on macOS, Linux and Windows.
|
|
43
43
|
|
|
44
|
+
## What it decides
|
|
45
|
+
|
|
46
|
+
一次交付的字节是否与清单一致:`build` 对文件树产出排序归一的 SHA-256 清单,`verify` 对着清单逐个校验,报告哪些文件动了、哪些是新增、哪些消失了。
|
|
47
|
+
|
|
48
|
+
## Honest scope
|
|
49
|
+
|
|
50
|
+
这是防篡改证据,不是验收意见:它证明**字节动没动**,不能证明改动是改进还是破坏。清单不含时间戳与 mtime,同一棵树在 macOS/Linux/Windows 产出同一份清单。
|
|
51
|
+
|
|
52
|
+
Part of [dsh-verify-kit](https://github.com/zjukop3/dsh-verify-kit): generic deliverable defects, each one verb, each runnable without DSH.
|
|
53
|
+
|
|
44
54
|
MIT.
|
package/locale/en.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-hashcheck",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "SHA-256 manifests for delivered files: build once, verify anywhere, and say exactly which bytes moved instead of 'looks fine'.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./src/index.js",
|
|
9
|
-
"./package.json": "./package.json"
|
|
9
|
+
"./package.json": "./package.json",
|
|
10
|
+
"./locale/*.json": "./locale/*.json"
|
|
10
11
|
},
|
|
11
12
|
"bin": {
|
|
12
13
|
"dsh-hashcheck": "./bin/cli.js"
|
|
@@ -25,7 +26,8 @@
|
|
|
25
26
|
"bin",
|
|
26
27
|
"cordis.patch.yml",
|
|
27
28
|
"README.md",
|
|
28
|
-
"LICENSE"
|
|
29
|
+
"LICENSE",
|
|
30
|
+
"locale"
|
|
29
31
|
],
|
|
30
32
|
"keywords": [
|
|
31
33
|
"dsh",
|