@eka-care/ekascribe-ts-sdk 1.4.33 → 1.4.35

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,11 +1,12 @@
1
1
  import { GET_CLIENT_ID, GET_AUTH_TOKEN } from './helper';
2
- const API_TIMEOUT_MS = 5000;
2
+ const API_TIMEOUT_MS = 10000;
3
3
  export default async function fetchWrapper(url, options = {}, timeoutMs = API_TIMEOUT_MS) {
4
4
  const controller = new AbortController();
5
5
  let timeoutId = null;
6
6
  try {
7
7
  // Set up timeout
8
8
  timeoutId = setTimeout(() => {
9
+ console.log('request aborted due to timeout');
9
10
  controller.abort();
10
11
  }, timeoutMs);
11
12
  const newHeaders = new Headers(options.headers);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eka-care/ekascribe-ts-sdk",
3
- "version": "1.4.33",
3
+ "version": "1.4.35",
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>",