Comparing version 1.11.1 to 1.11.2
@@ -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", |
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
275901