@xstoicunicornx/payjoin_test 0.1.6 → 0.1.7

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/dist/index.d.ts CHANGED
@@ -1,10 +1,7 @@
1
- export * as payjoin from "./generated/payjoin_ffi.js";
2
- export * as bitcoin from "./generated/bitcoin.js";
3
- import * as bitcoin from "./generated/bitcoin.js";
4
- import * as payjoin from "./generated/payjoin_ffi.js";
1
+ export * as payjoin from "./generated/payjoin.js";
2
+ import * as payjoin from "./generated/payjoin.js";
5
3
  export declare function uniffiInitAsync(): Promise<void>;
6
4
  declare const _default: {
7
- bitcoin: typeof bitcoin;
8
5
  payjoin: typeof payjoin;
9
6
  };
10
7
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC;AACtD,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAKlD,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC;AAItD,wBAAsB,eAAe,kBAapC;;;;;AAGD,wBAGE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAKlD,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAIlD,wBAAsB,eAAe,kBAYpC;;;;AAGD,wBAEE"}
package/dist/index.js CHANGED
@@ -1,11 +1,9 @@
1
1
  // Export the generated bindings to the app.
2
- export * as payjoin from "./generated/payjoin_ffi.js";
3
- export * as bitcoin from "./generated/bitcoin.js";
2
+ export * as payjoin from "./generated/payjoin.js";
4
3
  // Now import the bindings so we can:
5
4
  // - initialize them
6
5
  // - export them as namespaced objects as the default export.
7
- import * as bitcoin from "./generated/bitcoin.js";
8
- import * as payjoin from "./generated/payjoin_ffi.js";
6
+ import * as payjoin from "./generated/payjoin.js";
9
7
  let initialized = false;
10
8
  export async function uniffiInitAsync() {
11
9
  if (initialized)
@@ -15,13 +13,11 @@ export async function uniffiInitAsync() {
15
13
  // Initialize the generated bindings: mostly checksums, but also callbacks.
16
14
  // - the boolean flag ensures this loads exactly once, even if the JS code
17
15
  // is reloaded (e.g. during development with metro).
18
- bitcoin.default.initialize();
19
16
  payjoin.default.initialize();
20
17
  initialized = true;
21
18
  }
22
19
  // Export the crates as individually namespaced objects.
23
20
  export default {
24
- bitcoin,
25
21
  payjoin,
26
22
  };
27
23
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC;AACtD,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAElD,qCAAqC;AACrC,oBAAoB;AACpB,6DAA6D;AAC7D,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC;AAEtD,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;IAC7B,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;IAE7B,WAAW,GAAG,IAAI,CAAC;AACvB,CAAC;AAED,wDAAwD;AACxD,eAAe;IACX,OAAO;IACP,OAAO;CACV,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/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"}
package/dist/index.web.js CHANGED
@@ -1,13 +1,11 @@
1
1
  // Generated by uniffi-bindgen-react-native
2
2
  // Export the generated bindings to the app.
3
- export * from './../src/generated/bitcoin';
4
- export * from './../src/generated/payjoin_ffi';
3
+ export * from './../src/generated/payjoin';
5
4
 
6
5
  // Now import the bindings so we can:
7
6
  // - intialize them
8
7
  // - export them as namespaced objects as the default export.
9
- import * as bitcoin from './../src/generated/bitcoin';
10
- import * as payjoin_ffi from './../src/generated/payjoin_ffi';
8
+ import * as payjoin from './../src/generated/payjoin';
11
9
 
12
10
  import initAsync from './../src/generated/wasm-bindgen/index.js';
13
11
  import wasmPath from './../src/generated/wasm-bindgen/index_bg.wasm';
@@ -18,13 +16,11 @@ export async function uniffiInitAsync() {
18
16
  // Initialize the generated bindings: mostly checksums, but also callbacks.
19
17
  // - the boolean flag ensures this loads exactly once, even if the JS code
20
18
  // is reloaded (e.g. during development with metro).
21
- bitcoin.default.initialize();
22
- payjoin_ffi.default.initialize();
19
+ payjoin.default.initialize();
23
20
  }
24
21
 
25
22
  // Export the crates as individually namespaced objects.
26
23
  export default {
27
- bitcoin,
28
- payjoin_ffi,
24
+ payjoin,
29
25
  };
30
26
 
package/package.json CHANGED
@@ -1,39 +1,39 @@
1
1
  {
2
- "name": "@xstoicunicornx/payjoin_test",
3
- "version": "0.1.6",
4
- "description": "JavaScript/WASM bindings for rust-payjoin",
5
- "main": "dist/index.js",
6
- "module": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "browser": "dist/index.web.js",
9
- "scripts": {
10
- "ubrn:web": "ubrn build web --and-generate",
11
- "compile": "tsc",
12
- "copy-wasm": "mkdir -p dist/generated && cp -r src/generated/wasm-bindgen dist/generated/",
13
- "fix-imports": "node scripts/fix-imports.js",
14
- "build": "npm run ubrn:web && npm run compile && npm run copy-wasm && npm run fix-imports",
15
- "build:test-utils": "cd test-utils && npm install && npx @napi-rs/cli build",
16
- "clean": "rm -rf rust_modules dist src/generated",
17
- "test": "tsx --test test/unit.test.ts test/integration.test.ts"
18
- },
19
- "files": [
20
- "dist/**/*"
21
- ],
22
- "keywords": [
23
- "payjoin",
24
- "bitcoin",
25
- "wasm",
26
- "rust"
27
- ],
28
- "devDependencies": {
29
- "prettier": "^3.6.2",
30
- "tsx": "^4.20.6",
31
- "typescript": "^5.9.3",
32
- "uniffi-bindgen-react-native": "github:spacebear21/uniffi-bindgen-react-native#tsconfig-module-nodenext"
33
- },
34
- "repository": {
35
- "type": "git",
36
- "url": "https://github.com/payjoin/rust-payjoin.git",
37
- "directory": "payjoin-ffi/javascript"
38
- }
2
+ "name": "@xstoicunicornx/payjoin_test",
3
+ "version": "0.1.7",
4
+ "description": "JavaScript/WASM bindings for rust-payjoin",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "browser": "dist/index.web.js",
9
+ "scripts": {
10
+ "ubrn:web": "ubrn build web --and-generate",
11
+ "compile": "tsc",
12
+ "copy-wasm": "mkdir -p dist/generated && cp -r src/generated/wasm-bindgen dist/generated/",
13
+ "fix-imports": "node scripts/fix-imports.js",
14
+ "build": "npm run ubrn:web && npm run compile && npm run copy-wasm && npm run fix-imports",
15
+ "build:test-utils": "cd test-utils && npm install && npx @napi-rs/cli build",
16
+ "clean": "rm -rf rust_modules dist src/generated",
17
+ "test": "tsx --test test/unit.test.ts test/integration.test.ts"
18
+ },
19
+ "files": [
20
+ "dist/**/*"
21
+ ],
22
+ "keywords": [
23
+ "payjoin",
24
+ "bitcoin",
25
+ "wasm",
26
+ "rust"
27
+ ],
28
+ "devDependencies": {
29
+ "prettier": "^3.6.2",
30
+ "tsx": "^4.20.6",
31
+ "typescript": "^5.9.3",
32
+ "uniffi-bindgen-react-native": "0.30.0-1"
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://github.com/payjoin/rust-payjoin.git",
37
+ "directory": "payjoin-ffi/javascript"
38
+ }
39
39
  }