project-booster-vue 8.128.0 → 8.128.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "8.128.0",
3
+ "version": "8.128.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "test:unit": "vue-cli-service test:unit --forceExit --detectOpenHandles",
@@ -2,9 +2,13 @@ import axios from 'axios';
2
2
  import he from 'he';
3
3
 
4
4
  export const clientApi = axios.create({
5
- baseURL: config?.VUE_APP_DEFAULT_BASE_URL ?? '/project-booster/api',
5
+ baseURL: '/project-booster/api',
6
6
  });
7
7
 
8
+ if (global.window.config) {
9
+ clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
10
+ }
11
+
8
12
  export const updateAppointmentQualificationClient = (config) => {
9
13
  if (config.apiKey) {
10
14
  clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
@@ -2,9 +2,13 @@ import axios from 'axios';
2
2
  import he from 'he';
3
3
 
4
4
  export const clientApi = axios.create({
5
- baseURL: config?.VUE_APP_DEFAULT_BASE_URL ?? '/project-booster/api',
5
+ baseURL: '/project-booster/api',
6
6
  });
7
7
 
8
+ if (global.window.config) {
9
+ clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
10
+ }
11
+
8
12
  export const updateConfigApiClient = (config) => {
9
13
  if (config.apiKey) {
10
14
  clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
@@ -2,9 +2,13 @@ import axios from 'axios';
2
2
  import he from 'he';
3
3
 
4
4
  export const clientApi = axios.create({
5
- baseURL: config?.VUE_APP_DEFAULT_BASE_URL ?? '/project-booster/api',
5
+ baseURL: '/project-booster/api',
6
6
  });
7
7
 
8
+ if (global.window.config) {
9
+ clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
10
+ }
11
+
8
12
  export const updateConfigurationsApiClient = (config) => {
9
13
  if (config.apiKey) {
10
14
  clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
@@ -2,9 +2,13 @@ import axios from 'axios';
2
2
  import he from 'he';
3
3
 
4
4
  export const clientApi = axios.create({
5
- baseURL: config?.VUE_APP_DEFAULT_BASE_URL ?? '/project-booster/api',
5
+ baseURL: '/project-booster/api',
6
6
  });
7
7
 
8
+ if (global.window.config) {
9
+ clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
10
+ }
11
+
8
12
  export const updateDocumentsApiClient = (config) => {
9
13
  if (config.apiKey) {
10
14
  clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
@@ -2,9 +2,13 @@ import axios from 'axios';
2
2
  import he from 'he';
3
3
 
4
4
  export const clientApi = axios.create({
5
- baseURL: config?.VUE_APP_DEFAULT_BASE_URL ?? '/project-booster/api',
5
+ baseURL: '/project-booster/api',
6
6
  });
7
7
 
8
+ if (global.window.config) {
9
+ clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
10
+ }
11
+
8
12
  export const updateEstimatesApiClient = (config) => {
9
13
  if (config.apiKey) {
10
14
  clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
@@ -2,9 +2,13 @@ import axios from 'axios';
2
2
  import he from 'he';
3
3
 
4
4
  export const clientApi = axios.create({
5
- baseURL: config?.VUE_APP_DEFAULT_BASE_URL ?? '/project-booster/api',
5
+ baseURL: '/project-booster/api',
6
6
  });
7
7
 
8
+ if (global.window.config) {
9
+ clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
10
+ }
11
+
8
12
  export const updateEventsApiClient = (config) => {
9
13
  if (config.apiKey) {
10
14
  clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
@@ -2,9 +2,13 @@ import axios from 'axios';
2
2
  import he from 'he';
3
3
 
4
4
  export const clientApi = axios.create({
5
- baseURL: config?.VUE_APP_DEFAULT_BASE_URL ?? '/project-booster/api',
5
+ baseURL: '/project-booster/api',
6
6
  });
7
7
 
8
+ if (global.window.config) {
9
+ clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
10
+ }
11
+
8
12
  export const updateInhabitantsApiClient = (config) => {
9
13
  if (config.apiKey) {
10
14
  clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
@@ -2,9 +2,13 @@ import axios from 'axios';
2
2
  import he from 'he';
3
3
 
4
4
  export const clientApi = axios.create({
5
- baseURL: config?.VUE_APP_DEFAULT_BASE_URL ?? '/project-booster/api',
5
+ baseURL: '/project-booster/api',
6
6
  });
7
7
 
8
+ if (global.window.config) {
9
+ clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
10
+ }
11
+
8
12
  export const updateMediaApiClient = (config) => {
9
13
  if (config.apiKey) {
10
14
  clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
@@ -2,9 +2,13 @@ import axios from 'axios';
2
2
  import he from 'he';
3
3
 
4
4
  export const clientApi = axios.create({
5
- baseURL: config?.VUE_APP_DEFAULT_BASE_URL ?? '/project-booster/api',
5
+ baseURL: '/project-booster/api',
6
6
  });
7
7
 
8
+ if (global.window.config) {
9
+ clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
10
+ }
11
+
8
12
  export const updateProductsApiClient = (config) => {
9
13
  if (config.apiKey) {
10
14
  const header = config.apiHeader ?? 'X-Gateway-ApiKey';
@@ -2,9 +2,13 @@ import axios from 'axios';
2
2
  import he from 'he';
3
3
 
4
4
  export const clientApi = axios.create({
5
- baseURL: config?.VUE_APP_DEFAULT_BASE_URL ?? '/project-booster/api',
5
+ baseURL: '/project-booster/api',
6
6
  });
7
7
 
8
+ if (global.window.config) {
9
+ clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
10
+ }
11
+
8
12
  export const updateProjectsApiClient = (config) => {
9
13
  if (config.apiKey) {
10
14
  clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
@@ -1,9 +1,13 @@
1
1
  import axios from 'axios';
2
2
 
3
3
  export const clientApi = axios.create({
4
- baseURL: config?.VUE_APP_DEFAULT_BASE_URL ?? '/project-booster/api',
4
+ baseURL: '/project-booster/api',
5
5
  });
6
6
 
7
+ if (global.window.config) {
8
+ clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
9
+ }
10
+
7
11
  export const updateScenarioApiClient = (config) => {
8
12
  if (config.apiKey) {
9
13
  clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;