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.1 to 1.11.2

2

lib/src/types/array.js

@@ -97,3 +97,3 @@ "use strict";

_this.max = function (maxLength, message) {
return _this._refinement(__assign({ check: function (data) { return data.length >= maxLength; }, code: ZodError_1.ZodErrorCode.too_big, maximum: maxLength, type: 'array', inclusive: true }, (typeof message === 'string' ? { message: message } : message)));
return _this._refinement(__assign({ check: function (data) { return data.length <= maxLength; }, code: ZodError_1.ZodErrorCode.too_big, maximum: maxLength, type: 'array', inclusive: true }, (typeof message === 'string' ? { message: message } : message)));
};

@@ -100,0 +100,0 @@ _this.length = function (len, message) { return _this.min(len, { message: message }).max(len, { message: message }); };

{
"name": "zod",
"version": "1.11.1",
"version": "1.11.2",
"description": "TypeScript-first schema declaration and validation library with static type inference",

@@ -42,4 +42,4 @@ "main": "./lib/src/index.js",

"lint": "tslint -p tsconfig.json",
"test": "jest --config jestconfig.json --coverage && yarn run badge",
"testone": "jest --config jestconfig.json ",
"test": "jest --coverage && yarn run badge",
"testone": "jest",
"badge": "make-coverage-badge --output-path ./coverage.svg",

@@ -46,0 +46,0 @@ "prepublishOnly": "npm run build",

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