@aeriajs/http 0.0.189 → 0.0.190

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
@@ -97,6 +97,7 @@ const registerRoute = async (context, method, exp, cb, contract, options = {}) =
97
97
  if ('payload' in contract && contract.payload) {
98
98
  const { error } = await checkUnprocessable(context.request.payload, contract.payload, context, {
99
99
  checkObjectIds: true,
100
+ coerceObjectIds: true,
100
101
  context,
101
102
  objectIdConstructor: mongodb_1.ObjectId,
102
103
  });
package/dist/routing.mjs CHANGED
@@ -90,6 +90,7 @@ export const registerRoute = async (context, method, exp, cb, contract, options
90
90
  if ("payload" in contract && contract.payload) {
91
91
  const { error } = await checkUnprocessable(context.request.payload, contract.payload, context, {
92
92
  checkObjectIds: true,
93
+ coerceObjectIds: true,
93
94
  context,
94
95
  objectIdConstructor: ObjectId
95
96
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/http",
3
- "version": "0.0.189",
3
+ "version": "0.0.190",
4
4
  "description": "## Installation",
5
5
  "main": "dist/index.js",
6
6
  "aeriaMain": "tests/fixtures/aeriaMain.js",
@@ -33,7 +33,7 @@
33
33
  "@aeriajs/common": "^0.0.155",
34
34
  "@aeriajs/entrypoint": "^0.0.161",
35
35
  "@aeriajs/types": "^0.0.133",
36
- "@aeriajs/validation": "^0.0.174",
36
+ "@aeriajs/validation": "^0.0.175",
37
37
  "mongodb": "^6.17.0"
38
38
  },
39
39
  "scripts": {