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