@bejibun/core 0.1.70 → 0.1.71

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,20 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  ---
5
5
 
6
+ ## [v0.1.71](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.70...v0.1.71) - 2026-01-29
7
+
8
+ ### 🩹 Fixes
9
+ - Merge request payload json with other types
10
+
11
+ ### 📖 Changes
12
+
13
+ ### ❤️Contributors
14
+ - Havea Crenata ([@crenata](https://github.com/crenata))
15
+
16
+ **Full Changelog**: https://github.com/Bejibun-Framework/bejibun-core/blob/master/CHANGELOG.md
17
+
18
+ ---
19
+
6
20
  ## [v0.1.70](https://github.com/Bejibun-Framework/bejibun-core/compare/v0.1.69...v0.1.70) - 2026-01-19
7
21
 
8
22
  ### 🩹 Fixes
@@ -6,9 +6,10 @@ export default class BaseController {
6
6
  async parse(request) {
7
7
  const contentType = defineValue(request.headers.get("content-type"), "");
8
8
  const formData = new FormData();
9
+ let data = {};
9
10
  try {
10
11
  if (contentType.includes("application/json"))
11
- return Bobject.serialize(await request.json());
12
+ Object.assign(data, Bobject.serialize(await request.json()));
12
13
  for (const [key, value] of Object.entries(request.params)) {
13
14
  formData.append(key, value);
14
15
  }
@@ -30,7 +31,7 @@ export default class BaseController {
30
31
  catch {
31
32
  // do nothing
32
33
  }
33
- return Bobject.parseFormData(formData);
34
+ return Object.assign(data, Bobject.parseFormData(formData));
34
35
  }
35
36
  get response() {
36
37
  return Response;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bejibun/core",
3
- "version": "0.1.70",
3
+ "version": "0.1.71",
4
4
  "author": "Havea Crenata <havea.crenata@gmail.com>",
5
5
  "repository": {
6
6
  "type": "git",