@graphcms/validation
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -12,3 +12,3 @@ var yup = require('yup'); | ||
var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Api Id may not be empty.').min(1, 'Api Id must be at least one character long.').max(18, 'Api Id may not exceed 64 characters.').test('no-reserved-word', "Model api id may not be one of the following keywords: " + reservedModelApiIds, function (value) { | ||
var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Api Id may not be empty.').min(1, 'Api Id must be at least one character long.').max(64, 'Api Id may not exceed 64 characters.').test('no-reserved-word', "Model api id may not be one of the following keywords: " + reservedModelApiIds, function (value) { | ||
return !reservedModelApiIds.some(function (reservedWord) { | ||
@@ -31,3 +31,3 @@ return value ? reservedWord === value.toLowerCase() : false; | ||
var apiId$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The apiID of a field may not be empty!').min(1, 'Api Id must be at least one character long.').max(18, 'Api Id may not exceed 32 characters.').test('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedFieldApiIds, function (value) { | ||
var apiId$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The apiID of a field may not be empty!').min(1, 'Api Id must be at least one character long.').max(32, 'Api Id may not exceed 32 characters.').test('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedFieldApiIds, function (value) { | ||
return !reservedFieldApiIds.some(function (reservedWord) { | ||
@@ -34,0 +34,0 @@ return value ? reservedWord === value.toLowerCase() : false; |
@@ -15,3 +15,3 @@ import { string, array } from 'yup'; | ||
var apiId = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Api Id may not be empty.').min(1, 'Api Id must be at least one character long.').max(18, 'Api Id may not exceed 64 characters.').test('no-reserved-word', "Model api id may not be one of the following keywords: " + reservedModelApiIds, function (value) { | ||
var apiId = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Api Id may not be empty.').min(1, 'Api Id must be at least one character long.').max(64, 'Api Id may not exceed 64 characters.').test('no-reserved-word', "Model api id may not be one of the following keywords: " + reservedModelApiIds, function (value) { | ||
return !reservedModelApiIds.some(function (reservedWord) { | ||
@@ -25,3 +25,3 @@ return value ? reservedWord === value.toLowerCase() : false; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGVsLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxRQUpjLENBSUwsMkJBSkssQ0FLZCxHQUxjLENBS1YsR0FBRyw4Q0FMTyxDQU1kLEdBTmMsQ0FNVixJQUFJLHVDQU5NLENBT2QsSUFQYyxDQU9ULG9CQUFvQix5REFBQSxDQUFBLENBQUEsQ0FBNEQscUJBQXFCLFVBQVUsT0FBTztJQUM1SCxPQUFPLENBQUMsbUJBQUEsQ0FBb0IsSUFBcEIsQ0FBeUIsVUFBVSxjQUFjO1FBQUUsT0FBUSxLQUFBLEdBQVEsWUFBQSxDQUFBLEdBQUEsQ0FBaUIsS0FBQSxDQUFNLFdBQU4sS0FBc0I7SUFBdEg7QUFDQSxFQVRtQixDQVVkLE9BVmMsQ0FVTix1QkFBdUI7QUFTcEMsT0FBTyxHQUFBLENBQUksY0FBYyxHQUFBLENBQ3BCLE1BRG9CLEVBQUEsQ0FFcEIsU0FGb0IsQ0FFVix3RkFGVSxDQUdwQixNQUhvQixDQUdiLEtBSGEsQ0FJcEIsUUFKb0IsQ0FJWCxnREFKVyxDQUtwQixJQUxvQixDQUtmO0FBUVYsT0FBTyxHQUF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aGVyIHRoYW4gc3RyaW5nIHJldHVybiBmYWxzZVxyXG4gKiAuZW5zdXJlKCkgICAgICAgICAgLT4gVHJhbnNmb3JtcyB0aGUgdmFsdWVzIFwidW5kZWZpbmVkXCIgYW5kIFwibnVsbFwiIGludG8gZW1wdHkgc3RyaW5nc1xyXG4gKi9cclxuZXhwb3J0IHZhciBkZXNjcmlwdGlvbiA9IHl1cFxyXG4gICAgLnN0cmluZygpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwic3RyaW5nXCIhJylcclxuICAgIC5lbnN1cmUoKTtcclxuIl19 | ||
@@ -35,3 +35,3 @@ | ||
var apiId$1 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The apiID of a field may not be empty!').min(1, 'Api Id must be at least one character long.').max(18, 'Api Id may not exceed 32 characters.').test('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedFieldApiIds, function (value) { | ||
var apiId$1 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The apiID of a field may not be empty!').min(1, 'Api Id must be at least one character long.').max(32, 'Api Id may not exceed 32 characters.').test('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedFieldApiIds, function (value) { | ||
return !reservedFieldApiIds.some(function (reservedWord) { | ||
@@ -50,3 +50,3 @@ return value ? reservedWord === value.toLowerCase() : false; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQ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
@@ -19,3 +19,3 @@ (function (global, factory) { | ||
var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Api Id may not be empty.').min(1, 'Api Id must be at least one character long.').max(18, 'Api Id may not exceed 64 characters.').test('no-reserved-word', "Model api id may not be one of the following keywords: " + reservedModelApiIds, function (value) { | ||
var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Api Id may not be empty.').min(1, 'Api Id must be at least one character long.').max(64, 'Api Id may not exceed 64 characters.').test('no-reserved-word', "Model api id may not be one of the following keywords: " + reservedModelApiIds, function (value) { | ||
return !reservedModelApiIds.some(function (reservedWord) { | ||
@@ -29,3 +29,3 @@ return value ? reservedWord === value.toLowerCase() : false; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGVsLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxRQUpjLENBSUwsMkJBSkssQ0FLZCxHQUxjLENBS1YsR0FBRyw4Q0FMTyxDQU1kLEdBTmMsQ0FNVixJQUFJLHVDQU5NLENBT2QsSUFQYyxDQU9ULG9CQUFvQix5REFBQSxDQUFBLENBQUEsQ0FBNEQscUJBQXFCLFVBQVUsT0FBTztJQUM1SCxPQUFPLENBQUMsbUJBQUEsQ0FBb0IsSUFBcEIsQ0FBeUIsVUFBVSxjQUFjO1FBQUUsT0FBUSxLQUFBLEdBQVEsWUFBQSxDQUFBLEdBQUEsQ0FBaUIsS0FBQSxDQUFNLFdBQU4sS0FBc0I7SUFBdEg7QUFDQSxFQVRtQixDQVVkL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hlciBmb3IgbW9kZWwgZGVzY3JpcHRpb25zOlxyXG4gKlxyXG4gKiAuc3RyaW5nKCkgICAgICAgICAgLT4gRW5zdXJlcyB0aGF0IG9ubHkgc3RyaW5ncyBjYW4gYmUgdmFsaWRhdGVkIHdpdGggc3VjY2Vzc1xyXG4gKiAudHlwZUVycm9yKDpzdHJpbmcpLT4gRW5zdXJlcyB0aGF0IHR5cGVzIG90aGVyIHRoYW4gc3RyaW5nIHJldHVybiBmYWxzZVxyXG4gKiAuZW5zdXJlKCkgICAgICAgICAgLT4gVHJhbnNmb3JtcyB0aGUgdmFsdWVzIFwidW5kZWZpbmVkXCIgYW5kIFwibnVsbFwiIGludG8gZW1wdHkgc3RyaW5nc1xyXG4gKi9cclxuZXhwb3J0IHZhciBkZXNjcmlwdGlvbiA9IHl1cFxyXG4gICAgLnN0cmluZygpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwic3RyaW5nXCIhJylcclxuICAgIC5lbnN1cmUoKTtcclxuIl19 | ||
@@ -39,3 +39,3 @@ | ||
var apiId$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The apiID of a field may not be empty!').min(1, 'Api Id must be at least one character long.').max(18, 'Api Id may not exceed 32 characters.').test('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedFieldApiIds, function (value) { | ||
var apiId$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The apiID of a field may not be empty!').min(1, 'Api Id must be at least one character long.').max(32, 'Api Id may not exceed 32 characters.').test('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedFieldApiIds, function (value) { | ||
return !reservedFieldApiIds.some(function (reservedWord) { | ||
@@ -54,3 +54,3 @@ return value ? reservedWord === value.toLowerCase() : false; | ||
//# source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clxuICAgIC5zdHJpbmcoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuZW5zdXJlKCk7XHJcbiJdfQ== | ||
@@ -57,0 +57,0 @@ |
{ | ||
"name": "@graphcms/validation", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"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