mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-03-30 22:31:03 +00:00
fix: keychain optional pw and use interfaces for validators and selectors instead (#924)
This commit is contained in:
parent
64f3af897b
commit
88b04156bf
@ -104,7 +104,7 @@
|
|||||||
"it-pipe": "^1.1.0",
|
"it-pipe": "^1.1.0",
|
||||||
"it-take": "1.0.0",
|
"it-take": "1.0.0",
|
||||||
"libp2p-crypto": "^0.19.0",
|
"libp2p-crypto": "^0.19.0",
|
||||||
"libp2p-interfaces": "^0.10.1",
|
"libp2p-interfaces": "^0.10.3",
|
||||||
"libp2p-utils": "^0.3.1",
|
"libp2p-utils": "^0.3.1",
|
||||||
"mafmt": "^9.0.0",
|
"mafmt": "^9.0.0",
|
||||||
"merge-options": "^3.0.4",
|
"merge-options": "^3.0.4",
|
||||||
|
@ -56,9 +56,6 @@ const { updateSelfPeerRecord } = require('./record/utils')
|
|||||||
* @property {MuxedStream} stream
|
* @property {MuxedStream} stream
|
||||||
* @property {string} protocol
|
* @property {string} protocol
|
||||||
*
|
*
|
||||||
* @typedef {{ [key: string]: function (Uint8Array, Uint8Array[]): number }} DhtSelectors
|
|
||||||
* @typedef {{ [key: string]: { func: (key: Uint8Array, value: Uint8Array) => Promise<void> }}} DhtValidators
|
|
||||||
*
|
|
||||||
* @typedef {Object} RandomWalkOptions
|
* @typedef {Object} RandomWalkOptions
|
||||||
* @property {boolean} [enabled = false]
|
* @property {boolean} [enabled = false]
|
||||||
* @property {number} [queriesPerPeriod = 1]
|
* @property {number} [queriesPerPeriod = 1]
|
||||||
@ -70,8 +67,8 @@ const { updateSelfPeerRecord } = require('./record/utils')
|
|||||||
* @property {number} [kBucketSize = 20]
|
* @property {number} [kBucketSize = 20]
|
||||||
* @property {RandomWalkOptions} [randomWalk]
|
* @property {RandomWalkOptions} [randomWalk]
|
||||||
* @property {boolean} [clientMode]
|
* @property {boolean} [clientMode]
|
||||||
* @property {DhtSelectors} [selectors]
|
* @property {import('libp2p-interfaces/src/types').DhtSelectors} [selectors]
|
||||||
* @property {DhtValidators} [validators]
|
* @property {import('libp2p-interfaces/src/types').DhtValidators} [validators]
|
||||||
*
|
*
|
||||||
* @typedef {Object} KeychainOptions
|
* @typedef {Object} KeychainOptions
|
||||||
* @property {Datastore} [datastore]
|
* @property {Datastore} [datastore]
|
||||||
|
@ -26,7 +26,7 @@ require('node-forge/lib/sha512')
|
|||||||
* @property {number} keyLength
|
* @property {number} keyLength
|
||||||
*
|
*
|
||||||
* @typedef {Object} KeychainOptions
|
* @typedef {Object} KeychainOptions
|
||||||
* @property {string} pass
|
* @property {string} [pass]
|
||||||
* @property {DekOptions} [dek]
|
* @property {DekOptions} [dek]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user