@rljson/rljson 0.0.17 → 0.0.18
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/rljson.js +2 -2
- package/package.json +1 -1
package/dist/rljson.js
CHANGED
|
@@ -532,7 +532,7 @@ const exampleTypedefs = () => {
|
|
|
532
532
|
// @license
|
|
533
533
|
class BaseValidator {
|
|
534
534
|
constructor() {
|
|
535
|
-
__publicField(this, "name", "
|
|
535
|
+
__publicField(this, "name", "base");
|
|
536
536
|
}
|
|
537
537
|
async validate(rljson) {
|
|
538
538
|
return this.validateSync(rljson);
|
|
@@ -1172,7 +1172,7 @@ class Validate {
|
|
|
1172
1172
|
return result.reduce((acc, errors) => {
|
|
1173
1173
|
let hasErrors = false;
|
|
1174
1174
|
for (const key of Object.keys(errors)) {
|
|
1175
|
-
const e = Object.keys(errors[key]);
|
|
1175
|
+
const e = Object.keys(errors[key]).filter((k) => k !== "hasErrors");
|
|
1176
1176
|
if (e.length > 0) {
|
|
1177
1177
|
hasErrors = true;
|
|
1178
1178
|
break;
|