@aeriajs/validation 0.0.97 → 0.0.98
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 +0 -3
- package/dist/validate.mjs +0 -3
- package/package.json +3 -3
package/dist/validate.js
CHANGED
|
@@ -87,9 +87,6 @@ const validateProperty = (propName, what, property, options = {}) => {
|
|
|
87
87
|
if (expectedType === 'datetime' && what instanceof Date) {
|
|
88
88
|
return types_1.Result.result(what);
|
|
89
89
|
}
|
|
90
|
-
if (expectedType === 'boolean' && !what) {
|
|
91
|
-
return types_1.Result.result(what);
|
|
92
|
-
}
|
|
93
90
|
if ('$ref' in property && typeof what === 'string') {
|
|
94
91
|
if (/^[0-9a-fA-F]{24}$/.test(what)) {
|
|
95
92
|
return types_1.Result.result(what);
|
package/dist/validate.mjs
CHANGED
|
@@ -78,9 +78,6 @@ export const validateProperty = (propName, what, property, options = {}) => {
|
|
|
78
78
|
if (expectedType === "datetime" && what instanceof Date) {
|
|
79
79
|
return Result.result(what);
|
|
80
80
|
}
|
|
81
|
-
if (expectedType === "boolean" && !what) {
|
|
82
|
-
return Result.result(what);
|
|
83
|
-
}
|
|
84
81
|
if ("$ref" in property && typeof what === "string") {
|
|
85
82
|
if (/^[0-9a-fA-F]{24}$/.test(what)) {
|
|
86
83
|
return Result.result(what);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/validation",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.98",
|
|
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.
|
|
30
|
-
"@aeriajs/types": "^0.0.
|
|
29
|
+
"@aeriajs/common": "^0.0.95",
|
|
30
|
+
"@aeriajs/types": "^0.0.81"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"test": "vitest run",
|