Socket
Socket
Sign inDemoInstall

zod

Package Overview
Dependencies
Maintainers
1
Versions
361
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zod - npm Package Compare versions

Comparing version 1.11.0-alpha.3 to 1.11.0-alpha.5

8

lib/src/playground.js

@@ -25,2 +25,10 @@ "use strict";

console.log(trimAndMultiply.parse(' 5 '));
var stringToNumber = z.transformer(z.string(), z.number(), function (data) { return parseFloat(data); });
var myFunc = z
.function()
.args(stringToNumber)
.returns(z.boolean())
.implement(function (num) { return num > 5; });
myFunc(8);
// myFunc("8");
//# sourceMappingURL=playground.js.map

2

package.json
{
"name": "zod",
"version": "1.11.0-alpha.3",
"version": "1.11.0-alpha.5",
"description": "TypeScript-first schema declaration and validation library with static type inference",

@@ -5,0 +5,0 @@ "main": "./lib/src/index.js",

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