@opencitylabs/formio-sdk 1.1.4 → 1.1.6

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.
Files changed (3) hide show
  1. package/BaseUrl.js +2 -2
  2. package/index.js +1 -1
  3. package/package.json +2 -2
package/BaseUrl.js CHANGED
@@ -7,8 +7,8 @@ export const baseUrl = () => {
7
7
  let url = null;
8
8
  if (globalRegex.test(location.hostname)) {
9
9
  url = "https://servizi.comune-qa.bugliano.pi.it/lang";
10
- } else if (window.BASE_URL) {
11
- url = window.BASE_URL;
10
+ } else if (window.OC_BASE_URL || window.BASE_URL) {
11
+ url = window.OC_BASE_URL || window.BASE_URL;
12
12
  } else {
13
13
  const explodedPath = location.pathname.split("/");
14
14
  url = location.origin + "/" + explodedPath[1];
package/index.js CHANGED
@@ -69,7 +69,7 @@ class FormIoHelper {
69
69
  }
70
70
 
71
71
  getBaseUrl() {
72
- return baseUrl() || window.BASE_URL;
72
+ return baseUrl();
73
73
  }
74
74
 
75
75
  async authenticatedCall(endPoint) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencitylabs/formio-sdk",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Node/browser SDK helper for Form.io APIs",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -27,6 +27,6 @@
27
27
  "axios": "^1.13.6",
28
28
  "jwt-decode": "^4.0.0",
29
29
  "lodash.get": "^4.4.2",
30
- "sweetalert2": "^11.26.23"
30
+ "sweetalert2": "^11.26.24"
31
31
  }
32
32
  }