@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 CHANGED
@@ -2419,7 +2419,6 @@ interface IAuthenticateResponse {
2419
2419
  expires_in: number;
2420
2420
  access_token_exp: number;
2421
2421
  refresh_token_exp: number;
2422
- intercom_key: string;
2423
2422
  }
2424
2423
  interface IChangePasswordRequest {
2425
2424
  old_password: string;
package/dist/index.d.ts CHANGED
@@ -2419,7 +2419,6 @@ interface IAuthenticateResponse {
2419
2419
  expires_in: number;
2420
2420
  access_token_exp: number;
2421
2421
  refresh_token_exp: number;
2422
- intercom_key: string;
2423
2422
  }
2424
2423
  interface IChangePasswordRequest {
2425
2424
  old_password: string;
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 = ['https://beta.verdocs.com', 'https://stage.verdocs.com', 'http://localhost:6006', 'http://localhost:5173'];
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 || '') ? 'https://stage-api.verdocs.com' : 'https://api.verdocs.com';
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;