@mapomodule/core 1.0.0-alpha.19 → 1.0.0-alpha.27
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 +27 -0
- package/index.js +0 -4
- package/module.js +0 -7
- package/package.json +3 -3
- package/options.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.27](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.26...v1.0.0-alpha.27) (2022-08-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove unused options plugin ([45004bb](https://github.com/lotrekagency/mapo/commit/45004bb158267c7e2f7795c1d12cf568f9d7ded2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [1.0.0-alpha.23](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.22...v1.0.0-alpha.23) (2022-05-04)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @mapomodule/core
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [1.0.0-alpha.22](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.21...v1.0.0-alpha.22) (2022-05-01)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @mapomodule/core
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [1.0.0-alpha.19](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.18...v1.0.0-alpha.19) (2022-04-06)
|
|
7
34
|
|
|
8
35
|
|
package/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import createRepository from '@mapomodule/core/api/crud'
|
|
2
2
|
import transformRequestInMultipart from '@mapomodule/core/api/multipart'
|
|
3
3
|
import initInterceptors from '@mapomodule/core/interceptor'
|
|
4
|
-
import options from './options'
|
|
5
4
|
|
|
6
5
|
function getRouteMiddlewares(route) {
|
|
7
6
|
const meta = Array.isArray(route?.meta) ? route.meta[0] : route.meta
|
|
@@ -9,7 +8,6 @@ function getRouteMiddlewares(route) {
|
|
|
9
8
|
return (typeof middleware === "string" ? [middleware] : middleware) || []
|
|
10
9
|
}
|
|
11
10
|
|
|
12
|
-
const { axios, ...conf } = options;
|
|
13
11
|
|
|
14
12
|
export default (ctx, inject) => {
|
|
15
13
|
|
|
@@ -22,9 +20,7 @@ export default (ctx, inject) => {
|
|
|
22
20
|
$api: {
|
|
23
21
|
crud: createRepository(ctx.$axios),
|
|
24
22
|
multipart: transformRequestInMultipart,
|
|
25
|
-
conf: axios
|
|
26
23
|
},
|
|
27
|
-
$options: conf,
|
|
28
24
|
/**
|
|
29
25
|
* From here you can reach some utilities that simplify the interaction with the user authentication flow.
|
|
30
26
|
*/
|
package/module.js
CHANGED
|
@@ -23,13 +23,6 @@ export default async function (moduleOptions) {
|
|
|
23
23
|
fileName: path.join(namespace, 'mapo.js')
|
|
24
24
|
})
|
|
25
25
|
|
|
26
|
-
// INJECT MAPO OPTIONS
|
|
27
|
-
this.addTemplate({
|
|
28
|
-
src: path.resolve(__dirname, './options.js'),
|
|
29
|
-
fileName: path.join(namespace, 'options.js'),
|
|
30
|
-
options: { axios: (this.options && this.options.axios), ...moduleOptions }
|
|
31
|
-
})
|
|
32
|
-
|
|
33
26
|
// INJECT ALL MIDDLEWARES
|
|
34
27
|
const middlewares = (await resolver.resolveRelative(__dirname, 'middleware')).map(({ src }) => src)
|
|
35
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapomodule/core",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.27",
|
|
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.
|
|
16
|
+
"@mapomodule/utils": "^1.0.0-alpha.23"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "d028345c7ee4cdf43dac3e68d27d4b9f1ad4198c"
|
|
22
22
|
}
|
package/options.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default <%= serializeFunction(options) %>
|