xdbc 1.0.122 → 1.0.124

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
@@ -17,8 +17,8 @@ export class ZOD extends DBC {
17
17
  // biome-ignore lint/suspicious/noExplicitAny: In order to perform an "instanceof" check.
18
18
  static checkAlgorithm(toCheck, schema) {
19
19
  if (!schema.safeParse(toCheck).success) {
20
- console.log(schema);
21
- return `Value has to correspond to "${z.toJSONSchema(schema)}" but is of type "${typeof toCheck}"`;
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}"`;
22
22
  }
23
23
  return true;
24
24
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.122",
2
+ "version": "1.0.124",
3
3
  "name": "xdbc",
4
4
  "scripts": {
5
5
  "docs": "typedoc",
package/src/DBC/ZOD.ts CHANGED
@@ -17,8 +17,8 @@ export class ZOD extends DBC {
17
17
  // biome-ignore lint/suspicious/noExplicitAny: In order to perform an "instanceof" check.
18
18
  public static checkAlgorithm(toCheck: any, schema: z.ZodType): boolean | string {
19
19
  if (!schema.safeParse(toCheck).success) {
20
- console.log(schema)
21
- return `Value has to correspond to "${z.toJSONSchema(schema)}" but is of type "${typeof toCheck}"`;
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}"`;
22
22
  }
23
23
 
24
24
  return true;