@mapomodule/core 1.0.0-alpha.31 → 1.0.0-alpha.34
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 +11 -0
- package/api/crud.js +2 -2
- package/package.json +3 -3
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.34](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.33...v1.0.0-alpha.34) (2022-11-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* default upload in multipart autodiscover ([b153307](https://github.com/lotrekagency/mapo/commit/b15330725a64a0931d2de49929a01e3a7319b382))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [1.0.0-alpha.31](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.30...v1.0.0-alpha.31) (2022-09-14)
|
|
7
18
|
|
|
8
19
|
|
package/api/crud.js
CHANGED
|
@@ -2,8 +2,8 @@ const transformRequestInMultipart = require('@mapomodule/core/api/multipart')
|
|
|
2
2
|
const trimslashes = (str) => (str || "").replace(/^\/|\/$/g, '')
|
|
3
3
|
const preparePayload = (payload, options) => {
|
|
4
4
|
const { multipart } = (options || {})
|
|
5
|
-
if (!(payload instanceof FormData) &&
|
|
6
|
-
payload = transformRequestInMultipart(payload, multipart);
|
|
5
|
+
if (!(payload instanceof FormData) && multipart !== 'disable') {
|
|
6
|
+
payload = transformRequestInMultipart(payload, multipart || 'auto');
|
|
7
7
|
}
|
|
8
8
|
return payload
|
|
9
9
|
}
|
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.34",
|
|
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.34"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "48d74634c57ecbdf8c0b65a11833050c068fa9ef"
|
|
22
22
|
}
|