@teamkeel/wasm 0.41.0 → 0.42.0
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/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7824,7 +7824,7 @@ var keel = () => __async(void 0, null, function* () {
|
|
|
7824
7824
|
const validate = (schemaString, opts) => __async(void 0, null, function* () {
|
|
7825
7825
|
const result = api.validate(schemaString, opts);
|
|
7826
7826
|
const { validationErrors: { Errors: errors }, ast } = result;
|
|
7827
|
-
const transformedErrors = yield errors.map((err) => transformKeys_default(err));
|
|
7827
|
+
const transformedErrors = yield (errors || []).map((err) => transformKeys_default(err));
|
|
7828
7828
|
return {
|
|
7829
7829
|
errors: transformedErrors,
|
|
7830
7830
|
ast
|