@mapomodule/core 1.0.0-alpha.34 → 1.0.0-alpha.40
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 +19 -0
- package/index.js +13 -3
- package/module.js +5 -1
- package/package.json +3 -3
- package/templates/options.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.40](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.39...v1.0.0-alpha.40) (2022-12-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @mapomodule/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [1.0.0-alpha.39](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.38...v1.0.0-alpha.39) (2022-12-03)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* give the option to rewrite form fields components defaults in nuxt.config.js ([c4e76b1](https://github.com/lotrekagency/mapo/commit/c4e76b153b145cc670ef988e9501e1a8fbc0005e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [1.0.0-alpha.34](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.33...v1.0.0-alpha.34) (2022-11-11)
|
|
7
26
|
|
|
8
27
|
|
package/index.js
CHANGED
|
@@ -2,6 +2,12 @@ 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
4
|
|
|
5
|
+
try {
|
|
6
|
+
var options = require('./options').default;
|
|
7
|
+
} catch (error) {
|
|
8
|
+
var options = {};
|
|
9
|
+
}
|
|
10
|
+
|
|
5
11
|
function getRouteMiddlewares(route) {
|
|
6
12
|
const meta = Array.isArray(route?.meta) ? route.meta[0] : route.meta
|
|
7
13
|
const { middleware } = meta || {}
|
|
@@ -13,7 +19,7 @@ export default (ctx, inject) => {
|
|
|
13
19
|
|
|
14
20
|
initInterceptors(ctx)
|
|
15
21
|
|
|
16
|
-
|
|
22
|
+
const mapo = {
|
|
17
23
|
/**
|
|
18
24
|
* From here you can reach some utilities that simplify the interaction with the backend api.
|
|
19
25
|
*/
|
|
@@ -102,8 +108,12 @@ export default (ctx, inject) => {
|
|
|
102
108
|
* @function
|
|
103
109
|
*/
|
|
104
110
|
close: null
|
|
105
|
-
}
|
|
106
|
-
|
|
111
|
+
},
|
|
112
|
+
$options: options
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
inject('mapo', mapo);
|
|
116
|
+
ctx.$mapo = mapo;
|
|
107
117
|
}
|
|
108
118
|
|
|
109
119
|
/**
|
package/module.js
CHANGED
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.40",
|
|
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.40"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "918d8d3ed9a6edc9be25e082f9917866e8c73c57"
|
|
22
22
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default <%= serializeFunction(options) %>;
|