@verdocs/js-sdk 3.10.20 → 3.10.21
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/VerdocsEndpoint.js +4 -1
- package/package.json +1 -1
package/VerdocsEndpoint.js
CHANGED
|
@@ -31,6 +31,7 @@ var requestLogger = function (r) {
|
|
|
31
31
|
* .setTimeout(5000);
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
+
// TODO: Research issue with Beta URL
|
|
34
35
|
var VerdocsEndpoint = /** @class */ (function () {
|
|
35
36
|
/**
|
|
36
37
|
* Create a new VerdocsEndpoint to call Verdocs platform services.
|
|
@@ -43,7 +44,9 @@ var VerdocsEndpoint = /** @class */ (function () {
|
|
|
43
44
|
function VerdocsEndpoint(options) {
|
|
44
45
|
this.environment = 'verdocs';
|
|
45
46
|
this.sessionType = 'user';
|
|
46
|
-
this.baseURL = 'https://
|
|
47
|
+
this.baseURL = (window.location.origin === 'https://beta.verdocs.com'
|
|
48
|
+
? 'https://stage-api.verdocs.com'
|
|
49
|
+
: 'https://api.verdocs.com');
|
|
47
50
|
this.baseURLv2 = 'https://api-v2.verdocs.com';
|
|
48
51
|
this.clientID = 'not-set';
|
|
49
52
|
this.timeout = 60000;
|