@kalutskii/foundation 0.6.24 → 0.6.25
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 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -493,8 +493,8 @@ declare const parseQueryValue: (value: unknown) => unknown;
|
|
|
493
493
|
declare const asQuery: <T extends z.ZodTypeAny>(schema: T) => z.ZodPreprocess<T>;
|
|
494
494
|
|
|
495
495
|
/**
|
|
496
|
-
* Checks
|
|
497
|
-
*
|
|
496
|
+
* Checks whether a value is a plain record backed by `Object.prototype`.
|
|
497
|
+
* Arrays, null, dates, collections, and custom class instances are rejected.
|
|
498
498
|
*/
|
|
499
499
|
declare const isPlainObject: (value: unknown) => value is Record<string, unknown>;
|
|
500
500
|
|
package/dist/index.js
CHANGED
|
@@ -271,7 +271,7 @@ import z4 from "zod";
|
|
|
271
271
|
|
|
272
272
|
// src/zod-validation/zod-validation.utilities.ts
|
|
273
273
|
var isPlainObject = (value) => {
|
|
274
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
274
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) && Object.getPrototypeOf(value) === Object.prototype;
|
|
275
275
|
};
|
|
276
276
|
|
|
277
277
|
// src/zod-validation/zod-validation.parsing.ts
|