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.5.5 to 3.5.6

14

CHANGELOG.md

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

2

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

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