Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@anatine/zod-mock

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anatine/zod-mock - npm Package Compare versions

Comparing version 3.9.0 to 3.10.0

7

CHANGELOG.md

@@ -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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc