@xstoicunicornx/payjoin_test 0.1.8 → 0.1.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.
Files changed (34) hide show
  1. package/README.md +4 -1
  2. package/dist/nodejs/{bindings → generated}/payjoin.d.ts +171 -171
  3. package/dist/nodejs/generated/payjoin.d.ts.map +1 -0
  4. package/dist/{web/bindings → nodejs/generated}/payjoin.js +100 -73
  5. package/dist/nodejs/generated/payjoin.js.map +1 -0
  6. package/dist/nodejs/{bindings → generated}/wasm-bindgen/index.d.ts +170 -185
  7. package/dist/nodejs/{bindings → generated}/wasm-bindgen/index.js +540 -609
  8. package/dist/nodejs/{bindings → generated}/wasm-bindgen/index_bg.wasm +0 -0
  9. package/dist/{web/bindings → nodejs/generated}/wasm-bindgen/index_bg.wasm.d.ts +20 -26
  10. package/dist/nodejs/index.d.ts +2 -2
  11. package/dist/nodejs/index.d.ts.map +1 -1
  12. package/dist/nodejs/index.js +3 -3
  13. package/dist/nodejs/index.js.map +1 -1
  14. package/dist/web/{bindings → generated}/payjoin.d.ts +171 -171
  15. package/dist/web/generated/payjoin.d.ts.map +1 -0
  16. package/dist/{nodejs/bindings → web/generated}/payjoin.js +100 -73
  17. package/dist/web/generated/payjoin.js.map +1 -0
  18. package/dist/web/{bindings → generated}/wasm-bindgen/index.d.ts +190 -211
  19. package/dist/web/{bindings → generated}/wasm-bindgen/index.js +540 -604
  20. package/dist/web/{bindings → generated}/wasm-bindgen/index_bg.wasm +0 -0
  21. package/dist/{nodejs/bindings → web/generated}/wasm-bindgen/index_bg.wasm.d.ts +20 -26
  22. package/dist/web/index.d.ts +2 -2
  23. package/dist/web/index.d.ts.map +1 -1
  24. package/dist/web/index.js +4 -4
  25. package/dist/web/index.js.map +1 -1
  26. package/dist/web/vite.index.d.ts +2 -2
  27. package/dist/web/vite.index.d.ts.map +1 -1
  28. package/dist/web/vite.index.js +4 -4
  29. package/dist/web/vite.index.js.map +1 -1
  30. package/package.json +6 -5
  31. package/dist/nodejs/bindings/payjoin.d.ts.map +0 -1
  32. package/dist/nodejs/bindings/payjoin.js.map +0 -1
  33. package/dist/web/bindings/payjoin.d.ts.map +0 -1
  34. package/dist/web/bindings/payjoin.js.map +0 -1
@@ -1,18 +1,18 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_foreignfuturecompletef64_free: (a: number, b: number) => void;
5
+ export const foreignfuturecompletef64_call: (a: number, b: number, c: bigint, d: any) => void;
6
+ export const __wbg_foreignfuturecompletei64_free: (a: number, b: number) => void;
7
+ export const foreignfuturecompletei64_call: (a: number, b: number, c: bigint, d: any) => void;
4
8
  export const __wbg_foreignfuturecompleteu32_free: (a: number, b: number) => void;
5
9
  export const foreignfuturecompleteu32_call: (a: number, b: number, c: bigint, d: any) => void;
