is-kit 1.1.5 → 1.1.6

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 CHANGED
@@ -271,7 +271,10 @@ function tupleOf(...guards) {
271
271
 
272
272
  // src/core/combinators/one-of.ts
273
273
  function oneOf(...guards) {
274
- return (input) => guards.some((guard) => guard(input));
274
+ const predicates = toBooleanPredicates(
275
+ guards
276
+ );
277
+ return (input) => predicates.some((guard) => guard(input));
275
278
  }
276
279
 
277
280
  // src/core/combinators/record.ts
package/dist/index.mjs CHANGED
@@ -192,7 +192,10 @@ function tupleOf(...guards) {
192
192
 
193
193
  // src/core/combinators/one-of.ts
194
194
  function oneOf(...guards) {
195
- return (input) => guards.some((guard) => guard(input));
195
+ const predicates = toBooleanPredicates(
196
+ guards
197
+ );
198
+ return (input) => predicates.some((guard) => guard(input));
196
199
  }
197
200
 
198
201
  // src/core/combinators/record.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "is-kit",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Make 'isXXX' easier. Let's make your code type safe and more readable!",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",