@monkvision/network 5.0.17 → 5.0.19

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.
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkvision/network",
3
- "version": "5.0.16",
3
+ "version": "5.0.18",
4
4
  "license": "BSD-3-Clause-Clear",
5
5
  "packageManager": "yarn@3.2.4",
6
6
  "description": "MonkJs core package used to communicate with the API",
@@ -28,8 +28,8 @@
28
28
  "lint:fix": "yarn run prettier:fix && yarn run eslint:fix"
29
29
  },
30
30
  "dependencies": {
31
- "@monkvision/common": "5.0.16",
32
- "@monkvision/sights": "5.0.16",
31
+ "@monkvision/common": "5.0.18",
32
+ "@monkvision/sights": "5.0.18",
33
33
  "jsonwebtoken": "^9.0.2",
34
34
  "jwt-decode": "^4.0.0",
35
35
  "ky": "^1.2.0",
@@ -42,12 +42,12 @@
42
42
  "react-router-dom": "^6.22.3"
43
43
  },
44
44
  "devDependencies": {
45
- "@monkvision/eslint-config-base": "5.0.16",
46
- "@monkvision/eslint-config-typescript": "5.0.16",
47
- "@monkvision/jest-config": "5.0.16",
48
- "@monkvision/prettier-config": "5.0.16",
49
- "@monkvision/types": "5.0.16",
50
- "@monkvision/typescript-config": "5.0.16",
45
+ "@monkvision/eslint-config-base": "5.0.18",
46
+ "@monkvision/eslint-config-typescript": "5.0.18",
47
+ "@monkvision/jest-config": "5.0.18",
48
+ "@monkvision/prettier-config": "5.0.18",
49
+ "@monkvision/types": "5.0.18",
50
+ "@monkvision/typescript-config": "5.0.18",
51
51
  "@types/jest": "^29.2.2",
52
52
  "@types/jsonwebtoken": "^9.0.5",
53
53
  "@types/node": "^18.11.9",
@@ -15,6 +15,12 @@ export interface UploadPdfOptions {
15
15
  * The PDF file to upload.
16
16
  */
17
17
  pdf: Blob;
18
+ /**
19
+ * The timeout in milliseconds for the request.
20
+ *
21
+ * @default 30000
22
+ */
23
+ timeout?: number;
18
24
  }
19
25
  /**
20
26
  * Options passed to the `getPdf` API request.
@@ -94,7 +94,7 @@ function uploadPdf(options, config, dispatch) {
94
94
  return __generator(this, function (_a) {
95
95
  switch (_a.label) {
96
96
  case 0:
97
- kyOptions = (0, config_1.getDefaultOptions)(config);
97
+ kyOptions = __assign(__assign({}, (0, config_1.getDefaultOptions)(config)), (!!options.timeout && { timeout: options.timeout }));
98
98
  return [4 /*yield*/, createPdfData(options)];
99
99
  case 1:
100
100
  formData = _a.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkvision/network",
3
- "version": "5.0.17",
3
+ "version": "5.0.19",
4
4
  "license": "BSD-3-Clause-Clear",
5
5
  "packageManager": "yarn@3.2.4",
6
6
  "description": "MonkJs core package used to communicate with the API",
@@ -28,8 +28,8 @@
28
28
  "lint:fix": "yarn run prettier:fix && yarn run eslint:fix"
29
29
  },
30
30
  "dependencies": {
31
- "@monkvision/common": "5.0.17",
32
- "@monkvision/sights": "5.0.17",
31
+ "@monkvision/common": "5.0.19",
32
+ "@monkvision/sights": "5.0.19",
33
33
  "jsonwebtoken": "^9.0.2",
34
34
  "jwt-decode": "^4.0.0",
35
35
  "ky": "^1.2.0",
@@ -42,12 +42,12 @@
42
42
  "react-router-dom": "^6.22.3"
43
43
  },
44
44
  "devDependencies": {
45
- "@monkvision/eslint-config-base": "5.0.17",
46
- "@monkvision/eslint-config-typescript": "5.0.17",
47
- "@monkvision/jest-config": "5.0.17",
48
- "@monkvision/prettier-config": "5.0.17",
49
- "@monkvision/types": "5.0.17",
50
- "@monkvision/typescript-config": "5.0.17",
45
+ "@monkvision/eslint-config-base": "5.0.19",
46
+ "@monkvision/eslint-config-typescript": "5.0.19",
47
+ "@monkvision/jest-config": "5.0.19",
48
+ "@monkvision/prettier-config": "5.0.19",
49
+ "@monkvision/types": "5.0.19",
50
+ "@monkvision/typescript-config": "5.0.19",
51
51
  "@types/jest": "^29.2.2",
52
52
  "@types/jsonwebtoken": "^9.0.5",
53
53
  "@types/node": "^18.11.9",
@@ -84,5 +84,5 @@
84
84
  "url": "https://github.com/monkvision/monkjs/issues"
85
85
  },
86
86
  "homepage": "https://github.com/monkvision/monkjs",
87
- "gitHead": "9f61ba1a54e3722de821db362b6d8a41fad42a6f"
87
+ "gitHead": "2bc3e14313bf6bb0805c732b8c3a990a176e4c26"
88
88
  }