6
- export const __wbg_foreignfuturecompleterustbuffer_free: (a: number, b: number) => void;
7
- export const foreignfuturecompleterustbuffer_call: (a: number, b: number, c: bigint, d: any) => void;
8
- export const __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
9
- export const foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
10
- export const __wbg_foreignfuturecompletei8_free: (a: number, b: number) => void;
11
- export const foreignfuturecompletei8_call: (a: number, b: number, c: bigint, d: any) => void;
12
- export const __wbg_foreignfuturecompletei16_free: (a: number, b: number) => void;
13
- export const foreignfuturecompletei16_call: (a: number, b: number, c: bigint, d: any) => void;
14
- export const __wbg_foreignfuturecompletepointer_free: (a: number, b: number) => void;
15
- export const foreignfuturecompletepointer_call: (a: number, b: number, c: bigint, d: any) => void;
10
+ export const __wbg_foreignfuturecompletevoid_free: (a: number, b: number) => void;
11
+ export const foreignfuturecompletevoid_call: (a: number, b: number, c: bigint, d: any) => void;
12
+ export const __wbg_foreignfuturecompletef32_free: (a: number, b: number) => void;
13
+ export const foreignfuturecompletef32_call: (a: number, b: number, c: bigint, d: any) => void;
14
+ export const __wbg_foreignfuturecompleteu64_free: (a: number, b: number) => void;
15
+ export const foreignfuturecompleteu64_call: (a: number, b: number, c: bigint, d: any) => void;
16
16
  export const uniffi_payjoin_ffi_fn_free_uri: (a: bigint, b: number) => void;
17
17
  export const uniffi_payjoin_ffi_fn_free_url: (a: bigint, b: number) => void;
18
18
  export const uniffi_payjoin_ffi_fn_clone_uri: (a: bigint, b: number) => bigint;
@@ -598,7 +598,6 @@ export const ubrn_ffi_payjoin_ffi_rust_future_cancel_i16: (a: bigint) => void;
598
598
  export const ubrn_ffi_payjoin_ffi_rust_future_cancel_i32: (a: bigint) => void;
599
599
  export const ubrn_ffi_payjoin_ffi_rust_future_cancel_i64: (a: bigint) => void;
600
600
  export const ubrn_ffi_payjoin_ffi_rust_future_cancel_i8: (a: bigint) => void;
601
- export const ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer: (a: bigint) => void;
602
601
  export const ubrn_ffi_payjoin_ffi_rust_future_cancel_rust_buffer: (a: bigint) => void;
603
602
  export const ubrn_ffi_payjoin_ffi_rust_future_cancel_u16: (a: bigint) => void;
604
603
  export const ubrn_ffi_payjoin_ffi_rust_future_cancel_u32: (a: bigint) => void;
