@getpara/react-native-wallet 2.0.0-alpha.18 → 2.0.0-alpha.19

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 };
@@ -8,7 +8,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { ParaCore, Environment, decryptPrivateKeyAndDecryptShare, encryptPrivateKey, getAsymmetricKeyPair, getDerivedPrivateKeyAndDecrypt, getPublicKeyHex, getSHA256HashHex, parseCredentialCreationRes, } from '@getpara/web-sdk';
11
- import * as Sentry from '@sentry/react-native';
12
11
  import { ReactNativeUtils } from './ReactNativeUtils.js';
13
12
  import { Passkey, } from 'react-native-passkey';
14
13
  import { PublicKeyStatus } from '@getpara/user-management-client';
@@ -35,14 +34,6 @@ export class ParaMobile extends ParaCore {
35
34
  constructor(env, apiKey, relyingPartyId, opts) {
36
35
  super(env, apiKey, opts);
37
36
  this.isNativePasskey = true;
38
- // starting with non-prod to see what kind of errors we get and if sensitive data is tracked
39
- // will turn on in prod after monitoring
40
- if (env !== Environment.PROD && env !== Environment.DEV) {
41
- Sentry.init({
42
- environment: env.toLowerCase(),
43
- dsn: 'https://59cea0cfbbb30a646c4e9f2feea06da4@o4504568036720640.ingest.us.sentry.io/4508850922323968',
44
- });
45
- }
46
37
  setEnv(env);
47
38
  if (relyingPartyId) {
48
39
  this.relyingPartyId = relyingPartyId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/react-native-wallet",
3
- "version": "2.0.0-alpha.18",
3
+ "version": "2.0.0-alpha.19",
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,11 +50,10 @@
50
50
  "signer.aar"
51
51
  ],
52
52
  "dependencies": {
53
- "@getpara/core-sdk": "2.0.0-alpha.18",
54
- "@getpara/user-management-client": "2.0.0-alpha.18",
55
- "@getpara/web-sdk": "2.0.0-alpha.18",
53
+ "@getpara/core-sdk": "2.0.0-alpha.19",
54
+ "@getpara/user-management-client": "2.0.0-alpha.19",
55
+ "@getpara/web-sdk": "2.0.0-alpha.19",
56
56
  "@peculiar/webcrypto": "^1.5.0",
57
- "@sentry/react-native": "^6.10.0",
58
57
  "@ungap/structured-clone": "1.3.0",
59
58
  "node-forge": "1.3.1",
60
59
  "react-native-url-polyfill": "2.0.0",
@@ -91,7 +90,8 @@
91
90
  },
92
91
  "scripts": {
93
92
  "build": "rm -rf dist && tsc",
94
- "compile-signer": "bash ./scripts/compileSigner.sh"
93
+ "compile-signer": "bash ./scripts/compileSigner.sh",
94
+ "test": "vitest run --coverage"
95
95
  },
96
- "gitHead": "2333bc727fe61593821d448ee12facaee230c4b0"
96
+ "gitHead": "80d2c5d7e1203fb12378aa29bfd4d7003c7d7075"
97
97
  }
package/src/config.ts CHANGED
@@ -66,3 +66,5 @@ function init() {
66
66
  }
67
67
 
68
68
  init();
69
+
70
+ export { getBaseUrl, getPortalBaseURL };
@@ -13,7 +13,6 @@ import {
13
13
  getSHA256HashHex,
14
14
  parseCredentialCreationRes,
15
15
  } from '@getpara/web-sdk';
16
- import * as Sentry from '@sentry/react-native';
17
16
 
18
17
  import { ReactNativeUtils } from './ReactNativeUtils.js';
19
18
  import {
@@ -52,15 +51,6 @@ export class ParaMobile extends ParaCore {
52
51
  constructor(env: Environment, apiKey: string, relyingPartyId?: string, opts?: ConstructorOpts) {
53
52
  super(env, apiKey, opts);
54
53
 
55
- // starting with non-prod to see what kind of errors we get and if sensitive data is tracked
56
- // will turn on in prod after monitoring
57
- if (env !== Environment.PROD && env !== Environment.DEV) {
58
- Sentry.init({
59
- environment: env.toLowerCase(),
60
- dsn: 'https://59cea0cfbbb30a646c4e9f2feea06da4@o4504568036720640.ingest.us.sentry.io/4508850922323968',
61
- });
62
- }
63
-
64
54
  setEnv(env);
65
55
 
66
56
  if (relyingPartyId) {
@@ -238,7 +228,7 @@ export class ParaMobile extends ParaCore {
238
228
  decryptedShares = await decryptPrivateKeyAndDecryptShare(
239
229
  resultJson.response.userHandle,
240
230
  encryptedSharesResult.data.keyShares,
241
- encryptedPrivateKeys[0].encryptedPrivateKey,
231
+ encryptedPrivateKeys[0]!.encryptedPrivateKey,
242
232
  );
243
233
  }
244
234
 
File without changes