@verdocs/js-sdk 3.1.6 → 3.1.8

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.
@@ -255,9 +255,13 @@ export var getEnvelopesByTemplateId = function (endpoint, templateId) { return _
255
255
  * into PNG resources suitable for display in IMG tags although they may be used elsewhere. Note that these are intended
256
256
  * for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants.
257
257
  */
258
- export var getEnvelopeDocumentPageDisplayUri = function (endpoint, envelopeId, documentId, page) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
259
- return [2 /*return*/, endpoint.api.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image")).then(function (r) { return r.data; })];
260
- }); }); };
258
+ export var getEnvelopeDocumentPageDisplayUri = function (endpoint, envelopeId, documentId, page) { return __awaiter(void 0, void 0, void 0, function () {
259
+ return __generator(this, function (_a) {
260
+ return [2 /*return*/, endpoint.api
261
+ .get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image"), { timeout: 60000 })
262
+ .then(function (r) { return r.data; })];
263
+ });
264
+ }); };
261
265
  var cachedEnvelopes = {};
262
266
  /**
263
267
  * Wrapper for `getEnvelope()` that limits queries to one every 2 seconds per template ID.
@@ -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 = 15000;
47
+ this.timeout = 60000;
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) || 15000;
59
+ this.timeout = (options === null || options === void 0 ? void 0 : options.timeout) || 60000;
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "3.1.6",
3
+ "version": "3.1.8",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",