@iankibetsh/shframework 0.0.2 → 0.0.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/dist/library.js CHANGED
@@ -33,9 +33,9 @@ var shstorage = {
33
33
  removeItem
34
34
  };
35
35
 
36
- let apiUrl = undefined.VITE_APP_API_URL;
36
+ let apiUrl = window.VITE_APP_API_URL;
37
37
  if (process.env.NODE_ENV === 'production') {
38
- apiUrl = undefined.VITE_APP_API_PRODUCTION_URL;
38
+ apiUrl = window.VITE_APP_API_PRODUCTION_URL;
39
39
  }
40
40
  const axios = Axios__default["default"].create({
41
41
  baseURL: apiUrl
@@ -1552,8 +1552,8 @@ var script$6 = {
1552
1552
  isoCode: 'KE',
1553
1553
  flag: 'https://www.countryflags.io/KE/flat/64.png'
1554
1554
  },
1555
- flag: undefined.VITE_APP_HOME_URL + 'flags/ke.svg',
1556
- appUrl: undefined.VITE_APP_HOME_URL
1555
+ flag: window.VITE_APP_HOME_URL + 'flags/ke.svg',
1556
+ appUrl: window.VITE_APP_HOME_URL
1557
1557
  }
1558
1558
  },
1559
1559
  updated () {
@@ -2637,7 +2637,7 @@ var script$1 = {
2637
2637
  moreDetailsId: null,
2638
2638
  moreDetailsModel: null,
2639
2639
  downloading: false,
2640
- appUrl: undefined.VITE_APP_API_URL
2640
+ appUrl: window.VITE_APP_API_URL
2641
2641
  }
2642
2642
  },
2643
2643
  mounted () {
@@ -3392,4 +3392,8 @@ const plugin = {
3392
3392
  }
3393
3393
  };
3394
3394
 
3395
- module.exports = plugin;
3395
+ var index = {
3396
+ plugin
3397
+ };
3398
+
3399
+ module.exports = index;
package/dist/library.mjs CHANGED
@@ -24,9 +24,9 @@ var shstorage = {
24
24
  removeItem
25
25
  };
26
26
 
27
- let apiUrl = import.meta.env.VITE_APP_API_URL;
27
+ let apiUrl = window.VITE_APP_API_URL;
28
28
  if (process.env.NODE_ENV === 'production') {
29
- apiUrl = import.meta.env.VITE_APP_API_PRODUCTION_URL;
29
+ apiUrl = window.VITE_APP_API_PRODUCTION_URL;
30
30
  }
31
31
  const axios = Axios.create({
32
32
  baseURL: apiUrl
@@ -1543,8 +1543,8 @@ var script$6 = {
1543
1543
  isoCode: 'KE',
1544
1544
  flag: 'https://www.countryflags.io/KE/flat/64.png'
1545
1545
  },
1546
- flag: import.meta.env.VITE_APP_HOME_URL + 'flags/ke.svg',
1547
- appUrl: import.meta.env.VITE_APP_HOME_URL
1546
+ flag: window.VITE_APP_HOME_URL + 'flags/ke.svg',
1547
+ appUrl: window.VITE_APP_HOME_URL
1548
1548
  }
1549
1549
  },
1550
1550
  updated () {
@@ -2628,7 +2628,7 @@ var script$1 = {
2628
2628
  moreDetailsId: null,
2629
2629
  moreDetailsModel: null,
2630
2630
  downloading: false,
2631
- appUrl: import.meta.env.VITE_APP_API_URL
2631
+ appUrl: window.VITE_APP_API_URL
2632
2632
  }
2633
2633
  },
2634
2634
  mounted () {
@@ -3383,4 +3383,8 @@ const plugin = {
3383
3383
  }
3384
3384
  };
3385
3385
 
3386
- export { plugin as default };
3386
+ var index = {
3387
+ plugin
3388
+ };
3389
+
3390
+ export { index as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",