cojson-core-wasm 0.17.10 → 0.17.12

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cojson-core-wasm",
3
3
  "type": "module",
4
- "version": "0.17.10",
4
+ "version": "0.17.12",
5
5
  "files": [
6
6
  "public/cojson_core_wasm.js",
7
7
  "public/cojson_core_wasm.d.ts",
@@ -207,7 +207,7 @@ export class Blake3Hasher {
207
207
  }
208
208
  export class SessionLog {
209
209
  free(): void;
210
- constructor(co_id: string, session_id: string, signer_id: string);
210
+ constructor(co_id: string, session_id: string, signer_id?: string | null);
211
211
  clone(): SessionLog;
212
212
  tryAdd(transactions_json: string[], new_signature_str: string, skip_verify: boolean): void;
213
213
  addNewPrivateTransaction(changes_json: string, signer_secret: string, encryption_key: string, key_id: string, made_at: number): string;
@@ -900,15 +900,15 @@ export class SessionLog {
900
900
  /**
901
901
  * @param {string} co_id
902
902
  * @param {string} session_id
903
- * @param {string} signer_id
903
+ * @param {string | null} [signer_id]
904
904
  */
905
905
  constructor(co_id, session_id, signer_id) {
906
906
  const ptr0 = passStringToWasm0(co_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
907
907
  const len0 = WASM_VECTOR_LEN;
908
908
  const ptr1 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
909
909
  const len1 = WASM_VECTOR_LEN;
910
- const ptr2 = passStringToWasm0(signer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
911
- const len2 = WASM_VECTOR_LEN;
910
+ var ptr2 = isLikeNone(signer_id) ? 0 : passStringToWasm0(signer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
911
+ var len2 = WASM_VECTOR_LEN;
912
912
  const ret = wasm.sessionlog_new(ptr0, len0, ptr1, len1, ptr2, len2);
913
913
  this.__wbg_ptr = ret >>> 0;
914
914
  SessionLogFinalization.register(this, this.__wbg_ptr, this);