@aeriajs/http 0.0.98 → 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 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.query, contract.payload, context);
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.query, contract.payload, context);
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.98",
3
+ "version": "0.0.100",
4
4
  "description": "## Installation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,13 +28,13 @@
28
28
  "@aeriajs/validation": "link:../validation"
29
29
  },
30
30
  "peerDependencies": {
31
- "@aeriajs/common": "^0.0.87",
32
- "@aeriajs/entrypoint": "^0.0.89",
33
- "@aeriajs/types": "^0.0.75",
34
- "@aeriajs/validation": "^0.0.90"
31
+ "@aeriajs/common": "^0.0.88",
32
+ "@aeriajs/entrypoint": "^0.0.90",
33
+ "@aeriajs/types": "^0.0.76",
34
+ "@aeriajs/validation": "^0.0.91"
35
35
  },
36
36
  "scripts": {
37
- "test": "TS_NODE_COMPILER_OPTIONS=\"$(cat ../compilerOptions.json)\" mocha -r ts-node/register tests/*.spec.ts",
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",