@mapomodule/core
Advanced tools
Comparing version 1.0.0-alpha.10 to 1.0.0-alpha.13
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.0.0-alpha.13](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2022-03-01) | ||
### Features | ||
* added snack message in the requst interceptor ([acf9cd1](https://github.com/lotrekagency/mapo/commit/acf9cd1efbabc13eb99af7f4bfe0dcf096112ec0)) | ||
# [1.0.0-alpha.10](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2022-02-11) | ||
@@ -8,0 +19,0 @@ |
@@ -15,5 +15,8 @@ module.exports = ({ $axios, store }) => { | ||
} | ||
if (response.status == 403) { | ||
store.dispatch("mapo/app/showSnackMessage", { message: "Permission denied..", color: "error" }) | ||
} | ||
return response | ||
}) | ||
$axios.onError((error) => { | ||
@@ -24,2 +27,5 @@ const { status } = error.response || {} | ||
} | ||
if (status == 403) { | ||
store.dispatch("mapo/app/showSnackMessage", { message: "Permission denied..", color: "error" }) | ||
} | ||
return Promise.reject(error) | ||
@@ -26,0 +32,0 @@ }) |
{ | ||
"name": "@mapomodule/core", | ||
"version": "1.0.0-alpha.10", | ||
"version": "1.0.0-alpha.13", | ||
"description": "This is part of Mapo nuxt module. Injects the core mapo plugin helpers.", | ||
@@ -16,3 +16,3 @@ "author": "bnznamco <gabriele.baldi.01@gmail.com>", | ||
"dependencies": { | ||
"@mapomodule/utils": "^1.0.0-alpha.10" | ||
"@mapomodule/utils": "^1.0.0-alpha.13" | ||
}, | ||
@@ -22,3 +22,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "283cad977741523d3a0c300ce08edf1a6855e11c" | ||
"gitHead": "b0fac0f5ebde4c65cc5347dbb841392dc04ef5e8" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21761
361