@getpara/react-native-wallet 1.16.0 → 1.18.0

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/config.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  import { Environment } from '@getpara/web-sdk';
2
+ declare function getPortalBaseURL(env: Environment): "http://localhost:3003" | "https://app.sandbox.usecapsule.com" | "https://app.beta.usecapsule.com" | "https://app.usecapsule.com";
3
+ declare function getBaseUrl(env: Environment): string;
2
4
  export declare function getBaseMPCNetworkWSUrl(env: Environment): string;
3
5
  export declare let userManagementServer: string;
4
6
  export declare let portalBase: string;
5
7
  export declare let mpcNetworkWSServer: string;
6
8
  export declare function setEnv(env: Environment): void;
7
9
  export declare const DEBUG_MODE_ENABLED = false;
10
+ export { getBaseUrl, getPortalBaseURL };
package/dist/config.js CHANGED
@@ -58,3 +58,4 @@ function init() {
58
58
  ParaSignerModule.setWsServerUrl(mpcNetworkWSServer);
59
59
  }
60
60
  init();
61
+ export { getBaseUrl, getPortalBaseURL };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/react-native-wallet",
3
- "version": "1.16.0",
3
+ "version": "1.18.0",
4
4
  "description": "Para Wallet for React Native",
5
5
  "homepage": "https://getpara.com",
6
6
  "author": "Para Team <hello@getpara.com> (https://getpara.com)",
@@ -50,9 +50,9 @@
50
50
  "signer.aar"
51
51
  ],
52
52
  "dependencies": {
53
- "@getpara/core-sdk": "1.16.0",
54
- "@getpara/user-management-client": "1.16.0",
55
- "@getpara/web-sdk": "1.16.0",
53
+ "@getpara/core-sdk": "1.18.0",
54
+ "@getpara/user-management-client": "1.18.0",
55
+ "@getpara/web-sdk": "1.18.0",
56
56
  "@peculiar/webcrypto": "^1.5.0",
57
57
  "@ungap/structured-clone": "1.3.0",
58
58
  "node-forge": "1.3.1",
@@ -90,7 +90,8 @@
90
90
  },
91
91
  "scripts": {
92
92
  "build": "rm -rf dist && tsc",
93
- "compile-signer": "bash ./scripts/compileSigner.sh"
93
+ "compile-signer": "bash ./scripts/compileSigner.sh",
94
+ "test": "vitest run --coverage"
94
95
  },
95
- "gitHead": "27004dc519903d24ffafa0d8da16976dae9278a2"
96
+ "gitHead": "5928feb89e9fe821893477e4f892f6efa2ebffe2"
96
97
  }
package/src/config.ts CHANGED
@@ -66,3 +66,5 @@ function init() {
66
66
  }
67
67
 
68
68
  init();
69
+
70
+ export { getBaseUrl, getPortalBaseURL };
@@ -263,7 +263,7 @@ export class ParaMobile extends ParaCore {
263
263
  decryptedShares = await decryptPrivateKeyAndDecryptShare(
264
264
  resultJson.response.userHandle,
265
265
  encryptedSharesResult.data.keyShares,
266
- encryptedPrivateKeys[0].encryptedPrivateKey,
266
+ encryptedPrivateKeys[0]!.encryptedPrivateKey,
267
267
  );
268
268
  }
269
269
 
File without changes