@verdocs/js-sdk 3.0.14 → 3.0.15

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.
@@ -133,7 +133,9 @@ export declare class VerdocsEndpoint {
133
133
  */
134
134
  setClientID(clientID: string): VerdocsEndpoint;
135
135
  /**
136
- * Set the timeout for API calls in milliseconds. 2000-4000ms is recommended for most purposes. 3000ms is the default.
136
+ * Set the timeout for API calls in milliseconds. 5000-20000ms is recommended for most purposes. 15000ms is the default.
137
+ * Note that some calls may involve rendering operations that require some time to complete, so very short timeouts
138
+ * are not recommended.
137
139
  *
138
140
  * ```typescript
139
141
  * import {VerdocsEndpoint} from '@verdocs/js-sdk/HTTP';
@@ -44,7 +44,7 @@ var VerdocsEndpoint = /** @class */ (function () {
44
44
  this.sessionType = 'user';
45
45
  this.baseURL = 'https://api.verdocs.com';
46
46
  this.clientID = 'not-set';
47
- this.timeout = 3000;
47
+ this.timeout = 15000;
48
48
  this.token = null;
49
49
  this.nextListenerId = 0;
50
50
  this.sessionListeners = new Map();
@@ -56,7 +56,7 @@ var VerdocsEndpoint = /** @class */ (function () {
56
56
  */
57
57
  this.session = null;
58
58
  this.baseURL = (options === null || options === void 0 ? void 0 : options.baseURL) || 'https://api.verdocs.com';
59
- this.timeout = (options === null || options === void 0 ? void 0 : options.timeout) || 3000;
59
+ this.timeout = (options === null || options === void 0 ? void 0 : options.timeout) || 15000;
60
60
  this.environment = (options === null || options === void 0 ? void 0 : options.environment) || 'verdocs';
61
61
  this.sessionType = (options === null || options === void 0 ? void 0 : options.sessionType) || 'user';
62
62
  this.clientID = (options === null || options === void 0 ? void 0 : options.clientID) || 'not-set';
@@ -172,7 +172,9 @@ var VerdocsEndpoint = /** @class */ (function () {
172
172
  return this;
173
173
  };
174
174
  /**
175
- * Set the timeout for API calls in milliseconds. 2000-4000ms is recommended for most purposes. 3000ms is the default.
175
+ * Set the timeout for API calls in milliseconds. 5000-20000ms is recommended for most purposes. 15000ms is the default.
176
+ * Note that some calls may involve rendering operations that require some time to complete, so very short timeouts
177
+ * are not recommended.
176
178
  *
177
179
  * ```typescript
178
180
  * import {VerdocsEndpoint} from '@verdocs/js-sdk/HTTP';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "3.0.14",
3
+ "version": "3.0.15",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",
@@ -46,21 +46,21 @@
46
46
  "access": "public"
47
47
  },
48
48
  "dependencies": {
49
- "axios": "^1.2.2"
49
+ "axios": "^1.2.3"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "typescript": "^4.7.3"
53
53
  },
54
54
  "devDependencies": {
55
- "@jest/globals": "^28.1.2",
56
- "@types/jest": "^28.1.4",
55
+ "@jest/globals": "^29.3.1",
56
+ "@types/jest": "^29.2.6",
57
57
  "axios-mock-adapter": "^1.21.2",
58
- "jest": "^28.1.2",
59
- "prettier": "^2.8.1",
60
- "ts-jest": "^28.0.8",
58
+ "jest": "^29.3.1",
59
+ "prettier": "^2.8.3",
60
+ "ts-jest": "^29.0.5",
61
61
  "tslint": "^6.1.3",
62
62
  "tslint-config-prettier": "^1.18.0",
63
- "typedoc": "^0.23.23",
63
+ "typedoc": "^0.23.24",
64
64
  "typedoc-plugin-markdown": "^3.14.0",
65
65
  "typescript": "^4.7.4"
66
66
  }