Skip to content

Commit 9aef4bc

Browse files
committed
dist: update
1 parent b181a63 commit 9aef4bc

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
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/src/SchemaNode.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ export const SchemaNodeMethods = {
7878
return node;
7979
},
8080
createError(code, data, message) {
81+
var _a, _b, _c;
8182
let errorMessage = message;
8283
if (errorMessage === undefined) {
83-
const error = this.context.errors[code];
84+
const error = (_c = (_b = (_a = this.schema) === null || _a === void 0 ? void 0 : _a.errorMessages) === null || _b === void 0 ? void 0 : _b[code]) !== null && _c !== void 0 ? _c : this.context.errors[code];
8485
if (typeof error === "function") {
8586
return error(data);
8687
}

dist/module/src/tests/types.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { compileSchema } from "../compileSchema";
22
export function shouldReturnTypeNode(schema) {
33
const root = compileSchema(schema);
4+
// eslint-disable-next-line
45
const { node: childNode, error } = root.getNode("/test", undefined, { createSchema: true });
56
// getNode should return NodeOrError
67
}
78
export function shouldReturnTypeNodeOrUndefined(schema) {
89
const root = compileSchema(schema);
10+
// eslint-disable-next-line
911
const { node: childNode, error } = root.getNode("/test");
1012
// getNode should return OptionalNodeOrError
1113
}

0 commit comments

Comments
 (0)