@atbash/sdk 0.13.0-dev.0 → 0.13.3-dev.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/browser.d.mts +7 -2
- package/dist/browser.mjs +8 -7
- package/dist/browser.mjs.map +1 -1
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +36 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -5
package/dist/browser.d.mts
CHANGED
|
@@ -649,8 +649,13 @@ declare class Atbash {
|
|
|
649
649
|
private riskEngineRecords;
|
|
650
650
|
/**
|
|
651
651
|
* BRID for an org — one round-trip to the map, honoring the client's chain
|
|
652
|
-
* cache.
|
|
653
|
-
*
|
|
652
|
+
* cache. A "brand-new org" (nothing anywhere names its chain) is not an
|
|
653
|
+
* error — `resolveChainForOrg` returns the client default for that case and
|
|
654
|
+
* this helper returns its BRID. A transport failure or non-200 from
|
|
655
|
+
* `/api/org-network` IS an error and propagates: the caller cannot fall
|
|
656
|
+
* back to the default chain on outage, because with multi-chain live that
|
|
657
|
+
* silently reads from the wrong chain. Matches the Python binding's
|
|
658
|
+
* `_brid_for_org` semantics.
|
|
654
659
|
*/
|
|
655
660
|
private bridForOrg;
|
|
656
661
|
/**
|
package/dist/browser.mjs
CHANGED
|
@@ -45574,15 +45574,16 @@ var Atbash = class _Atbash {
|
|
|
45574
45574
|
}
|
|
45575
45575
|
/**
|
|
45576
45576
|
* BRID for an org — one round-trip to the map, honoring the client's chain
|
|
45577
|
-
* cache.
|
|
45578
|
-
*
|
|
45577
|
+
* cache. A "brand-new org" (nothing anywhere names its chain) is not an
|
|
45578
|
+
* error — `resolveChainForOrg` returns the client default for that case and
|
|
45579
|
+
* this helper returns its BRID. A transport failure or non-200 from
|
|
45580
|
+
* `/api/org-network` IS an error and propagates: the caller cannot fall
|
|
45581
|
+
* back to the default chain on outage, because with multi-chain live that
|
|
45582
|
+
* silently reads from the wrong chain. Matches the Python binding's
|
|
45583
|
+
* `_brid_for_org` semantics.
|
|
45579
45584
|
*/
|
|
45580
45585
|
async bridForOrg(orgName) {
|
|
45581
|
-
|
|
45582
|
-
return (await this.resolveChainForOrg(orgName)).blockchainRid;
|
|
45583
|
-
} catch {
|
|
45584
|
-
return void 0;
|
|
45585
|
-
}
|
|
45586
|
+
return (await this.resolveChainForOrg(orgName)).blockchainRid;
|
|
45586
45587
|
}
|
|
45587
45588
|
/**
|
|
45588
45589
|
* BRID for the client's configured default org, if it has one.
|