@synonymdev/pubky 0.16.1 → 0.16.2

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/index.cjs CHANGED
@@ -3997,8 +3997,10 @@ class SessionStorage {
3997
3997
  * @param {Uint8Array} body
3998
3998
  * @returns {Promise<void>}
3999
3999
  * @throws {PubkyError} A lock that has expired or was unlocked rejects with
4000
- * `RequestError` and status `412`; take a new one and read the file again.
4001
- * Otherwise as {@link SessionStorage.putBytes}.
4000
+ * `RequestError` and status `412`; take a new one and read the file again. A file
4001
+ * that changed since the write was prepared rejects with status `409`, which can
4002
+ * happen when an earlier change the storage backend ran late lands first; read it
4003
+ * again and retry. Otherwise as {@link SessionStorage.putBytes}.
4002
4004
  * @param {StorageLock} lock
4003
4005
  * @param {Uint8Array} body
4004
4006
  * @returns {Promise<void>}
@@ -4054,8 +4056,10 @@ class SessionStorage {
4054
4056
  * @param {string} body
4055
4057
  * @returns {Promise<void>}
4056
4058
  * @throws {PubkyError} A lock that has expired or was unlocked rejects with
4057
- * `RequestError` and status `412`; take a new one and read the file again.
4058
- * Otherwise as {@link SessionStorage.putText}.
4059
+ * `RequestError` and status `412`; take a new one and read the file again. A file
4060
+ * that changed since the write was prepared rejects with status `409`, which can
4061
+ * happen when an earlier change the storage backend ran late lands first; read it
4062
+ * again and retry. Otherwise as {@link SessionStorage.putText}.
4059
4063
  * @param {StorageLock} lock
4060
4064
  * @param {string} body
4061
4065
  * @returns {Promise<void>}
@@ -5405,7 +5409,7 @@ function __wbg_get_imports() {
5405
5409
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
5406
5410
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
5407
5411
  },
5408
- __wbg___pubkyGrantDelegatedSign_78f7f9da0ae4d1e7: function(arg0, arg1, arg2, arg3) {
5412
+ __wbg___pubkyGrantDelegatedSign_1a62bf8388fed293: function(arg0, arg1, arg2, arg3) {
5409
5413
  let deferred0_0;
5410
5414
  let deferred0_1;
5411
5415
  let deferred1_0;
@@ -5422,7 +5426,7 @@ function __wbg_get_imports() {
5422
5426
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
5423
5427
  }
5424
5428
  },
5425
- __wbg___pubkyGrantEnsureDelegatedKey_8db39436266230bf: function(arg0, arg1) {
5429
+ __wbg___pubkyGrantEnsureDelegatedKey_555c8876d02a11aa: function(arg0, arg1) {
5426
5430
  let v0;
5427
5431
  if (arg0 !== 0) {
5428
5432
  v0 = getStringFromWasm0(arg0, arg1);
@@ -5431,7 +5435,7 @@ function __wbg_get_imports() {
5431
5435
  const ret = __pubkyGrantEnsureDelegatedKey(v0);
5432
5436
  return ret;
5433
5437
  },
5434
- __wbg___pubkyGrantLoadDelegatedPublicKey_e68eaea44047aa67: function(arg0, arg1) {
5438
+ __wbg___pubkyGrantLoadDelegatedPublicKey_f1b34a21ea0cde6e: function(arg0, arg1) {
5435
5439
  let deferred0_0;
5436
5440
  let deferred0_1;
5437
5441
  try {
@@ -5443,18 +5447,18 @@ function __wbg_get_imports() {
5443
5447
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5444
5448
  }
5445
5449
  },
5446
- __wbg___pubkyRecoveredEncryptionKeys_b1fcbbfa114eb3ca: function(arg0, arg1, arg2, arg3, arg4) {
5450
+ __wbg___pubkyRecoveredEncryptionKeys_e9143429efc3030f: function(arg0, arg1, arg2, arg3, arg4) {
5447
5451
  const ret = __pubkyRecoveredEncryptionKeys(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), EncryptionKeys.__wrap(arg4));
5448
5452
  return ret;
5449
5453
  },
5450
- __wbg___pubkySessionAcquire_de9717d53c8b9829: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
5454
+ __wbg___pubkySessionAcquire_2270c91b242c47dd: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
5451
5455
  const ret = __pubkySessionAcquire(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), arg4 !== 0);
5452
5456
  return ret;
5453
5457
  }, arguments); },
5454
- __wbg___pubkySessionRelease_0cc80a30918c48e4: function(arg0) {
5458
+ __wbg___pubkySessionRelease_eea4e4e2e0b6f186: function(arg0) {
5455
5459
  __pubkySessionRelease(arg0 >>> 0);
5456
5460
  },
5457
- __wbg___pubkySessionStoreGet_4212c4496bdd7e95: function(arg0, arg1) {
5461
+ __wbg___pubkySessionStoreGet_a2bf2ae3f6833d1e: function(arg0, arg1) {
5458
5462
  let deferred0_0;
5459
5463
  let deferred0_1;
5460
5464
  try {
@@ -5466,7 +5470,7 @@ function __wbg_get_imports() {
5466
5470
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5467
5471
  }
5468
5472
  },
5469
- __wbg___pubkySessionStoreMetadata_1ca42b0124ac7bda: function(arg0, arg1) {
5473
+ __wbg___pubkySessionStoreMetadata_50fe94d8b9c3f08d: function(arg0, arg1) {
5470
5474
  let deferred0_0;
5471
5475
  let deferred0_1;
5472
5476
  try {
@@ -5478,23 +5482,23 @@ function __wbg_get_imports() {
5478
5482
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5479
5483
  }
5480
5484
  },
5481
- __wbg___pubkySessionStorePut_950dc07537c9b99b: function(arg0, arg1) {
5485
+ __wbg___pubkySessionStorePut_832a775a63a9bd6a: function(arg0, arg1) {
5482
5486
  const ret = __pubkySessionStorePut(arg0, arg1 >>> 0);
5483
5487
  return ret;
5484
5488
  },
5485
- __wbg___pubkySessionWait_0b154edd2f3697be: function(arg0) {
5489
+ __wbg___pubkySessionWait_5fd2b82f5655b4f2: function(arg0) {
5486
5490
  const ret = __pubkySessionWait(arg0 >>> 0);
5487
5491
  return ret;
5488
5492
  },
5489
- __wbg___pubkySharedSessionLoad_e99bffd1e2cbc147: function(arg0) {
5493
+ __wbg___pubkySharedSessionLoad_c69d86a0a8d83739: function(arg0) {
5490
5494
  const ret = __pubkySharedSessionLoad(arg0 >>> 0);
5491
5495
  return ret;
5492
5496
  },
5493
- __wbg___pubkySharedSessionRemove_ba5487e63035a9a9: function(arg0) {
5497
+ __wbg___pubkySharedSessionRemove_2d46ed7e88cf9aea: function(arg0) {
5494
5498
  const ret = __pubkySharedSessionRemove(arg0 >>> 0);
5495
5499
  return ret;
5496
5500
  },
5497
- __wbg___pubkySharedSessionStore_507e41f8a033dcc1: function(arg0, arg1) {
5501
+ __wbg___pubkySharedSessionStore_7de3e1f4d6897d65: function(arg0, arg1) {
5498
5502
  const ret = __pubkySharedSessionStore(arg0 >>> 0, arg1);
5499
5503
  return ret;
5500
5504
  },
@@ -5669,7 +5673,7 @@ function __wbg_get_imports() {
5669
5673
  const ret = Event.__wrap(arg0);
5670
5674
  return ret;
5671
5675
  },
5672
- __wbg_fetch_66895227032f0bdf: function(arg0) {
5676
+ __wbg_fetch_5aa263e0c14b0c5f: function(arg0) {
5673
5677
  const ret = fetch(arg0);
5674
5678
  return ret;
5675
5679
  },
@@ -6182,14 +6186,14 @@ function __wbg_get_imports() {
6182
6186
  __wbindgen_generic_000000000000000a: function(arg0, arg1) {
6183
6187
  var v0 = getArrayJsValueFromWasm0(arg0, arg1);
6184
6188
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
6185
- // Cast intrinsic for `Vector(RustStruct { name: "GrantInfo", unique_crate_identifier: "pubky-wasm-6e41d7b4dc13a4fc" }) -> Externref`.
6189
+ // Cast intrinsic for `Vector(RustStruct { name: "GrantInfo", unique_crate_identifier: "pubky-wasm-de62feec958b8982" }) -> Externref`.
6186
6190
  const ret = v0;
6187
6191
  return ret;
6188
6192
  },
6189
6193
  __wbindgen_generic_000000000000000b: function(arg0, arg1) {
6190
6194
  var v0 = getArrayJsValueFromWasm0(arg0, arg1);
6191
6195
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
6192
- // Cast intrinsic for `Vector(RustStruct { name: "StoredSessionInfo", unique_crate_identifier: "pubky-wasm-6e41d7b4dc13a4fc" }) -> Externref`.
6196
+ // Cast intrinsic for `Vector(RustStruct { name: "StoredSessionInfo", unique_crate_identifier: "pubky-wasm-de62feec958b8982" }) -> Externref`.
6193
6197
  const ret = v0;
6194
6198
  return ret;
6195
6199
  },
@@ -6206,13 +6210,13 @@ function __wbg_get_imports() {
6206
6210
  return {
6207
6211
  __proto__: null,
6208
6212
  "./pubky_bg.js": import0,
6209
- "./snippets/pubky-wasm-6e41d7b4dc13a4fc/inline1.js": import1,
6210
- "./snippets/pubky-wasm-6e41d7b4dc13a4fc/inline1.js": import2,
6211
- "./snippets/pubky-wasm-6e41d7b4dc13a4fc/inline1.js": import3,
6212
- "./snippets/pubky-wasm-6e41d7b4dc13a4fc/inline1.js": import4,
6213
- "./snippets/pubky-wasm-6e41d7b4dc13a4fc/inline2.js": import5,
6214
- "./snippets/pubky-wasm-6e41d7b4dc13a4fc/inline0.js": import6,
6215
- "./snippets/pubky-wasm-6e41d7b4dc13a4fc/inline2.js": import7,
6213
+ "./snippets/pubky-wasm-de62feec958b8982/inline1.js": import1,
6214
+ "./snippets/pubky-wasm-de62feec958b8982/inline1.js": import2,
6215
+ "./snippets/pubky-wasm-de62feec958b8982/inline1.js": import3,
6216
+ "./snippets/pubky-wasm-de62feec958b8982/inline1.js": import4,
6217
+ "./snippets/pubky-wasm-de62feec958b8982/inline2.js": import5,
6218
+ "./snippets/pubky-wasm-de62feec958b8982/inline0.js": import6,
6219
+ "./snippets/pubky-wasm-de62feec958b8982/inline2.js": import7,
6216
6220
  };
6217
6221
  }
6218
6222