@aeriajs/http 0.0.168 → 0.0.170

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.
Files changed (2) hide show
  1. package/dist/routing.mjs +3 -7
  2. package/package.json +5 -5
package/dist/routing.mjs CHANGED
@@ -62,13 +62,9 @@ export const registerRoute = async (context, method, exp, cb, contract, options
62
62
  if (match) {
63
63
  if (context.request.headers["content-type"] === "application/json") {
64
64
  try {
65
- context.request.payload = deepMerge(
66
- safeJson(context.request.body),
67
- context.request.payload,
68
- {
69
- arrays: false
70
- }
71
- );
65
+ context.request.payload = deepMerge(safeJson(context.request.body), context.request.payload, {
66
+ arrays: false
67
+ });
72
68
  } catch (err) {
73
69
  return context.error(HTTPStatus.UnprocessableContent, {
74
70
  code: ACError.MalformedInput,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/http",
3
- "version": "0.0.168",
3
+ "version": "0.0.170",
4
4
  "description": "## Installation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,10 +28,10 @@
28
28
  "@aeriajs/validation": "link:../validation"
29
29
  },
30
30
  "peerDependencies": {
31
- "@aeriajs/common": "^0.0.139",
32
- "@aeriajs/entrypoint": "^0.0.143",
33
- "@aeriajs/types": "^0.0.121",
34
- "@aeriajs/validation": "^0.0.155"
31
+ "@aeriajs/common": "^0.0.141",
32
+ "@aeriajs/entrypoint": "^0.0.145",
33
+ "@aeriajs/types": "^0.0.123",
34
+ "@aeriajs/validation": "^0.0.157"
35
35
  },
36
36
  "scripts": {
37
37
  "test": "vitest run",