@graphcms/validation
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -22,4 +22,3 @@ var yup = require('yup'); | ||
var reservedNonSystemTypeNames = ['Id','User','Search','Status','Color','Locale']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','publishedat', | ||
'createdby']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','createdby']; | ||
var reservedModelApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
@@ -26,0 +25,0 @@ var reservedEnumerationApiIds = ['Type'].concat(reservedNonSystemTypeNames); |
@@ -22,4 +22,3 @@ import { string, ValidationError, boolean } from 'yup'; | ||
var reservedNonSystemTypeNames = ['Id','User','Search','Status','Color','Locale']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','publishedat', | ||
'createdby']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','createdby']; | ||
var reservedModelApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
@@ -30,3 +29,3 @@ var reservedEnumerationApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc2VydmVkV29yZHMudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sR0FBQSxDQUFJLG1CQUFtQixDQUMxQixNQUNBLFFBQ0EsU0FDQSxVQUNBLE9BQ0E7SUFDQSxRQUNBLFdBQ0EsV0FDQSxPQUNBLFdBQ0EsZUFDQSxTQUNBO0lBQ0EsUUFDQTtBQUVKLEdBQUEsQ0FBSSw2QkFBNkIsQ0FBQyxLQUFNLE9BQVEsU0FBVSxTQUFVLFFBQVM7QUFDN0UsR0FBQSxDQUFJLDhCQUE4QixDQUFDLEtBQU0sWUFBYSxZQUFhLFdBQVk7SUFBZTtBQUM5RixPQUFPLEdBQUEsQ0FBSSxzQkFBc0IsQ0FBQyxPQUFELENBQVM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ltZScsXHJcbiAgICAnanNvbicsXHJcbiAgICAnbXV0YXRpb24nLFxyXG4gICAgJ3N1YnNjcmlwdGlvbicsXHJcbiAgICAnc2NhbGFyJyxcclxuICAgICdxdWVyeScsXHJcbiAgICAnaW5wdXQnLFxyXG4gICAgJ25vZGUnLFxyXG5dO1xyXG52YXIgcmVzZXJ2ZWROb25TeXN0ZW1UeXBlTmFtZXMgPSBbJ0lkJywgJ1VzZXInLCAnU2VhcmNoJywgJ1N0YXR1cycsICdDb2xvcicsICdMb2NhbGUnXTtcclxudmFyIHJlc2VydmVkTm9uU3lzdGVtRmllbGROYW1lcyA9IFsnaWQnLCAnY3JlYXRlZGF0JywgJ3VwZGF0ZWRhdCcsICd2ZXJzaW9ucycsICdjcmVhdGVkYnknXTtcclxuZXhwb3J0IHZhciByZXNlcnZlZE1vZGVsQXBpSWRzID0gWydUeXBlJ10uY29uY2F0KHJlc2VydmVkTm9uU3lzdGVtVHlwZU5hbWVzKTtcclxuZXhwb3J0IHZhciByZXNlcnZlZEVudW1lcmF0aW9uQXBpSWRzID0gWydUeXBlJ10uY29uY2F0KHJlc2VydmVkTm9uU3lzdGVtVHlwZU5hbWVzKTtcclxuZXhwb3J0IHZhciByZXNlcnZlZEZpZWxkQXBpSWRzID0gcmVzZXJ2ZWROb25TeXN0ZW1GaWVsZE5hbWVzO1xyXG4iXX0= | ||
@@ -33,0 +32,0 @@ var apiId = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').min(1, 'The API ID of an enumeration must be at least one character long.').max(64, 'The API ID of an enumeration may not exceed 64 characters.').test({ |
@@ -26,4 +26,3 @@ (function (global, factory) { | ||
var reservedNonSystemTypeNames = ['Id','User','Search','Status','Color','Locale']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','publishedat', | ||
'createdby']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','createdby']; | ||
var reservedModelApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
@@ -34,3 +33,3 @@ var reservedEnumerationApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc2VydmVkV29yZHMudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sR0FBQSxDQUFJLG1CQUFtQixDQUMxQixNQUNBLFFBQ0EsU0FDQSxVQUNBLE9BQ0E7SUFDQSxRQUNBLFdBQ0EsV0FDQSxPQUNBLFdBQ0EsZUFDQSxTQUNBO0lBQ0EsUUFDQTtBQUVKLEdBQUEsQ0FBSSw2QkFBNkIsQ0FBQyxLQUFNLE9BQVEsU0FBVSxTQUFVLFFBQVM7QUFDN0UsR0FBQSxDQUFJLDhCQUE4QixDQUFDLEtBQU0sWUFBYSxZQUFhLFdBQVk7SUFBZTtBQUM5RixPQUFPLEdBQUEsQ0FBSSxzQkFBc0IsQ0FBQyxPQUFELENBQVMsTUFBVCxDQUFnQjtBQUNqRCxPQUFPLEdBQUEsQ0FBSSw0QkFBNEIsQ0FBQyxPQUFELENBQVMsTUFBVCxDQUFnQjtBQUN2RCxPQUFPLEdBQUEsQ0FBSSxzQkFBc0I7QUF0QmpDIiwiZmlsZSI6InJlc2VydmVkV29yZHMudHMob3JpZ2luYWwpIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHZhciBncmFwaFFsVHlwZU5hbWVzID0gW1xyXG4gICAgJ2ludCcsXHJcbiAgICAnZmxvYXQnLFxyXG4gICAgJ3N0cmluZycsXHJcbiAgICAnYm9vbGVhbicsXHJcbiAgICAnZW51bScsXHJcbiAgICAnaW50ZXJmYWNlJyxcclxuICAgICd1bmlvbicsXHJcbiAgICAnZnJhZ21lbnQnLFxyXG4gICAgJ2RhdGV0aW1lJyxcclxuICAgICdqc29uJyxcclxuICAgICdtdXRhdGlvbicsXHJcbiAgICAnc3Vic2NyaXB0aW9uJyxcclxuICAg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Xhwb3J0IHZhciByZXNlcnZlZEVudW1lcmF0aW9uQXBpSWRzID0gWydUeXBlJ10uY29uY2F0KHJlc2VydmVkTm9uU3lzdGVtVHlwZU5hbWVzKTtcclxuZXhwb3J0IHZhciByZXNlcnZlZEZpZWxkQXBpSWRzID0gcmVzZXJ2ZWROb25TeXN0ZW1GaWVsZE5hbWVzO1xyXG4iXX0= | ||
@@ -37,0 +36,0 @@ var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').min(1, 'The API ID of an enumeration must be at least one character long.').max(64, 'The API ID of an enumeration may not exceed 64 characters.').test({ |
{ | ||
"name": "@graphcms/validation", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"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
587250
1129