@verdocs/js-sdk 3.1.5 → 3.1.7

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.
@@ -268,7 +268,7 @@ export var throttledGetEnvelope = function (endpoint, envelopeId) {
268
268
  if (cachedEnvelopes[envelopeId] && cachedEnvelopes[envelopeId].loaded + 2000 < new Date().getTime()) {
269
269
  return cachedEnvelopes[envelopeId].envelope;
270
270
  }
271
- return getEnvelope(endpoint, envelopeId).then(function (envelope) {
271
+ return getEnvelope(endpoint, envelopeId, true).then(function (envelope) {
272
272
  cachedEnvelopes[envelopeId] = { loaded: new Date().getTime(), envelope: envelope };
273
273
  return envelope;
274
274
  });
@@ -1,3 +1,4 @@
1
+ export * as Types from './Types';
1
2
  import { TSession } from './Types';
2
3
  /**
3
4
  * Confirm whether the user has all of the specified permissions.
package/Sessions/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * as Types from './Types';
1
2
  /**
2
3
  * Confirm whether the user has all of the specified permissions.
3
4
  */
@@ -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.5",
3
+ "version": "3.1.7",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",