xdbc 1.0.124 → 1.0.126
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/DBC/ZOD.js +1 -1
- package/package.json +1 -1
- package/src/DBC/AE.ts +2 -2
- package/src/DBC/COMPARISON/GREATER.ts +2 -2
- package/src/DBC/ZOD.ts +1 -1
- package/tsconfig.json +3 -1
package/dist/DBC/ZOD.js
CHANGED
|
@@ -18,7 +18,7 @@ export class ZOD extends DBC {
|
|
|
18
18
|
static checkAlgorithm(toCheck, schema) {
|
|
19
19
|
if (!schema.safeParse(toCheck).success) {
|
|
20
20
|
console.log(z.toJSONSchema(schema));
|
|
21
|
-
return `Value has to correspond to "${JSON.stringify(z.toJSONSchema(schema).properties)}" but is
|
|
21
|
+
return `Value has to correspond to "${JSON.stringify(z.toJSONSchema(schema).properties)}" but is constituted as "${JSON.stringify(toCheck)}"`;
|
|
22
22
|
}
|
|
23
23
|
return true;
|
|
24
24
|
}
|
package/package.json
CHANGED
package/src/DBC/AE.ts
CHANGED
|
@@ -259,9 +259,9 @@ export class AE extends DBC {
|
|
|
259
259
|
public constructor(
|
|
260
260
|
protected conditions:
|
|
261
261
|
| Array<{
|
|
262
|
-
check: (toCheck:
|
|
262
|
+
check: (toCheck: object | undefined | null) => boolean | string;
|
|
263
263
|
}>
|
|
264
|
-
| { check: (toCheck:
|
|
264
|
+
| { check: (toCheck: object | undefined | null) => boolean | string },
|
|
265
265
|
protected index: number | undefined = undefined,
|
|
266
266
|
protected idxEnd: number | undefined = undefined,
|
|
267
267
|
) {
|
|
@@ -22,7 +22,7 @@ export class GREATER extends COMPARISON {
|
|
|
22
22
|
return COMPARISON.POST(equivalent, false, false, path, dbc);
|
|
23
23
|
}
|
|
24
24
|
/** See {@link COMPARISON.INVARIANT }. */
|
|
25
|
-
public static INVARIANT(
|
|
25
|
+
public static override INVARIANT(
|
|
26
26
|
equivalent,
|
|
27
27
|
equalityPermitted = false,
|
|
28
28
|
invert = false,
|
|
@@ -32,7 +32,7 @@ export class GREATER extends COMPARISON {
|
|
|
32
32
|
return COMPARISON.INVARIANT(equivalent, false, false, path, dbc);
|
|
33
33
|
}
|
|
34
34
|
/** See {@link COMPARISON.constructor }. */
|
|
35
|
-
constructor(public equivalent) {
|
|
35
|
+
constructor(public override equivalent) {
|
|
36
36
|
super(equivalent, false, false);
|
|
37
37
|
}
|
|
38
38
|
}
|
package/src/DBC/ZOD.ts
CHANGED
|
@@ -18,7 +18,7 @@ export class ZOD extends DBC {
|
|
|
18
18
|
public static checkAlgorithm(toCheck: any, schema: z.ZodType): boolean | string {
|
|
19
19
|
if (!schema.safeParse(toCheck).success) {
|
|
20
20
|
console.log(z.toJSONSchema(schema))
|
|
21
|
-
return `Value has to correspond to "${JSON.stringify(z.toJSONSchema(schema).properties)}" but is
|
|
21
|
+
return `Value has to correspond to "${JSON.stringify( z.toJSONSchema(schema).properties )}" but is constituted as "${JSON.stringify( toCheck )}"`;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
return true;
|