@eka-care/ekascribe-ts-sdk 1.4.30 → 1.4.32

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.
@@ -13,6 +13,14 @@ export type TGetConfigV2Response = {
13
13
  settings?: TConfigSettings;
14
14
  model?: string;
15
15
  my_templates?: string[];
16
+ user_details: {
17
+ fn: string;
18
+ mn: string;
19
+ ln: string;
20
+ dob: string;
21
+ gen: 'F' | 'M' | 'O';
22
+ s: string;
23
+ };
16
24
  wid: string;
17
25
  };
18
26
  message?: string;
@@ -21,10 +21,14 @@ export default async function fetchWrapper(url, options = {}, timeoutMs = API_TI
21
21
  signal: controller.signal,
22
22
  credentials: 'include',
23
23
  });
24
+ console.log(response, 'response in fetch wrapper');
25
+ if (response.status === 401 || response.status === 403) {
26
+ console.log('unauthorized - fetch wrapper ', response.status);
27
+ }
24
28
  return response;
25
29
  }
26
30
  catch (error) {
27
- console.error(error);
31
+ console.error(error, 'error in fetch wrapper');
28
32
  throw error;
29
33
  }
30
34
  finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eka-care/ekascribe-ts-sdk",
3
- "version": "1.4.30",
3
+ "version": "1.4.32",
4
4
  "main": "dist/index.js",
5
5
  "repository": "git@github.com:eka-care/eka-js-sdk.git",
6
6
  "author": "Sanikagoyal28 <sanikagoyal9@gmail.com>",