@aeriajs/validation 0.0.127 → 0.0.129

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/validate.js CHANGED
@@ -121,7 +121,10 @@ const validateProperty = (what, property, options = {}) => {
121
121
  break;
122
122
  }
123
123
  case 'object': {
124
- return (0, exports.validate)(what, property, options);
124
+ if ('properties' in property) {
125
+ return (0, exports.validate)(what, property, options);
126
+ }
127
+ return types_1.Result.result(what);
125
128
  }
126
129
  case 'array': {
127
130
  if (!Array.isArray(what)) {
package/dist/validate.mjs CHANGED
@@ -110,7 +110,10 @@ export const validateProperty = (what, property, options = {}) => {
110
110
  break;
111
111
  }
112
112
  case "object": {
113
- return validate(what, property, options);
113
+ if ("properties" in property) {
114
+ return validate(what, property, options);
115
+ }
116
+ return Result.result(what);
114
117
  }
115
118
  case "array": {
116
119
  if (!Array.isArray(what)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/validation",
3
- "version": "0.0.127",
3
+ "version": "0.0.129",
4
4
  "description": "## Installation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -26,8 +26,8 @@
26
26
  "@aeriajs/types": "link:../types"
27
27
  },
28
28
  "peerDependencies": {
29
- "@aeriajs/common": "^0.0.120",
30
- "@aeriajs/types": "^0.0.102",
29
+ "@aeriajs/common": "^0.0.121",
30
+ "@aeriajs/types": "^0.0.103",
31
31
  "mongodb": "^6.5.0"
32
32
  },
33
33
  "scripts": {