@aeriajs/http 0.0.99 → 0.0.100
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/dist/routing.js +1 -1
- package/dist/routing.mjs +1 -1
- package/package.json +2 -2
package/dist/routing.js
CHANGED
|
@@ -95,7 +95,7 @@ const registerRoute = async (context, method, exp, cb, contract, options = {}) =
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
if ('payload' in contract && contract.payload) {
|
|
98
|
-
const { error } = checkUnprocessable(context.request.
|
|
98
|
+
const { error } = checkUnprocessable(context.request.payload, contract.payload, context);
|
|
99
99
|
if (error) {
|
|
100
100
|
return types_1.Result.error(error);
|
|
101
101
|
}
|
package/dist/routing.mjs
CHANGED
|
@@ -92,7 +92,7 @@ export const registerRoute = async (context, method, exp, cb, contract, options
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
if ("payload" in contract && contract.payload) {
|
|
95
|
-
const { error } = checkUnprocessable(context.request.
|
|
95
|
+
const { error } = checkUnprocessable(context.request.payload, contract.payload, context);
|
|
96
96
|
if (error) {
|
|
97
97
|
return Result.error(error);
|
|
98
98
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/http",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.100",
|
|
4
4
|
"description": "## Installation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@aeriajs/validation": "^0.0.91"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
|
-
"test": "
|
|
37
|
+
"test": "vitest run",
|
|
38
38
|
"lint": "eslint src",
|
|
39
39
|
"lint:fix": "eslint src --fix",
|
|
40
40
|
"build": "pnpm build:cjs && pnpm build:esm",
|