Persistent browser store for the storage-neutral downloadable-region contract.
Each commit uses one read/write IndexedDB transaction over inventory, region
metadata, and resource bytes. The inventory revision is checked inside that
transaction, so two concurrent downloads cannot both commit an admission plan
calculated from the same inventory. Credentials and request URLs are never
introduced by this adapter; callers provide only the already-normalized
manifest and resource bytes.
That is enforced rather than assumed. beginWrite, write, and commit are
public exports, so each re-screens the identities it is about to persist and
commit re-checks the whole manifest. A caller that bypasses
downloadOfflineRegion cannot persist a credential-bearing endpoint, region
id, or resource id.
Persistent browser store for the storage-neutral downloadable-region contract.
Each commit uses one read/write IndexedDB transaction over inventory, region metadata, and resource bytes. The inventory revision is checked inside that transaction, so two concurrent downloads cannot both commit an admission plan calculated from the same inventory. Credentials and request URLs are never introduced by this adapter; callers provide only the already-normalized manifest and resource bytes.
That is enforced rather than assumed.
beginWrite,write, andcommitare public exports, so each re-screens the identities it is about to persist andcommitre-checks the whole manifest. A caller that bypassesdownloadOfflineRegioncannot persist a credential-bearing endpoint, region id, or resource id.