@@ -611,7 +610,6 @@ export const ubrn_ffi_payjoin_ffi_rust_future_complete_i16: (a: bigint, b: numbe
611
610
  export const ubrn_ffi_payjoin_ffi_rust_future_complete_i32: (a: bigint, b: number) => number;
612
611
  export const ubrn_ffi_payjoin_ffi_rust_future_complete_i64: (a: bigint, b: number) => bigint;
613
612
  export const ubrn_ffi_payjoin_ffi_rust_future_complete_i8: (a: bigint, b: number) => number;
614
- export const ubrn_ffi_payjoin_ffi_rust_future_complete_pointer: (a: bigint, b: number) => bigint;
615
613
  export const ubrn_ffi_payjoin_ffi_rust_future_complete_rust_buffer: (a: bigint, b: number) => [number, number];
616
614
  export const ubrn_ffi_payjoin_ffi_rust_future_complete_u16: (a: bigint, b: number) => number;
617
615
  export const ubrn_ffi_payjoin_ffi_rust_future_complete_u32: (a: bigint, b: number) => number;
@@ -624,7 +622,6 @@ export const ubrn_ffi_payjoin_ffi_rust_future_free_i16: (a: bigint) => void;
624
622
  export const ubrn_ffi_payjoin_ffi_rust_future_free_i32: (a: bigint) => void;
625
623
  export const ubrn_ffi_payjoin_ffi_rust_future_free_i64: (a: bigint) => void;
626
624
  export const ubrn_ffi_payjoin_ffi_rust_future_free_i8: (a: bigint) => void;
627
- export const ubrn_ffi_payjoin_ffi_rust_future_free_pointer: (a: bigint) => void;
628
625
  export const ubrn_ffi_payjoin_ffi_rust_future_free_rust_buffer: (a: bigint) => void;
629
626
  export const ubrn_ffi_payjoin_ffi_rust_future_free_u16: (a: bigint) => void;
630
627
  export const ubrn_ffi_payjoin_ffi_rust_future_free_u32: (a: bigint) => void;
@@ -637,7 +634,6 @@ export const ubrn_ffi_payjoin_ffi_rust_future_poll_i16: (a: bigint, b: any, c: b
637
634
  export const ubrn_ffi_payjoin_ffi_rust_future_poll_i32: (a: bigint, b: any, c: bigint) => void;
638
635
  export const ubrn_ffi_payjoin_ffi_rust_future_poll_i64: (a: bigint, b: any, c: bigint) => void;
639
636
  export const ubrn_ffi_payjoin_ffi_rust_future_poll_i8: (a: bigint, b: any, c: bigint) => void;
640
- export const ubrn_ffi_payjoin_ffi_rust_future_poll_pointer: (a: bigint, b: any, c: bigint) => void;
641
637
  export const ubrn_ffi_payjoin_ffi_rust_future_poll_rust_buffer: (a: bigint, b: any, c: bigint) => void;
642
638
  export const ubrn_ffi_payjoin_ffi_rust_future_poll_u16: (a: bigint, b: any, c: bigint) => void;
643
639
  export const ubrn_ffi_payjoin_ffi_rust_future_poll_u32: (a: bigint, b: any, c: bigint) => void;
@@ -1175,20 +1171,18 @@ export const ubrn_uniffi_payjoin_ffi_fn_method_withreplykey_create_v2_post_reque
1175
1171
  export const ubrn_uniffi_payjoin_ffi_fn_method_withreplykey_process_response: (a: bigint, b: number, c: number, d: bigint, e: number) => bigint;
1176
1172
  export const ubrn_uniffi_payjoin_ffi_fn_method_withreplykeytransition_save: (a: bigint, b: bigint, c: number) => bigint;
1177
1173
  export const ubrn_uniffi_payjoin_ffi_fn_method_withreplykeytransition_save_async: (a: bigint, b: bigint) => bigint;
1178
- export const __wbg_foreignfuturecompletef32_free: (a: number, b: number) => void;
1179
- export const foreignfuturecompletef32_call: (a: number, b: number, c: bigint, d: any) => void;
1180
- export const __wbg_foreignfuturecompletef64_free: (a: number, b: number) => void;
1181
- export const foreignfuturecompletef64_call: (a: number, b: number, c: bigint, d: any) => void;
1182
- export const __wbg_foreignfuturecompletevoid_free: (a: number, b: number) => void;
1183
- export const foreignfuturecompletevoid_call: (a: number, b: number, c: bigint, d: any) => void;
1184
- export const __wbg_foreignfuturecompletei64_free: (a: number, b: number) => void;
1185
- export const foreignfuturecompletei64_call: (a: number, b: number, c: bigint, d: any) => void;
1186
- export const __wbg_foreignfuturecompleteu64_free: (a: number, b: number) => void;
1187
- export const foreignfuturecompleteu64_call: (a: number, b: number, c: bigint, d: any) => void;
1188
- export const __wbg_foreignfuturecompleteu8_free: (a: number, b: number) => void;
1189
- export const foreignfuturecompleteu8_call: (a: number, b: number, c: bigint, d: any) => void;
1174
+ export const __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
1175
+ export const foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
1176
+ export const __wbg_foreignfuturecompletei8_free: (a: number, b: number) => void;
1177
+ export const foreignfuturecompletei8_call: (a: number, b: number, c: bigint, d: any) => void;
1190
1178
  export const __wbg_foreignfuturecompletei32_free: (a: number, b: number) => void;
1191
1179
  export const foreignfuturecompletei32_call: (a: number, b: number, c: bigint, d: any) => void;
1180
+ export const __wbg_foreignfuturecompleterustbuffer_free: (a: number, b: number) => void;
1181
+ export const foreignfuturecompleterustbuffer_call: (a: number, b: number, c: bigint, d: any) => void;
1182
+ export const __wbg_foreignfuturecompletei16_free: (a: number, b: number) => void;
1183
+ export const foreignfuturecompletei16_call: (a: number, b: number, c: bigint, d: any) => void;
1184
+ export const __wbg_foreignfuturecompleteu8_free: (a: number, b: number) => void;
1185
+ export const foreignfuturecompleteu8_call: (a: number, b: number, c: bigint, d: any) => void;
1192
1186
  export const __wbg_get_rustcallstatus_code: (a: number) => number;
1193
1187
  export const __wbg_rustcallstatus_free: (a: number, b: number) => void;
1194
1188
  export const __wbg_set_rustcallstatus_code: (a: number, b: number) => void;
@@ -1,5 +1,5 @@
1
- export * as payjoin from "./bindings/payjoin.js";
2
- import * as payjoin from "./bindings/payjoin.js";
1
+ export * as payjoin from "./generated/payjoin.js";
2
+ import * as payjoin from "./generated/payjoin.js";
3
3
  export declare function uniffiInitAsync(): Promise<void>;
4
4
  declare const _default: {
5
5
  payjoin: typeof payjoin;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/nodejs/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAKjD,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAIjD,wBAAsB,eAAe,kBAYpC;;;;AAGD,wBAEE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/nodejs/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAKlD,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAIlD,wBAAsB,eAAe,kBAYpC;;;;AAGD,wBAEE"}
@@ -1,15 +1,15 @@
1
1
  // Export the generated bindings to the app.
2
- export * as payjoin from "./bindings/payjoin.js";
2
+ export * as payjoin from "./generated/payjoin.js";
3
3
  // Now import the bindings so we can:
4
4
  // - initialize them
5
5
  // - export them as namespaced objects as the default export.
6
- import * as payjoin from "./bindings/payjoin.js";
6
+ import * as payjoin from "./generated/payjoin.js";
7
7
  let initialized = false;
8
8
  export async function uniffiInitAsync() {
9
9
  if (initialized)
10
10
  return;
11
11
  // Await WASM loading
12
- await import("./bindings/wasm-bindgen/index.js");
12
+ await import("./generated/wasm-bindgen/index.js");
13
13
  // Initialize the generated bindings: mostly checksums, but also callbacks.
14
14
  // - the boolean flag ensures this loads exactly once, even if the JS code
15
15
  // is reloaded (e.g. during development with metro).
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/nodejs/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,qCAAqC;AACrC,oBAAoB;AACpB,6DAA6D;AAC7D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,IAAI,WAAW,GAAG,KAAK,CAAC;AAExB,MAAM,CAAC,KAAK,UAAU,eAAe;IACjC,IAAI,WAAW;QAAE,OAAO;IAExB,qBAAqB;IACrB,MAAM,MAAM,CAAC,kCAAkC,CAAC,CAAC;IAEjD,2EAA2E;IAC3E,0EAA0E;IAC1E,sDAAsD;IACtD,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;IAE7B,WAAW,GAAG,IAAI,CAAC;AACvB,CAAC;AAED,wDAAwD;AACxD,eAAe;IACX,OAAO;CACV,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/nodejs/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAElD,qCAAqC;AACrC,oBAAoB;AACpB,6DAA6D;AAC7D,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAElD,IAAI,WAAW,GAAG,KAAK,CAAC;AAExB,MAAM,CAAC,KAAK,UAAU,eAAe;IACjC,IAAI,WAAW;QAAE,OAAO;IAExB,qBAAqB;IACrB,MAAM,MAAM,CAAC,mCAAmC,CAAC,CAAC;IAElD,2EAA2E;IAC3E,0EAA0E;IAC1E,sDAAsD;IACtD,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;IAE7B,WAAW,GAAG,IAAI,CAAC;AACvB,CAAC;AAED,wDAAwD;AACxD,eAAe;IACX,OAAO;CACV,CAAC"}