effect 3.22.1 → 3.22.2
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/cjs/Schema.js +1 -1
- package/dist/cjs/Schema.js.map +1 -1
- package/dist/cjs/internal/stm/tMap.js +2 -2
- package/dist/cjs/internal/stm/tMap.js.map +1 -1
- package/dist/cjs/internal/version.js +1 -1
- package/dist/esm/Schema.js +1 -1
- package/dist/esm/Schema.js.map +1 -1
- package/dist/esm/internal/stm/tMap.js +2 -2
- package/dist/esm/internal/stm/tMap.js.map +1 -1
- package/dist/esm/internal/version.js +1 -1
- package/package.json +1 -1
- package/src/Schema.ts +1 -1
- package/src/internal/stm/tMap.ts +2 -2
- package/src/internal/version.ts +1 -1
package/dist/cjs/Schema.js
CHANGED
|
@@ -932,7 +932,7 @@ function ArrayEnsure(value) {
|
|
|
932
932
|
function NonEmptyArrayEnsure(value) {
|
|
933
933
|
return transform(Union(value, NonEmptyArray(value)), NonEmptyArray(typeSchema(asSchema(value))), {
|
|
934
934
|
strict: true,
|
|
935
|
-
decode: i => array_.isNonEmptyReadonlyArray(i) ? i : array_.of(i),
|
|
935
|
+
decode: i => Array.isArray(i) && array_.isNonEmptyReadonlyArray(i) ? i : array_.of(i),
|
|
936
936
|
encode: a => a.length === 1 ? a[0] : a
|
|
937
937
|
});
|
|
938
938
|
}
|