streamtrust 0.1.0 → 0.1.1
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/package.json +1 -1
- package/src/index.js +4 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Adapter-driven CI checks for streaming applications: compare observed output with authoritative state, exercise cancellation, and verify retry identity.
|
|
4
4
|
|
|
5
|
-
**Status:** `0.1.
|
|
5
|
+
**Status:** `0.1.1`, an early 0.x release for independent teams. APIs and report formats may change before 1.0. The CLI is dependency-free, ESM, and requires Node.js 22+. MIT licensed. Browser and database libraries belong to your adapter and are not installed by StreamTrust.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ npx streamtrust init
|
|
|
12
12
|
npx streamtrust verify --adapter ./streamtrust/adapter.mjs
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
For reproducible CI, pin `streamtrust@0.1.
|
|
15
|
+
For reproducible CI, pin `streamtrust@0.1.1` and commit your lockfile. The generated adapter initially exercises the bundled demonstration; map it to your application before using its results as application evidence.
|
|
16
16
|
|
|
17
17
|
## Run from source
|
|
18
18
|
|
|
@@ -32,7 +32,7 @@ Build the tarball with `npm pack` in this repository.
|
|
|
32
32
|
Put the supplied tarball in your project's `vendor/` directory, then:
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
|
-
npm install --save-dev ./vendor/streamtrust-0.1.
|
|
35
|
+
npm install --save-dev ./vendor/streamtrust-0.1.1.tgz
|
|
36
36
|
npx streamtrust init
|
|
37
37
|
npx streamtrust verify --adapter ./streamtrust/adapter.mjs
|
|
38
38
|
```
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { mkdir, writeFile, rename, access } from 'node:fs/promises';
|
|
2
2
|
import { resolve } from 'node:path';
|
|
3
3
|
import { randomUUID } from 'node:crypto';
|
|
4
|
-
|
|
4
|
+
import { readFileSync } from 'node:fs';
|
|
5
|
+
export const VERSION = JSON.parse(
|
|
6
|
+
readFileSync(new URL('../package.json', import.meta.url), 'utf8'),
|
|
7
|
+
).version;
|
|
5
8
|
const object = (value) =>
|
|
6
9
|
value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
7
10
|
const nonempty = (value) =>
|