orderiom-api-package 0.4.29 → 0.4.30

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/common.js +7 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orderiom-api-package",
3
- "version": "0.4.29",
3
+ "version": "0.4.30",
4
4
  "description": "This package will install all necessary API calls for every orderiom restaurant",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/src/common.js CHANGED
@@ -2,11 +2,13 @@ import axios from "axios";
2
2
 
3
3
  export const weekdays = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];
4
4
 
5
- export const restaurantIdEnv = () => process.env.VUE_APP_RESTAURANT_ID
6
- ? parseInt(process.env.VUE_APP_RESTAURANT_ID)
7
- : window.dynamicData && window.dynamicData.VUE_APP_RESTAURANT_ID
8
- ? parseInt(window.dynamicData.VUE_APP_RESTAURANT_ID)
9
- : null;
5
+ export const restaurantIdEnv = () => {
6
+ return process.env.VUE_APP_RESTAURANT_ID
7
+ ? parseInt(process.env.VUE_APP_RESTAURANT_ID)
8
+ : window.dynamicData && window.dynamicData.VUE_APP_RESTAURANT_ID
9
+ ? parseInt(window.dynamicData.VUE_APP_RESTAURANT_ID)
10
+ : null;
11
+ }
10
12
 
11
13
  export function commonErrorCallback(unknownErrorMessage = 'Something went wrong'){
12
14
  return error => {