@aeriajs/validation 0.0.187 → 0.0.189
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.d.ts +1 -1
- package/dist/validate.js +1 -1
- package/package.json +6 -6
package/dist/validate.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare const validate: <TWhat, const TJsonSchema extends Property | Desc
|
|
|
34
34
|
} | {
|
|
35
35
|
readonly _tag: "Result";
|
|
36
36
|
readonly error: undefined;
|
|
37
|
-
readonly result: InferSchema<TJsonSchema
|
|
37
|
+
readonly result: InferSchema<TJsonSchema>;
|
|
38
38
|
};
|
|
39
39
|
export declare const validateWithRefs: <TWhat, const TJsonSchema extends Property | Description>(what: TWhat | undefined, schema: TJsonSchema, options?: ValidateOptions) => Promise<{
|
|
40
40
|
readonly _tag: "Error";
|
package/dist/validate.js
CHANGED
|
@@ -54,7 +54,7 @@ export const validateProperty = (what, property, options = {}) => {
|
|
|
54
54
|
if (what === null || what === undefined) {
|
|
55
55
|
return Result.result(what);
|
|
56
56
|
}
|
|
57
|
-
if ('
|
|
57
|
+
if ('type' in property && property.type === 'getter') {
|
|
58
58
|
return Result.result(undefined);
|
|
59
59
|
}
|
|
60
60
|
const expectedType = getPropertyType(property);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/validation",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.189",
|
|
5
5
|
"description": "## Installation",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"@aeriajs/common": "link:../common",
|
|
25
25
|
"@aeriajs/entrypoint": "link:../entrypoint",
|
|
26
26
|
"@aeriajs/types": "link:../types",
|
|
27
|
-
"mongodb": "^
|
|
27
|
+
"mongodb": "^7.1.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@aeriajs/common": "^0.0.
|
|
31
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
32
|
-
"@aeriajs/types": "^0.0.
|
|
33
|
-
"mongodb": "^
|
|
30
|
+
"@aeriajs/common": "^0.0.165",
|
|
31
|
+
"@aeriajs/entrypoint": "^0.0.173",
|
|
32
|
+
"@aeriajs/types": "^0.0.139",
|
|
33
|
+
"mongodb": "^7.1.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"test": "vitest run",
|