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 +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
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 &&
|
|
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 &&
|
|
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
|