@dshtrading/authority 0.6.2 → 0.7.0
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/lib/testing.js +2 -2
- package/package.json +2 -2
package/lib/testing.js
CHANGED
|
@@ -35,7 +35,7 @@ function installTestAuthority(options = {}) {
|
|
|
35
35
|
keyId,
|
|
36
36
|
alg: "ed25519",
|
|
37
37
|
publicKeyPem: pair.publicKeyPem
|
|
38
|
-
}]));
|
|
38
|
+
}]), { mode: 420 });
|
|
39
39
|
const sign = (overrides = {}) => {
|
|
40
40
|
const now = Date.now();
|
|
41
41
|
writeFileSync(join(dir, GRANT_FILENAME), signLiveTradingGrant({
|
|
@@ -44,7 +44,7 @@ function installTestAuthority(options = {}) {
|
|
|
44
44
|
expiresAt: expiryFromDays(now, overrides.days ?? options.days ?? 30),
|
|
45
45
|
operator: overrides.operator ?? options.operator ?? "test-operator",
|
|
46
46
|
...devMode ? { dev: true } : {}
|
|
47
|
-
}, pair.privateKeyPem, keyId));
|
|
47
|
+
}, pair.privateKeyPem, keyId), { mode: 420 });
|
|
48
48
|
resetAuthorityCache();
|
|
49
49
|
};
|
|
50
50
|
if (options.withoutGrant !== true) sign();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dshtrading/authority",
|
|
3
3
|
"description": "Live-trading authority plane for dsh-trading: a fail-closed, human-signed (Ed25519) grant outside every agent-writable path. The preset asset's liveTrading flag is demoted to a non-authoritative mirror that can only deny (design doc §5 / invariant 13.3).",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@dshtrading/dsh-home": "^0.
|
|
32
|
+
"@dshtrading/dsh-home": "^0.7.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^24.0.0",
|