@anatine/zod-mock
Advanced tools
Comparing version 3.9.0 to 3.10.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [3.10.0](https://github.com/anatine/zod-plugins/compare/zod-mock-3.9.0...zod-mock-3.10.0) (2023-03-22) | ||
### Features | ||
* extend native enum to support const assertion ([c70336a](https://github.com/anatine/zod-plugins/commit/c70336a16c30492b2e165f438da10528e86a4107)) | ||
## [3.9.0](https://github.com/anatine/zod-plugins/compare/zod-mock-3.8.4...zod-mock-3.9.0) (2023-02-27) | ||
@@ -7,0 +14,0 @@ |
{ | ||
"name": "@anatine/zod-mock", | ||
"version": "3.9.0", | ||
"version": "3.10.0", | ||
"description": "Zod auto-mock object generator using Faker at @faker-js/faker", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -89,3 +89,3 @@ # @anatine/zod-mock | ||
email: () => `not a email anymore`, | ||
primaryColor: () => faker.internet.color, | ||
primaryColor: () => faker.internet.color(), | ||
}, | ||
@@ -92,0 +92,0 @@ }); |
@@ -286,4 +286,3 @@ "use strict"; | ||
const { values } = zodRef._def; | ||
const value = fakerInstance.helpers.arrayElement(values); | ||
return values[value]; | ||
return fakerInstance.helpers.objectValue(values); | ||
} | ||
@@ -290,0 +289,0 @@ function parseLiteral(zodRef) { |
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
47247
476