@graphcms/validation
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -73,2 +73,4 @@ var yup = require('yup'); | ||
test: function (value) { | ||
if (!value) | ||
return true; | ||
var options = this.options; | ||
@@ -79,3 +81,3 @@ var max = 32; | ||
} | ||
if (!value || value.length >= max) { | ||
if (value.length >= max) { | ||
return yup.ValidationError("The API ID of a field may not exceed " + max + " characters.", value, ''); | ||
@@ -82,0 +84,0 @@ } |
@@ -76,2 +76,4 @@ import { string, ValidationError, boolean } from 'yup'; | ||
test: function (value) { | ||
if (!value) | ||
return true; | ||
var options = this.options; | ||
@@ -82,3 +84,3 @@ var max = 32; | ||
} | ||
if (!value || value.length >= max) { | ||
if (value.length >= max) { | ||
return ValidationError("The API ID of a field may not exceed " + max + " characters.", value, ''); | ||
@@ -124,3 +126,3 @@ } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUyxrQkFBa0IsMEJBQTJCO0FBWXRELE9BQU8sR0FBQSxDQUFJLFFBQVEsR0FBQSxDQUNkLE1BRGMsRUFBQSxDQUVkLFNBRmMsQ0FFSix3RkFGSSxDQUdkLE1BSGMsQ0FHUCxLQUhPLENBSWQsR0FKYyxDQUlWLEdBQUcsNkRBSk8sQ0FLZCxJQUxjLENBS1Q7SUFDTixNQUFNLFlBREEsQ0FBQTtJQUVOLE1BQU0sVUFBVSxPQUFPO1FBQ25CLEdBQUEsQ0FBSSxVQUFVLElBQUEsQ0FBSztRQUNuQixHQUFBLENBQUksTUFBTTtRQUNWLElBQUksT0FBQSxDQUFRLE9BQVIsQ0FBQSxFQUFBLENBQW1CLE9BQUEsQ0FBUSxPQUFSLENBQWdCLGlCQUFpQjtZQUNwRCxHQUFBLENBQUEsQ0FBQSxDQUFNO1FBQ2xCO1FBQ1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(global, factory) { | ||
test: function (value) { | ||
if (!value) | ||
return true; | ||
var options = this.options; | ||
@@ -86,3 +88,3 @@ var max = 32; | ||
} | ||
if (!value || value.length >= max) { | ||
if (value.length >= max) { | ||
return yup.ValidationError("The API ID of a field may not exceed " + max + " characters.", value, ''); | ||
@@ -128,3 +130,3 @@ } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUyxrQkFBa0IsMEJBQTJCO0FBWXRELE9BQU8sR0FBQSxDQUFJLFFBQVEsR0FBQSxDQUNkLE1BRGMsRUFBQSxDQUVkLFNBRmMsQ0FFSix3RkFGSSxDQUdkLE1BSGMsQ0FHUCxLQUhPLENBSWQsR0FKYyxDQUlWLEdBQUcsNkRBSk8sQ0FLZCxJQUxjLENBS1Q7SUFDTixNQUFNLFlBREEsQ0FBQTtJQUVOLE1BQU0sVUFBVSxPQUFPO1FBQ25CLEdBQUEsQ0FBSSxVQUFVLElBQUEsQ0FBSztRQUNuQixHQUFBLENBQUksTUFBTTtRQUNWLElBQUksT0FBQSxDQUFRLE9BQVIsQ0FBQSxFQUFBLENBQW1CLE9BQUEsQ0FBUSxPQUFSLENBQWdCLGlCQUFpQjtZQUNwRCxHQUFBLENBQUEsQ0FBQSxDQUFNO1FBQ2xCO1FBQ1EsSUFBSSxDQUFDLEtBQUQsQ0FBQSxFQUFBLENBQVUsS0FBQSxDQUFNLE1BQU4sQ0FBQSxFQUFBLENBQWdCLEtBQUs7WUFDL0IsT0FBTyxHQUFBLENBQUksZUFBSixDQUFvQix1Q0FBQSxDQUFBLENBQUEsQ0FBMEMsR0FBMUMsQ0FBQSxDQUFBLENBQWdELGdCQUFnQixPQUFPO1FBQzlHO1FBQ1EsT0FBTztJQUNmO0VBakJtQixDQW1CZCxJQW5CY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xpZGF0ZWQgd2l0aCBzdWNjZXNzXHJcbiAqIC50eXBlRXJyb3IoOnN0cmluZyktPiBFbnN1cmVzIHRoYXQgdHlwZXMgb3RoZXIgdGhhbiBzdHJpbmcgcmV0dXJuIGZhbHNlXHJcbiAqIC5lbnN1cmUoKSAgICAgICAgICAtPiBUcmFuc2Zvcm1zIHRoZSB2YWx1ZXMgXCJ1bmRlZmluZWRcIiBhbmQgXCJudWxsXCIgaW50byBlbXB0eSBzdHJpbmdzXHJcbiAqL1xyXG5leHBvcnQgdmFyIGRlc2NyaXB0aW9uID0geXVwXHJcbiAgICAuc3RyaW5nKClcclxuICAgIC50eXBlRXJyb3IoJ1RoZSBzdXBwbGllZCB2YWx1ZSBcIiR7dmFsdWV9XCIgb2YgdHlwZSBcIiR7dHlwZX1cIiBpcyBub3QgY29tcGF0aWJsZSB3aXRoIHR5cGUgXCJzdHJpbmdcIiEnKVxyXG4gICAgLmVuc3VyZSgpO1xyXG5leHBvcnQgdmFyIGlzTGlzdCA9IHl1cFxyXG4gICAgLmJvb2xlYW4oKVxyXG4gICAgLnN0cmljdCh0cnVlKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcImJvb2xlYW5cIiEnKTtcclxuIl19 | ||
@@ -131,0 +133,0 @@ |
{ | ||
"name": "@graphcms/validation", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"main": "dist/validation.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
587366
1132