@xstoicunicornx/payjoin_test 0.1.7 → 0.1.8

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 (35) hide show
  1. package/README.md +41 -2
  2. package/dist/{generated → nodejs/bindings}/payjoin.d.ts +171 -171
  3. package/dist/nodejs/bindings/payjoin.d.ts.map +1 -0
  4. package/dist/{generated → nodejs/bindings}/payjoin.js +73 -100
  5. package/dist/nodejs/bindings/payjoin.js.map +1 -0
  6. package/dist/{generated → nodejs/bindings}/wasm-bindgen/index.d.ts +185 -170
  7. package/dist/{generated → nodejs/bindings}/wasm-bindgen/index.js +609 -540
  8. package/dist/nodejs/bindings/wasm-bindgen/index_bg.wasm +0 -0
  9. package/dist/{generated → nodejs/bindings}/wasm-bindgen/index_bg.wasm.d.ts +26 -20
  10. package/dist/{index.d.ts → nodejs/index.d.ts} +2 -2
  11. package/dist/nodejs/index.d.ts.map +1 -0
  12. package/dist/{index.js → nodejs/index.js} +3 -3
  13. package/dist/nodejs/index.js.map +1 -0
  14. package/dist/web/bindings/payjoin.d.ts +6865 -0
  15. package/dist/web/bindings/payjoin.d.ts.map +1 -0
  16. package/dist/web/bindings/payjoin.js +14435 -0
  17. package/dist/web/bindings/payjoin.js.map +1 -0
  18. package/dist/web/bindings/wasm-bindgen/index.d.ts +2504 -0
  19. package/dist/web/bindings/wasm-bindgen/index.js +6808 -0
  20. package/dist/{generated → web/bindings}/wasm-bindgen/index_bg.wasm +0 -0
  21. package/dist/web/bindings/wasm-bindgen/index_bg.wasm.d.ts +1211 -0
  22. package/dist/web/index.d.ts +8 -0
  23. package/dist/web/index.d.ts.map +1 -0
  24. package/dist/web/index.js +20 -0
  25. package/dist/web/index.js.map +1 -0
  26. package/dist/web/vite.index.d.ts +8 -0
  27. package/dist/web/vite.index.d.ts.map +1 -0
  28. package/dist/web/vite.index.js +24 -0
  29. package/dist/web/vite.index.js.map +1 -0
  30. package/package.json +19 -12
  31. package/dist/generated/payjoin.d.ts.map +0 -1
  32. package/dist/generated/payjoin.js.map +0 -1
  33. package/dist/index.d.ts.map +0 -1
  34. package/dist/index.js.map +0 -1
  35. package/dist/index.web.js +0 -26
@@ -1,30 +1,18 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const __wbg_foreignfuturecompleteu64_free: (a: number, b: number) => void;
5
- export const foreignfuturecompleteu64_call: (a: number, b: number, c: bigint, d: any) => void;
6
- export const __wbg_foreignfuturecompleteu8_free: (a: number, b: number) => void;
7
- export const foreignfuturecompleteu8_call: (a: number, b: number, c: bigint, d: any) => void;
8
- export const __wbg_foreignfuturecompletef64_free: (a: number, b: number) => void;
9
- export const foreignfuturecompletef64_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_foreignfuturecompletei8_free: (a: number, b: number) => void;
13
- export const foreignfuturecompletei8_call: (a: number, b: number, c: bigint, d: any) => void;
14
- export const __wbg_foreignfuturecompletei16_free: (a: number, b: number) => void;
15
- export const foreignfuturecompletei16_call: (a: number, b: number, c: bigint, d: any) => void;
16
4
  export const __wbg_foreignfuturecompleteu32_free: (a: number, b: number) => void;
17
5
  export const foreignfuturecompleteu32_call: (a: number, b: number, c: bigint, d: any) => void;
18
- export const __wbg_foreignfuturecompletef32_free: (a: number, b: number) => void;
19
- export const foreignfuturecompletef32_call: (a: number, b: number, c: bigint, d: any) => void;
20
- export const __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
21
- export const foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
22
- export const __wbg_foreignfuturecompletei64_free: (a: number, b: number) => void;
23
- export const foreignfuturecompletei64_call: (a: number, b: number, c: bigint, d: any) => void;
24
6
  export const __wbg_foreignfuturecompleterustbuffer_free: (a: number, b: number) => void;
25
7
  export const foreignfuturecompleterustbuffer_call: (a: number, b: number, c: bigint, d: any) => void;
26
- export const __wbg_foreignfuturecompletei32_free: (a: number, b: number) => void;
27
- export const foreignfuturecompletei32_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;
28
16
  export const uniffi_payjoin_ffi_fn_free_uri: (a: bigint, b: number) => void;
29
17
  export const uniffi_payjoin_ffi_fn_free_url: (a: bigint, b: number) => void;
30
18
  export const uniffi_payjoin_ffi_fn_clone_uri: (a: bigint, b: number) => bigint;
