@holochain/client 0.20.3-rc.0 → 0.20.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/lib/api/admin/types.d.ts
CHANGED
|
@@ -976,9 +976,9 @@ export interface TransportConnectionStats {
|
|
|
976
976
|
*/
|
|
977
977
|
opened_at_s: number;
|
|
978
978
|
/**
|
|
979
|
-
* True if this connection has successfully upgraded to
|
|
979
|
+
* * True if this connection has successfully upgraded to a direct connection.
|
|
980
980
|
*/
|
|
981
|
-
|
|
981
|
+
is_direct: boolean;
|
|
982
982
|
}
|
|
983
983
|
/**
|
|
984
984
|
* @public
|
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import { type KeyPair } from "libsodium-wrappers";
|
|
2
1
|
import type { CapSecret } from "../hdk/capabilities.js";
|
|
3
2
|
import type { AgentPubKey, CellId } from "../types.js";
|
|
4
3
|
/**
|
|
5
4
|
* @public
|
|
6
5
|
*/
|
|
7
6
|
export type Nonce256Bit = Uint8Array;
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export declare const _kp: () => {
|
|
11
|
+
publicKey: Uint8Array;
|
|
12
|
+
privateKey: Uint8Array;
|
|
13
|
+
keyType: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export type KeyPair = ReturnType<typeof _kp>;
|
|
8
19
|
/**
|
|
9
20
|
* @public
|
|
10
21
|
*/
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import _sodium from "libsodium-wrappers";
|
|
2
2
|
import { encodeHashToBase64 } from "../utils/base64.js";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export const _kp = () => _sodium.crypto_sign_keypair();
|
|
3
7
|
const signingCredentials = new Map();
|
|
4
8
|
/**
|
|
5
9
|
* Get credentials for signing zome calls.
|
package/lib/tsdoc-metadata.json
CHANGED
|
@@ -122,7 +122,7 @@ export declare class HoloHashMap<K extends HoloHash, V> implements Map<K, V> {
|
|
|
122
122
|
* @param thisArg - Optional value to use as 'this' when executing the callback
|
|
123
123
|
*/
|
|
124
124
|
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
|
|
125
|
-
[Symbol.iterator]():
|
|
125
|
+
[Symbol.iterator](): MapIterator<[K, V]>;
|
|
126
126
|
get [Symbol.toStringTag](): string;
|
|
127
127
|
/**
|
|
128
128
|
* The number of entries in the map.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holochain/client",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.4",
|
|
4
4
|
"description": "A JavaScript client for the Holochain Conductor API",
|
|
5
5
|
"author": "Holochain Foundation <info@holochain.org> (https://holochain.org)",
|
|
6
6
|
"license": "CAL-1.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"isomorphic-ws": "^5.0.0",
|
|
49
49
|
"js-base64": "^3.7.8",
|
|
50
50
|
"js-sha512": "^0.9.0",
|
|
51
|
-
"libsodium-wrappers": "^0.8",
|
|
51
|
+
"libsodium-wrappers": "^0.8.4",
|
|
52
52
|
"lodash-es": "^4.17.21",
|
|
53
53
|
"ws": "^8.18.3"
|
|
54
54
|
},
|