@verdocs/js-sdk 6.2.1 → 6.2.2
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/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1172,7 +1172,13 @@ const updateProfilePhoto = (endpoint, profileId, file, onUploadProgress) => {
|
|
|
1172
1172
|
// @credit https://derickbailey.com/2016/03/09/creating-a-true-singleton-in-node-js-with-es6-symbols/
|
|
1173
1173
|
// Also see globalThis for comments about why we're doing this in the first place.
|
|
1174
1174
|
const ENDPOINT_KEY = Symbol.for('verdocs-default-endpoint');
|
|
1175
|
-
const BETA_ORIGINS = [
|
|
1175
|
+
const BETA_ORIGINS = [
|
|
1176
|
+
//
|
|
1177
|
+
'https://beta.verdocs.com',
|
|
1178
|
+
'https://stage.verdocs.com',
|
|
1179
|
+
'http://localhost:6006',
|
|
1180
|
+
'http://localhost:5173',
|
|
1181
|
+
];
|
|
1176
1182
|
const requestLogger = (r) => {
|
|
1177
1183
|
// TODO: Re-activate logging via an isomorphic approach
|
|
1178
1184
|
return r;
|
|
@@ -1203,7 +1209,9 @@ class VerdocsEndpoint {
|
|
|
1203
1209
|
environment = 'verdocs';
|
|
1204
1210
|
sessionType = 'user';
|
|
1205
1211
|
persist = true;
|
|
1206
|
-
baseURL = BETA_ORIGINS.includes(globalThis$1.window?.location?.origin || '')
|
|
1212
|
+
baseURL = BETA_ORIGINS.includes(globalThis$1.window?.location?.origin || '')
|
|
1213
|
+
? 'https://stage-api.verdocs.com'
|
|
1214
|
+
: 'https://api.verdocs.com';
|
|
1207
1215
|
clientID = 'not-set';
|
|
1208
1216
|
timeout = 60000;
|
|
1209
1217
|
token = null;
|