@credenza3/partner-sdk 0.0.1-alpha.1 → 0.0.1-alpha.2

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.
@@ -1 +1 @@
1
- export declare function getOAuthApiUrl(): "https://accounts.credenza3.com" | "https://accounts.staging.credenza.com" | "http://localhost:8081";
1
+ export declare function getOAuthApiUrl(): "https://accounts.credenza3.com" | "https://accounts.staging.credenza3.com" | "http://localhost:8081";
@@ -7,7 +7,7 @@ function getOAuthApiUrl() {
7
7
  case sdk_env_1.SDK_ENV.PROD:
8
8
  return 'https://accounts.credenza3.com';
9
9
  case sdk_env_1.SDK_ENV.STAGING:
10
- return 'https://accounts.staging.credenza.com';
10
+ return 'https://accounts.staging.credenza3.com';
11
11
  case sdk_env_1.SDK_ENV.LOCAL:
12
12
  return 'http://localhost:8081';
13
13
  }
package/dist/api/api.js CHANGED
@@ -12,7 +12,7 @@ function getGeneralApiUrl() {
12
12
  case sdk_env_1.SDK_ENV.PROD:
13
13
  return 'https://api.credenza3.com';
14
14
  case sdk_env_1.SDK_ENV.STAGING:
15
- return 'https://api.staging.credenza.com';
15
+ return 'https://api.staging.credenza3.com';
16
16
  case sdk_env_1.SDK_ENV.LOCAL:
17
17
  return 'http://localhost:8084';
18
18
  }
package/dist/evm/evm.d.ts CHANGED
@@ -1 +1 @@
1
- export declare function getEvmApiUrl(): "https://evm.credenza3.com" | "https://evm.staging.credenza.com" | "http://localhost:8082";
1
+ export declare function getEvmApiUrl(): "https://evm.credenza3.com" | "https://evm.staging.credenza3.com" | "http://localhost:8082";
package/dist/evm/evm.js CHANGED
@@ -7,7 +7,7 @@ function getEvmApiUrl() {
7
7
  case sdk_env_1.SDK_ENV.PROD:
8
8
  return 'https://evm.credenza3.com';
9
9
  case sdk_env_1.SDK_ENV.STAGING:
10
- return 'https://evm.staging.credenza.com';
10
+ return 'https://evm.staging.credenza3.com';
11
11
  case sdk_env_1.SDK_ENV.LOCAL:
12
12
  return 'http://localhost:8082';
13
13
  }
@@ -13,7 +13,7 @@ function setCredentials(credentialsInput) {
13
13
  credentials = credentialsInput;
14
14
  }
15
15
  function getCredentials() {
16
- if (!credentials.clientId || !credentials.clientSecret)
16
+ if (!credentials?.clientId || !credentials?.clientSecret)
17
17
  throw new Error('Credentials are not set');
18
18
  return credentials;
19
19
  }
package/dist/sui/sui.d.ts CHANGED
@@ -1 +1 @@
1
- export declare function getSuiApiUrl(): "https://sui.credenza3.com" | "https://sui.staging.credenza.com" | "http://localhost:8083";
1
+ export declare function getSuiApiUrl(): "https://sui.credenza3.com" | "https://sui.staging.credenza3.com" | "http://localhost:8083";
package/dist/sui/sui.js CHANGED
@@ -7,7 +7,7 @@ function getSuiApiUrl() {
7
7
  case sdk_env_1.SDK_ENV.PROD:
8
8
  return 'https://sui.credenza3.com';
9
9
  case sdk_env_1.SDK_ENV.STAGING:
10
- return 'https://sui.staging.credenza.com';
10
+ return 'https://sui.staging.credenza3.com';
11
11
  case sdk_env_1.SDK_ENV.LOCAL:
12
12
  return 'http://localhost:8083';
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credenza3/partner-sdk",
3
- "version": "0.0.1-alpha.1",
3
+ "version": "0.0.1-alpha.2",
4
4
  "description": "Credenza partner sdk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",