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 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 of type "${typeof toCheck}"`;
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.124",
2
+ "version": "1.0.126",
3
3
  "name": "xdbc",
4
4
  "scripts": {
5
5
  "docs": "typedoc",
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: unknown | undefined | null) => boolean | string;
262
+ check: (toCheck: object | undefined | null) => boolean | string;
263
263
  }>
264
- | { check: (toCheck: unknown | undefined | null) => boolean | string },
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 of type "${typeof toCheck}"`;
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;
package/tsconfig.json CHANGED
@@ -7,7 +7,9 @@
7
7
  "esModuleInterop": true,
8
8
  "module": "es6",
9
9
  "moduleResolution": "node",
10
- "typeRoots": []
10
+ "typeRoots": [],
11
+ "noImplicitAny": false,
12
+ "strictNullChecks": false,
11
13
  },
12
14
 
13
15
  "include": [