@mapomodule/core 1.0.0-alpha.10 → 1.0.0-alpha.13

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-alpha.13](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2022-03-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * added snack message in the requst interceptor ([acf9cd1](https://github.com/lotrekagency/mapo/commit/acf9cd1efbabc13eb99af7f4bfe0dcf096112ec0))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.0.0-alpha.10](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2022-02-11)
7
18
 
8
19
 
@@ -12,14 +12,20 @@ module.exports = ({ $axios, store }) => {
12
12
  if (response.status === 401) {
13
13
  store.dispatch('mapo/user/logout');
14
14
  }
15
+ if (response.status == 403) {
16
+ store.dispatch("mapo/app/showSnackMessage", { message: "Permission denied..", color: "error" })
17
+ }
15
18
  return response
16
19
  })
17
-
20
+
18
21
  $axios.onError((error) => {
19
22
  const { status } = error.response || {}
20
23
  if (status === 401) {
21
24
  store.dispatch('mapo/user/logout');
22
25
  }
26
+ if (status == 403) {
27
+ store.dispatch("mapo/app/showSnackMessage", { message: "Permission denied..", color: "error" })
28
+ }
23
29
  return Promise.reject(error)
24
30
  })
25
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapomodule/core",
3
- "version": "1.0.0-alpha.10",
3
+ "version": "1.0.0-alpha.13",
4
4
  "description": "This is part of Mapo nuxt module. Injects the core mapo plugin helpers.",
5
5
  "author": "bnznamco <gabriele.baldi.01@gmail.com>",
6
6
  "keywords": [
@@ -13,10 +13,10 @@
13
13
  "repository": "https://github.com/lotrekagency/mapo",
14
14
  "main": "./module.js",
15
15
  "dependencies": {
16
- "@mapomodule/utils": "^1.0.0-alpha.10"
16
+ "@mapomodule/utils": "^1.0.0-alpha.13"
17
17
  },
18
18
  "publishConfig": {
19
19
  "access": "public"
20
20
  },
21
- "gitHead": "283cad977741523d3a0c300ce08edf1a6855e11c"
21
+ "gitHead": "b0fac0f5ebde4c65cc5347dbb841392dc04ef5e8"
22
22
  }