@teamkeel/wasm 0.44.0 → 0.44.1
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7821,15 +7821,15 @@ var instantiate = () => __async(void 0, null, function* () {
|
|
|
7821
7821
|
});
|
|
7822
7822
|
var keel = () => __async(void 0, null, function* () {
|
|
7823
7823
|
const api = yield instantiate();
|
|
7824
|
-
const validate = (schemaString, opts) =>
|
|
7824
|
+
const validate = (schemaString, opts) => {
|
|
7825
7825
|
const result = api.validate(schemaString, opts);
|
|
7826
7826
|
const { validationErrors: { Errors: errors }, ast } = result;
|
|
7827
|
-
const transformedErrors =
|
|
7827
|
+
const transformedErrors = (errors || []).map((err) => transformKeys_default(err));
|
|
7828
7828
|
return {
|
|
7829
7829
|
errors: transformedErrors,
|
|
7830
7830
|
ast
|
|
7831
7831
|
};
|
|
7832
|
-
}
|
|
7832
|
+
};
|
|
7833
7833
|
const format = (schemaString) => {
|
|
7834
7834
|
return api.format(schemaString);
|
|
7835
7835
|
};
|