@unicitylabs/sphere-sdk 0.9.1-dev.8 → 0.9.1-dev.9
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/impl/browser/index.cjs +5 -2
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +5 -2
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +5 -2
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.d.cts +4 -1
- package/dist/impl/nodejs/index.d.ts +4 -1
- package/dist/impl/nodejs/index.js +5 -2
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/impl/shared/wallet-api/index.cjs +5 -2
- package/dist/impl/shared/wallet-api/index.cjs.map +1 -1
- package/dist/impl/shared/wallet-api/index.d.cts +4 -1
- package/dist/impl/shared/wallet-api/index.d.ts +4 -1
- package/dist/impl/shared/wallet-api/index.js +5 -2
- package/dist/impl/shared/wallet-api/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/l1/index.d.cts +0 -717
- package/dist/l1/index.d.ts +0 -717
|
@@ -5004,7 +5004,10 @@ var WalletApiTokenStorageProvider = class {
|
|
|
5004
5004
|
view = /* @__PURE__ */ new Map();
|
|
5005
5005
|
/**
|
|
5006
5006
|
* Empty-import protection (§5.1): no removal is ever pushed before this
|
|
5007
|
-
* flips on the first successful inventory load.
|
|
5007
|
+
* flips on the first successful inventory load. Doubles as the per-session
|
|
5008
|
+
* first-sync flag (#521): while false, `syncInventory` full-pulls even with
|
|
5009
|
+
* a warm persisted cursor — the view Map is process-lifetime, so a reloaded
|
|
5010
|
+
* instance (tab refresh) must rebuild it before deltas can resume.
|
|
5008
5011
|
*/
|
|
5009
5012
|
hadSuccessfulLoad = false;
|
|
5010
5013
|
constructor(config) {
|
|
@@ -5125,7 +5128,7 @@ var WalletApiTokenStorageProvider = class {
|
|
|
5125
5128
|
/** Converge the local view with the server (delta when possible). */
|
|
5126
5129
|
async syncInventory() {
|
|
5127
5130
|
const cursor = await this.readCursor();
|
|
5128
|
-
if (cursor === null) {
|
|
5131
|
+
if (cursor === null || !this.hadSuccessfulLoad) {
|
|
5129
5132
|
await this.fullPull();
|
|
5130
5133
|
} else if (await this.deltaLoop(cursor)) {
|
|
5131
5134
|
await this.handleSyncEpochChange();
|