is-kit 1.7.2 → 1.7.3

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/README.md CHANGED
@@ -371,7 +371,7 @@ https://is-kit-docs.vercel.app/
371
371
 
372
372
  ## 👨‍💻 Development
373
373
 
374
- Requires Node 22 and pnpm 10.12.4.
374
+ Requires Node 22 and pnpm 10.33.4.
375
375
 
376
376
  - `pnpm lint`
377
377
  - `pnpm build`
package/dist/index.js CHANGED
@@ -453,7 +453,7 @@ function setOf(valueGuard) {
453
453
  var isOptionalSchemaField = define(
454
454
  // WHY: Optional fields are represented as a small tagged object so `struct`
455
455
  // can distinguish schema metadata from plain predicate functions up front.
456
- (field) => isObject(field) && field.optional === true && typeof field.guard === "function"
456
+ (field) => isObject(field) && field.optional === true && isFunction(field.guard)
457
457
  );
458
458
  var hasRequiredKeys = (obj, entries) => (
459
459
  // WHY: Required fields must be own properties; inherited values should not
package/dist/index.mjs CHANGED
@@ -354,7 +354,7 @@ function setOf(valueGuard) {
354
354
  var isOptionalSchemaField = define(
355
355
  // WHY: Optional fields are represented as a small tagged object so `struct`
356
356
  // can distinguish schema metadata from plain predicate functions up front.
357
- (field) => isObject(field) && field.optional === true && typeof field.guard === "function"
357
+ (field) => isObject(field) && field.optional === true && isFunction(field.guard)
358
358
  );
359
359
  var hasRequiredKeys = (obj, entries) => (
360
360
  // WHY: Required fields must be own properties; inherited values should not
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "is-kit",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
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",