@@ -610,6 +598,7 @@ export const ubrn_ffi_payjoin_ffi_rust_future_cancel_i16: (a: bigint) => void;
610
598
  export const ubrn_ffi_payjoin_ffi_rust_future_cancel_i32: (a: bigint) => void;
611
599
  export const ubrn_ffi_payjoin_ffi_rust_future_cancel_i64: (a: bigint) => void;
612
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;
613
602
  export const ubrn_ffi_payjoin_ffi_rust_future_cancel_rust_buffer: (a: bigint) => void;
614
603
  export const ubrn_ffi_payjoin_ffi_rust_future_cancel_u16: (a: bigint) => void;
615
604
  export const ubrn_ffi_payjoin_ffi_rust_future_cancel_u32: (a: bigint) => void;
@@ -622,6 +611,7 @@ export const ubrn_ffi_payjoin_ffi_rust_future_complete_i16: (a: bigint, b: numbe
622
611
  export const ubrn_ffi_payjoin_ffi_rust_future_complete_i32: (a: bigint, b: number) => number;
623
612
  export const ubrn_ffi_payjoin_ffi_rust_future_complete_i64: (a: bigint, b: number) => bigint;
624
613
  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;
625
615
  export const ubrn_ffi_payjoin_ffi_rust_future_complete_rust_buffer: (a: bigint, b: number) => [number, number];
626
616
  export const ubrn_ffi_payjoin_ffi_rust_future_complete_u16: (a: bigint, b: number) => number;
627
617
  export const ubrn_ffi_payjoin_ffi_rust_future_complete_u32: (a: bigint, b: number) => number;
@@ -634,6 +624,7 @@ export const ubrn_ffi_payjoin_ffi_rust_future_free_i16: (a: bigint) => void;
634
624
  export const ubrn_ffi_payjoin_ffi_rust_future_free_i32: (a: bigint) => void;
635
625
  export const ubrn_ffi_payjoin_ffi_rust_future_free_i64: (a: bigint) => void;
636
626
  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;
637
628
  export const ubrn_ffi_payjoin_ffi_rust_future_free_rust_buffer: (a: bigint) => void;
638
629
  export const ubrn_ffi_payjoin_ffi_rust_future_free_u16: (a: bigint) => void;
639
630
  export const ubrn_ffi_payjoin_ffi_rust_future_free_u32: (a: bigint) => void;
@@ -646,6 +637,7 @@ export const ubrn_ffi_payjoin_ffi_rust_future_poll_i16: (a: bigint, b: any, c: b
646
637
  export const ubrn_ffi_payjoin_ffi_rust_future_poll_i32: (a: bigint, b: any, c: bigint) => void;
647
638
  export const ubrn_ffi_payjoin_ffi_rust_future_poll_i64: (a: bigint, b: any, c: bigint) => void;
648
639
  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;
649
641
  export const ubrn_ffi_payjoin_ffi_rust_future_poll_rust_buffer: (a: bigint, b: any, c: bigint) => void;
650
642
  export const ubrn_ffi_payjoin_ffi_rust_future_poll_u16: (a: bigint, b: any, c: bigint) => void;
651
643
  export const ubrn_ffi_payjoin_ffi_rust_future_poll_u32: (a: bigint, b: any, c: bigint) => void;
@@ -1183,6 +1175,20 @@ export const ubrn_uniffi_payjoin_ffi_fn_method_withreplykey_create_v2_post_reque
1183
1175
  export const ubrn_uniffi_payjoin_ffi_fn_method_withreplykey_process_response: (a: bigint, b: number, c: number, d: bigint, e: number) => bigint;
1184
1176
  export const ubrn_uniffi_payjoin_ffi_fn_method_withreplykeytransition_save: (a: bigint, b: bigint, c: number) => bigint;
1185
1177
  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;
1190
+ export const __wbg_foreignfuturecompletei32_free: (a: number, b: number) => void;
1191
+ export const foreignfuturecompletei32_call: (a: number, b: number, c: bigint, d: any) => void;
1186
1192
  export const __wbg_get_rustcallstatus_code: (a: number) => number;
1187
1193
  export const __wbg_rustcallstatus_free: (a: number, b: number) => void;
1188
1194
  export const __wbg_set_rustcallstatus_code: (a: number, b: number) => void;
@@ -1,5 +1,5 @@
1
- export * as payjoin from "./generated/payjoin.js";
2
- import * as payjoin from "./generated/payjoin.js";
1
+ export * as payjoin from "./bindings/payjoin.js";
2
+ import * as payjoin from "./bindings/payjoin.js";
3
3
  export declare function uniffiInitAsync(): Promise<void>;
4
4
  declare const _default: {
5
5
  payjoin: typeof payjoin;
@@ -0,0 +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,15 +1,15 @@
1
1
  // Export the generated bindings to the app.
2
- export * as payjoin from "./generated/payjoin.js";
2
+ export * as payjoin from "./bindings/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 "./generated/payjoin.js";
6
+ import * as payjoin from "./bindings/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("./generated/wasm-bindgen/index.js");
12
+ await import("./bindings/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).
@@ -0,0 +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"}