tradly 1.2.10 → 1.2.12

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.
@@ -9,18 +9,18 @@ let authPackageLoading = false;
9
9
 
10
10
  // Try to load auth package eagerly (non-blocking)
11
11
  // This will attempt to load the package in the background
12
- (async () => {
13
- if (authPackage !== null || authPackageLoading) return;
14
- authPackageLoading = true;
15
- try {
16
- authPackage = await import("@tradly/auth");
17
- } catch (e) {
18
- // Auth package not installed, continue without it
19
- authPackage = false; // Use false to indicate we tried and failed
20
- } finally {
21
- authPackageLoading = false;
22
- }
23
- })();
12
+ // (async () => {
13
+ // if (authPackage !== null || authPackageLoading) return;
14
+ // authPackageLoading = true;
15
+ // try {
16
+ // authPackage = await import("@tradly/auth");
17
+ // } catch (e) {
18
+ // // Auth package not installed, continue without it
19
+ // authPackage = false; // Use false to indicate we tried and failed
20
+ // } finally {
21
+ // authPackageLoading = false;
22
+ // }
23
+ // })();
24
24
 
25
25
  /**
26
26
  * Get auth package (synchronous check)
package/Roots/App.js CHANGED
@@ -111,11 +111,14 @@ class App {
111
111
  return error;
112
112
  }
113
113
  }
114
- async getCountries() {
114
+ async getCountries(param = { authKey }) {
115
115
  try {
116
116
  const [error, responseJson] = await network.networkCall({
117
117
  path: COUNTRIES,
118
118
  method: Method.GET,
119
+ pkKey: param.pkKey,
120
+ authKey: param.authKey,
121
+ baseURL: param.baseURL,
119
122
  });
120
123
  if (error) {
121
124
  return error;
@@ -3243,6 +3246,8 @@ class App {
3243
3246
  path: CURRENCY,
3244
3247
  method: Method.GET,
3245
3248
  authKey: param.authKey,
3249
+ pkKey: param.pkKey,
3250
+ baseURL: param.baseURL,
3246
3251
  });
3247
3252
  if (error) {
3248
3253
  return error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",