@graphcms/validation
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -75,3 +75,3 @@ var yup = require('yup'); | ||
var max = 32; | ||
if (options.context && options.context.isGeneratedApiId) { | ||
if (options.context && options.context.allowLongApiIds) { | ||
max = 64; | ||
@@ -78,0 +78,0 @@ } |
@@ -78,3 +78,3 @@ import { string, ValidationError, boolean } from 'yup'; | ||
var max = 32; | ||
if (options.context && options.context.isGeneratedApiId) { | ||
if (options.context && options.context.allowLongApiIds) { | ||
max = 64; | ||
@@ -123,3 +123,3 @@ } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUyxrQkFBa0IsMEJBQTJCO0FBWXRELE9BQU8sR0FBQSxDQUFJLFFBQVEsR0FBQSxDQUNkLE1BRGMsRUFBQSxDQUVkLFNBRmMsQ0FFSix3RkFGSSxDQUdkLE1BSGMsQ0FHUCxLQUhPLENBSWQsR0FKYyxDQUlWLEdBQUcsNkRBSk8sQ0FLZCxJQUxjLENBS1Q7SUFDTixNQUFNLFlBREEsQ0FBQTtJQUVOLE1BQU0sVUFBVSxPQUFPO1FBQ25CLEdBQUEsQ0FBSSxVQUFVLElBQUEsQ0FBSztRQUNuQixHQUFBLENBQUksTUFBTTtRQUNWLElBQUksT0FBQSxDQUFRLE9BQVIsQ0FBQSxFQUFBLENBQW1CLE9BQUEsQ0FBUSxPQUFSLENBQWdCLGtCQUFrQjtZQUNyRCxHQUFBLENBQUEsQ0FBQSxDQUFNO1FBQ2xCO1FBQ1EsSUFBSSxLQUFBLENBQU0sTUFBTixDQUFBLEVBQUEsQ0FBZ0IsS0FBSztZQUNyQixPQUFPLEdBQUEsQ0FBSSxlQUFKLENBQW9CLHVDQUFBLENBQUEsQ0FBQSxDQUEwQyxHQUExQyxDQUFBLEN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RyaW5nKS0+IEVuc3VyZXMgdGhhdCB0eXBlcyBvdGhlciB0aGFuIHN0cmluZyByZXR1cm4gZmFsc2VcclxuICogLmVuc3VyZSgpICAgICAgICAgIC0+IFRyYW5zZm9ybXMgdGhlIHZhbHVlcyBcInVuZGVmaW5lZFwiIGFuZCBcIm51bGxcIiBpbnRvIGVtcHR5IHN0cmluZ3NcclxuICovXHJcbmV4cG9ydCB2YXIgZGVzY3JpcHRpb24gPSB5dXBcclxuICAgIC5zdHJpbmcoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuZW5zdXJlKCk7XHJcbmV4cG9ydCB2YXIgaXNMaXN0ID0geXVwXHJcbiAgICAuYm9vbGVhbigpXHJcbiAgICAuc3RyaWN0KHRydWUpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwiYm9vbGVhblwiIScpO1xyXG4iXX0= | ||
@@ -126,0 +126,0 @@ |
@@ -82,3 +82,3 @@ (function (global, factory) { | ||
var max = 32; | ||
if (options.context && options.context.isGeneratedApiId) { | ||
if (options.context && options.context.allowLongApiIds) { | ||
max = 64; | ||
@@ -127,3 +127,3 @@ } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUyxrQkFBa0IsMEJBQTJCO0FBWXRELE9BQU8sR0FBQSxDQUFJLFFBQVEsR0FBQSxDQU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c3RyaWN0KHRydWUpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwiYm9vbGVhblwiIScpO1xyXG4iXX0= | ||
@@ -130,0 +130,0 @@ |
{ | ||
"name": "@graphcms/validation", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"main": "dist/validation.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
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
587022