@sparkvault/sdk-js 13.0.11 → 13.2.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/dist/index.cjs +13 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +15 -6
- package/dist/index.mjs +13 -6
- package/dist/index.mjs.map +1 -1
- package/dist/ingots/index.d.ts +9 -2
- package/dist/ingots/types.d.ts +6 -4
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -10724,9 +10724,9 @@ class IdentityModule {
|
|
|
10724
10724
|
});
|
|
10725
10725
|
};
|
|
10726
10726
|
if (!useLocal) {
|
|
10727
|
-
// When the preloaded config has already failed
|
|
10728
|
-
// is not
|
|
10729
|
-
// the flow cannot help: the IdP
|
|
10727
|
+
// When the preloaded config has already failed permanently (this origin
|
|
10728
|
+
// is not one of the account's own, or the account has not configured
|
|
10729
|
+
// Identity), the flow cannot help: the IdP refuses the origin. Render
|
|
10730
10730
|
// the error dialog in-page right away instead. Transient failures fall
|
|
10731
10731
|
// through, and the popup/sign-in page surfaces them in its own dialog.
|
|
10732
10732
|
if (await this.preloadedConfigPermanentlyFailed()) {
|
|
@@ -17362,10 +17362,17 @@ class IngotsModule {
|
|
|
17362
17362
|
return mapIngotPage(response.data);
|
|
17363
17363
|
}
|
|
17364
17364
|
/**
|
|
17365
|
-
* Search ingots in an unsealed vault.
|
|
17365
|
+
* Search ingots in an unsealed vault, one page at a time. A page can hold
|
|
17366
|
+
* fewer ingots than `limit`, even none, while more remain: follow
|
|
17367
|
+
* `nextCursor` until it is absent, never stop on the count.
|
|
17366
17368
|
*
|
|
17367
17369
|
* @example
|
|
17368
|
-
*
|
|
17370
|
+
* let cursor: string | undefined;
|
|
17371
|
+
* do {
|
|
17372
|
+
* const page = await sv.ingots.search(unsealed, { q: 'invoice', cursor });
|
|
17373
|
+
* page.ingots.forEach((i) => console.log(i.name));
|
|
17374
|
+
* cursor = page.nextCursor;
|
|
17375
|
+
* } while (cursor);
|
|
17369
17376
|
*/
|
|
17370
17377
|
async search(vault, options = {}) {
|
|
17371
17378
|
const vaultId = requireVaultId(vault);
|
|
@@ -18448,7 +18455,7 @@ class SparkVault {
|
|
|
18448
18455
|
}
|
|
18449
18456
|
/** Get the SDK version */
|
|
18450
18457
|
static get version() {
|
|
18451
|
-
return '13.0
|
|
18458
|
+
return '13.2.0';
|
|
18452
18459
|
}
|
|
18453
18460
|
}
|
|
18454
18461
|
if (typeof window !== 'undefined') {
|