@autifyhq/autify-sdk 0.4.0 → 0.5.0

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,8 +9,8 @@ var base_1 = require("./openapi/base");
9
9
  Object.defineProperty(exports, "MOBILE_BASE_PATH", { enumerable: true, get: function () { return base_1.BASE_PATH; } });
10
10
  class CustomFormData extends form_data_1.default {
11
11
  append(key, filename) {
12
- const blob = (0, fs_1.readFileSync)(filename);
13
- super.append(key, blob, { filename });
12
+ const stream = (0, fs_1.createReadStream)(filename);
13
+ super.append(key, stream, { filename });
14
14
  }
15
15
  }
16
16
  class MobileClient {
@@ -26,6 +26,8 @@ class MobileClient {
26
26
  "User-Agent": userAgent,
27
27
  },
28
28
  }),
29
+ maxBodyLength: Number.POSITIVE_INFINITY,
30
+ maxContentLength: Number.POSITIVE_INFINITY,
29
31
  };
30
32
  const configuration = new openapi_1.Configuration({
31
33
  accessToken,
@@ -9,8 +9,8 @@ var base_1 = require("./openapi/base");
9
9
  Object.defineProperty(exports, "WEB_BASE_PATH", { enumerable: true, get: function () { return base_1.BASE_PATH; } });
10
10
  class CustomFormData extends form_data_1.default {
11
11
  append(key, filename) {
12
- const blob = (0, fs_1.readFileSync)(filename);
13
- super.append(key, blob, { filename });
12
+ const stream = (0, fs_1.createReadStream)(filename);
13
+ super.append(key, stream, { filename });
14
14
  }
15
15
  }
16
16
  class WebClient {
@@ -26,6 +26,8 @@ class WebClient {
26
26
  "User-Agent": userAgent,
27
27
  },
28
28
  }),
29
+ maxBodyLength: Number.POSITIVE_INFINITY,
30
+ maxContentLength: Number.POSITIVE_INFINITY,
29
31
  };
30
32
  const configuration = new openapi_1.Configuration({
31
33
  accessToken,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autifyhq/autify-sdk",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Autify SDK for JavaScript",
5
5
  "author": "Autify",
6
6
  "homepage": "https://github.com/autifyhq/autify-sdk-js",