verdifax 0.2.6 → 0.2.8
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 +5 -4
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The official Node.js SDK for the [Verdifax](https://verdifax.com)
|
|
4
4
|
orchestrator REST API. TypeScript-native, ships dual CJS+ESM,
|
|
5
|
-
zero runtime dependencies (uses native `fetch` from Node
|
|
5
|
+
zero runtime dependencies (uses native `fetch` from Node 20+).
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ yarn add verdifax
|
|
|
14
14
|
pnpm add verdifax
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
Requires Node
|
|
17
|
+
Requires Node 20 or newer, the oldest Node release line still maintained.
|
|
18
18
|
|
|
19
19
|
## Quickstart
|
|
20
20
|
|
|
@@ -100,8 +100,9 @@ try {
|
|
|
100
100
|
|
|
101
101
|
This SDK only mediates HTTP I/O, it does NOT verify sealed
|
|
102
102
|
manifests on its own. For offline verification with no Verdifax
|
|
103
|
-
dependency, use the [`verdifax-
|
|
104
|
-
CLI (signed
|
|
103
|
+
dependency, use the open-source [`verdifax-verify`](https://github.com/Verdifax/verdifax-verify)
|
|
104
|
+
CLI, v0.17.2 or later (signed binaries with SLSA provenance on its GitHub
|
|
105
|
+
Releases), which checks both audit bundles and deny or halt receipts.
|
|
105
106
|
|
|
106
107
|
## License
|
|
107
108
|
|
package/dist/index.js
CHANGED
|
@@ -104,12 +104,15 @@ function validateRouteId(value) {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
// src/version.ts
|
|
108
|
+
var SDK_VERSION = "0.2.8";
|
|
109
|
+
|
|
107
110
|
// src/client.ts
|
|
108
111
|
var DEFAULT_BASE_URL = "https://api.verdifax.com";
|
|
109
112
|
var DEFAULT_TIMEOUT_MS = 9e4;
|
|
110
113
|
var DEFAULT_MAX_RETRIES = 3;
|
|
111
114
|
var DEFAULT_RETRY_BASE_DELAY_MS = 200;
|
|
112
|
-
var SDK_USER_AGENT =
|
|
115
|
+
var SDK_USER_AGENT = `verdifax-sdk-node/${SDK_VERSION}`;
|
|
113
116
|
var HEADER_API_KEY = "X-Verdifax-Key";
|
|
114
117
|
var RETRYABLE_STATUSES = /* @__PURE__ */ new Set([429, 502, 503, 504]);
|
|
115
118
|
var VerdifaxClient = class {
|
package/dist/index.mjs
CHANGED
|
@@ -70,12 +70,15 @@ function validateRouteId(value) {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
// src/version.ts
|
|
74
|
+
var SDK_VERSION = "0.2.8";
|
|
75
|
+
|
|
73
76
|
// src/client.ts
|
|
74
77
|
var DEFAULT_BASE_URL = "https://api.verdifax.com";
|
|
75
78
|
var DEFAULT_TIMEOUT_MS = 9e4;
|
|
76
79
|
var DEFAULT_MAX_RETRIES = 3;
|
|
77
80
|
var DEFAULT_RETRY_BASE_DELAY_MS = 200;
|
|
78
|
-
var SDK_USER_AGENT =
|
|
81
|
+
var SDK_USER_AGENT = `verdifax-sdk-node/${SDK_VERSION}`;
|
|
79
82
|
var HEADER_API_KEY = "X-Verdifax-Key";
|
|
80
83
|
var RETRYABLE_STATUSES = /* @__PURE__ */ new Set([429, 502, 503, 504]);
|
|
81
84
|
var VerdifaxClient = class {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verdifax",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Official Node.js / TypeScript SDK for the Verdifax orchestrator REST API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Verdifax <team@verdifax.com>",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"LICENSE"
|
|
44
44
|
],
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": ">=
|
|
46
|
+
"node": ">=20.0.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|