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.
@@ -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
  }