@anatine/zod-mock
Advanced tools
Comparing version 3.5.5 to 3.5.6
@@ -5,2 +5,16 @@ # Changelog | ||
### [3.5.6](https://github.com/anatine/zod-plugins/compare/zod-mock-3.5.5...zod-mock-3.5.6) (2022-07-28) | ||
### Bug Fixes | ||
* nativeEnum random pick function bias ([a082988](https://github.com/anatine/zod-plugins/commit/a0829880212bc43b858ee5ccf06fa7d9986d2479)) | ||
### [3.5.6](https://github.com/anatine/zod-plugins/compare/zod-mock-3.5.5...zod-mock-3.5.6) (2022-07-28) | ||
### Bug Fixes | ||
* nativeEnum random pick function bias ([a082988](https://github.com/anatine/zod-plugins/commit/a0829880212bc43b858ee5ccf06fa7d9986d2479)) | ||
### [3.5.5](https://github.com/anatine/zod-plugins/compare/zod-mock-3.5.4...zod-mock-3.5.5) (2022-07-26) | ||
@@ -7,0 +21,0 @@ |
{ | ||
"name": "@anatine/zod-mock", | ||
"version": "3.5.5", | ||
"version": "3.5.6", | ||
"description": "Zod auto-mock object generator using Faker at @faker-js/faker", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -218,3 +218,3 @@ "use strict"; | ||
const { values } = zodRef._def; | ||
const pick = Math.floor(Math.random() * (Object.values(values).length / 2)); | ||
const pick = Math.floor(Math.random() * (Object.values(values).length)); | ||
const key = Array.from(Object.keys(values))[pick]; | ||
@@ -221,0 +221,0 @@ return values[values[key]]; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31188