@oceanprotocol/lib 3.4.5 → 3.4.6
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/CHANGELOG.md +22 -3
- package/CodeExamples.md +2 -2
- package/ComputeExamples.md +2 -2
- package/dist/lib.js +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/lib.modern.js +1 -1
- package/dist/lib.modern.js.map +1 -1
- package/dist/lib.module.js +1 -1
- package/dist/lib.module.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/dist/types/services/Aquarius.d.ts +2 -2
- package/docs/classes/Aquarius.md +6 -4
- package/package.json +1 -1
|
@@ -22,13 +22,13 @@ export declare class Aquarius {
|
|
|
22
22
|
*/
|
|
23
23
|
resolve(did: string, signal?: AbortSignal): Promise<Asset>;
|
|
24
24
|
/**
|
|
25
|
-
* Blocks until
|
|
25
|
+
* Blocks until Indexer will cache the did (or the update for that did) or timeouts
|
|
26
26
|
* @param {string} did DID of the asset.
|
|
27
27
|
* @param {string} txid used when the did exists and we expect an update with that txid.
|
|
28
28
|
* @param {AbortSignal} signal abort signal
|
|
29
29
|
* @return {Promise<Asset>} DDO of the asset.
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
waitForIndexer(did: string, txid?: string, signal?: AbortSignal, interval?: number, maxRetries?: number): Promise<Asset>;
|
|
32
32
|
/**
|
|
33
33
|
* Validate DDO content
|
|
34
34
|
* @param {DDO} ddo DID Descriptor Object content.
|
package/docs/classes/Aquarius.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
- [querySearch](Aquarius.md#querysearch)
|
|
19
19
|
- [resolve](Aquarius.md#resolve)
|
|
20
20
|
- [validate](Aquarius.md#validate)
|
|
21
|
-
- [
|
|
21
|
+
- [waitForIndexer](Aquarius.md#waitForIndexer)
|
|
22
22
|
|
|
23
23
|
## Constructors
|
|
24
24
|
|
|
@@ -146,11 +146,11 @@ Validate DDO content
|
|
|
146
146
|
|
|
147
147
|
___
|
|
148
148
|
|
|
149
|
-
###
|
|
149
|
+
### waitForIndexer
|
|
150
150
|
|
|
151
|
-
▸ **
|
|
151
|
+
▸ **waitForIndexer**(`did`, `txid?`, `signal?`, `interval=3000`,`maxRetries=100`): `Promise`<[`Asset`](../interfaces/Asset.md)\>
|
|
152
152
|
|
|
153
|
-
Blocks until
|
|
153
|
+
Blocks until Indexer will cache the did (or the update for that did) or timeouts
|
|
154
154
|
|
|
155
155
|
#### Parameters
|
|
156
156
|
|
|
@@ -159,6 +159,8 @@ Blocks until Aqua will cache the did (or the update for that did) or timeouts
|
|
|
159
159
|
| `did` | `string` | DID of the asset. |
|
|
160
160
|
| `txid?` | `string` | used when the did exists and we expect an update with that txid. |
|
|
161
161
|
| `signal?` | `AbortSignal` | abort signal |
|
|
162
|
+
| `interval` | `number` | retry interval in miliseconds. Default is 3000 |
|
|
163
|
+
| `maxRetries` | `number` | max number of retries. Default is 100 |
|
|
162
164
|
|
|
163
165
|
#### Returns
|
|
164
166
|
|