@graphcms/validation
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -78,3 +78,3 @@ var yup = require('yup'); | ||
} | ||
if (value.length >= max) { | ||
if (!value || value.length >= max) { | ||
return yup.ValidationError("The API ID of a field may not exceed " + max + " characters.", value, ''); | ||
@@ -81,0 +81,0 @@ } |
@@ -81,3 +81,3 @@ import { string, ValidationError, boolean } from 'yup'; | ||
} | ||
if (value.length >= max) { | ||
if (!value || value.length >= max) { | ||
return ValidationError("The API ID of a field may not exceed " + max + " characters.", value, ''); | ||
@@ -123,3 +123,3 @@ } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUyxrQkFBa0IsMEJBQTJCO0FBWXRELE9BQU8sR0FBQSxDQUFJLFFBQVEsR0FBQSxDQUNkLE1BRGMsRUFBQSxDQUVkLFNBRmMsQ0FFSix3RkFGSSxDQUdkLE1BSGMsQ0FHUCxLQUhPLENBSWQsR0FKYyxDQUlWLEdBQUcsNkRBSk8sQ0FLZCxJQUxjLENBS1Q7SUFDTixNQUFNLFlBREEsQ0FBQTtJQUVOLE1BQU0sVUFBVSxPQUFPO1FBQ25CLEdBQUEsQ0FBSSxVQUFVLElBQUEsQ0FBSztRQUNuQixHQUFBLENBQUksTUFBTTtRQUNWLElBQUksT0FBQSxDQUFRLE9BQVIsQ0FBQSxFQUFBLENBQW1CLE9BQUEsQ0FBUSxPQUFSLENBQWdCLGlCQUFpQjtZQUNwRCxHQUFBLENBQUEsQ0FBQSxDQUFNO1FBQ2xCO1FBQ1EsSUFBSSxLQUFBLENBQU0sTUFBTixDQUFBLEVBQUEsQ0FBZ0IsS0FBSztZQUNyQixPQUFPLEdBQUEsQ0FBSSxlQUFKLENBQW9CLHVDQUFBLENBQUEsQ0FBQSxDQUEwQyxH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saWRhdGVkIHdpdGggc3VjY2Vzc1xyXG4gKiAudHlwZUVycm9yKDpzdHJpbmcpLT4gRW5zdXJlcyB0aGF0IHR5cGVzIG90aGVyIHRoYW4gc3RyaW5nIHJldHVybiBmYWxzZVxyXG4gKiAuZW5zdXJlKCkgICAgICAgICAgLT4gVHJhbnNmb3JtcyB0aGUgdmFsdWVzIFwidW5kZWZpbmVkXCIgYW5kIFwibnVsbFwiIGludG8gZW1wdHkgc3RyaW5nc1xyXG4gKi9cclxuZXhwb3J0IHZhciBkZXNjcmlwdGlvbiA9IHl1cFxyXG4gICAgLnN0cmluZygpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwic3RyaW5nXCIhJylcclxuICAgIC5lbnN1cmUoKTtcclxuZXhwb3J0IHZhciBpc0xpc3QgPSB5dXBcclxuICAgIC5ib29sZWFuKClcclxuICAgIC5zdHJpY3QodHJ1ZSlcclxuICAgIC50eXBlRXJyb3IoJ1RoZSBzdXBwbGllZCB2YWx1ZSBcIiR7dmFsdWV9XCIgb2YgdHlwZSBcIiR7dHlwZX1cIiBpcyBub3QgY29tcGF0aWJsZSB3aXRoIHR5cGUgXCJib29sZWFuXCIhJyk7XHJcbiJdfQ== | ||
@@ -126,0 +126,0 @@ |
@@ -85,3 +85,3 @@ (function (global, factory) { | ||
} | ||
if (value.length >= max) { | ||
if (!value || value.length >= max) { | ||
return yup.ValidationError("The API ID of a field may not exceed " + max + " characters.", value, ''); | ||
@@ -127,3 +127,3 @@ } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUyxrQ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5nXCIhJylcclxuICAgIC5lbnN1cmUoKTtcclxuZXhwb3J0IHZhciBpc0xpc3QgPSB5dXBcclxuICAgIC5ib29sZWFuKClcclxuICAgIC5zdHJpY3QodHJ1ZSlcclxuICAgIC50eXBlRXJyb3IoJ1RoZSBzdXBwbGllZCB2YWx1ZSBcIiR7dmFsdWV9XCIgb2YgdHlwZSBcIiR7dHlwZX1cIiBpcyBub3QgY29tcGF0aWJsZSB3aXRoIHR5cGUgXCJib29sZWFuXCIhJyk7XHJcbiJdfQ== | ||
@@ -130,0 +130,0 @@ |
{ | ||
"name": "@graphcms/validation", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"main": "dist/validation.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
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
587148