orderiom-api-package 0.4.101 → 0.4.102

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": "orderiom-api-package",
3
- "version": "0.4.101",
3
+ "version": "0.4.102",
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
@@ -223,13 +223,13 @@ export const defineInterceptors = ({$store}) => {
223
223
  if(!isFetchingToken) getAuthToken($store, hadPrivateToken);
224
224
  })
225
225
  }, error => {
226
- $store.dispatch('auth/finishedRequesting');
226
+ $store.dispatch('auth/finishRequesting');
227
227
  return Promise.reject(error);
228
228
  });
229
229
 
230
230
  axios.interceptors.response.use(
231
231
  res => {
232
- $store.dispatch('auth/finishedRequesting');
232
+ $store.dispatch('auth/finishRequesting');
233
233
  return {
234
234
  type: 'success',
235
235
  msg: '',
@@ -238,7 +238,7 @@ export const defineInterceptors = ({$store}) => {
238
238
  }
239
239
  },
240
240
  error => {
241
- $store.dispatch('auth/finishedRequesting');
241
+ $store.dispatch('auth/finishRequesting');
242
242
  if (
243
243
  error.response &&
244
244
  error.response.data &&
@@ -55,10 +55,10 @@ const actions = {
55
55
  console.warn('auth/auth action is deprecated. No need to call');
56
56
  },
57
57
  startRequesting({commit}){
58
- commit('auth/setIsRequesting', true)
58
+ commit('setIsRequesting', true)
59
59
  },
60
60
  finishRequesting({commit}){
61
- commit('auth/setIsRequesting', false)
61
+ commit('setIsRequesting', false)
62
62
  },
63
63
  login({commit, dispatch}, authData) {
64
64
  var data = {...authData};