@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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamkeel/wasm",
3
- "version": "0.41.0",
3
+ "version": "0.42.0",
4
4
  "description": "Provides wasm binaries for the Keel CLI",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {