Skip to content

Commit ea0fbfc

Browse files
author
Sascha Goldhofer
committed
build: update dist
1 parent 46b2aa8 commit ea0fbfc

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

dist/jsonSchemaLibrary.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/module/lib/draft06/compile/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const suffixes = /(#|\/)+$/g;
2222
* @return compiled json-schema
2323
*/
2424
export default function compileSchema(draft, schemaToCompile, rootSchema = schemaToCompile, force = false) {
25-
// @ts-ignore
25+
// @ts-expect-error incomplete JsonSchema type
2626
if (schemaToCompile === true || schemaToCompile === false || schemaToCompile === undefined) {
2727
return schemaToCompile;
2828
}

dist/module/lib/utils/isEmpty.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export function isEmpty(v) {
44
switch (type) {
55
case "string":
66
case "array":
7-
// @ts-ignore
8-
return v.length === 0;
7+
// @ts-expect-error tested as array - could use ts type guard
8+
return (v === null || v === void 0 ? void 0 : v.length) === 0;
99
case "null":
1010
case "undefined":
1111
return true;

dist/module/lib/validation/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const errors = {
1515
formatURIError: createCustomError("FormatURIError"),
1616
formatURIReferenceError: createCustomError("FormatURIReferenceError"),
1717
formatURITemplateError: createCustomError("FormatURITemplateError"),
18-
formatDateError: createCustomError("FormatDateaError"),
18+
formatDateError: createCustomError("FormatDateError"),
1919
formatDateTimeError: createCustomError("FormatDateTimeError"),
2020
formatEmailError: createCustomError("FormatEmailError"),
2121
formatHostnameError: createCustomError("FormatHostnameError"),

0 commit comments

Comments
 (0)