json-schema-library 10.4.1 → 10.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-schema-library",
3
- "version": "10.4.1",
3
+ "version": "10.4.2",
4
4
  "description": "Customizable and hackable json-validator and json-schema utilities for traversal, data generation and validation",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -40,7 +40,7 @@ export const formats: Record<
40
40
  // full-date from http://tools.ietf.org/html/rfc3339#section-5.6
41
41
  const matches = data.match(matchDate);
42
42
  if (!matches) {
43
- return node.createError("format-date-time-error", { value: data, pointer, schema });
43
+ return node.createError("format-date-error", { value: data, pointer, schema });
44
44
  }
45
45
  const year = +matches[1];
46
46
  const month = +matches[2];