@graphcms/validation
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -18,6 +18,6 @@ var yup = require('yup'); | ||
var graphQlTypeNames = ['int','float','string','boolean','id','enum','interface', | ||
var graphQlTypeNames = ['int','float','string','boolean','enum','interface', | ||
'union','fragment','type','datetime','json','mutation','subscription','scalar', | ||
'query','input','node']; | ||
var reservedNonSystemTypeNames = ['User','Search','Status','Color','Locale']; | ||
var reservedNonSystemTypeNames = ['Id','User','Search','Status','Color','Locale']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','history','versions']; | ||
@@ -24,0 +24,0 @@ var reservedModelApiIds = reservedNonSystemTypeNames; |
@@ -18,6 +18,6 @@ import { string, array, boolean } from 'yup'; | ||
var graphQlTypeNames = ['int','float','string','boolean','id','enum','interface', | ||
var graphQlTypeNames = ['int','float','string','boolean','enum','interface', | ||
'union','fragment','type','datetime','json','mutation','subscription','scalar', | ||
'query','input','node']; | ||
var reservedNonSystemTypeNames = ['User','Search','Status','Color','Locale']; | ||
var reservedNonSystemTypeNames = ['Id','User','Search','Status','Color','Locale']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','history','versions']; | ||
@@ -29,3 +29,3 @@ var reservedModelApiIds = reservedNonSystemTypeNames; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc2VydmVkV29yZHMudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sR0FBQSxDQUFJLG1CQUFtQixDQUMxQixNQUNBLFFBQ0EsU0FDQSxVQUNBLEtBQ0EsT0FDQTtJQUNBLFFBQ0EsV0FDQSxPQUNBLFdBQ0EsT0FDQSxXQUNBLGVBQ0E7SUFDQSxRQUNBLFFBQ0E7QUFFSixHQUFBLENBQUksNkJBQTZCLENBQUMsT0FBUSxTQUFVLFNBQVUsUUFBUztBQUN2RSxHQUFBLENBQUksOEJBQThCLENBQUMsS0F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gJ3NjYWxhcicsXHJcbiAgICAncXVlcnknLFxyXG4gICAgJ2lucHV0JyxcclxuICAgICdub2RlJyxcclxuXTtcclxudmFyIHJlc2VydmVkTm9uU3lzdGVtVHlwZU5hbWVzID0gWydJZCcsICdVc2VyJywgJ1NlYXJjaCcsICdTdGF0dXMnLCAnQ29sb3InLCAnTG9jYWxlJ107XHJcbnZhciByZXNlcnZlZE5vblN5c3RlbUZpZWxkTmFtZXMgPSBbJ2lkJywgJ2NyZWF0ZWRhdCcsICd1cGRhdGVkYXQnLCAnaGlzdG9yeScsICd2ZXJzaW9ucyddO1xyXG5leHBvcnQgdmFyIHJlc2VydmVkTW9kZWxBcGlJZHMgPSByZXNlcnZlZE5vblN5c3RlbVR5cGVOYW1lcztcclxuZXhwb3J0IHZhciByZXNlcnZlZEVudW1lcmF0aW9uQXBpSWRzID0gcmVzZXJ2ZWROb25TeXN0ZW1UeXBlTmFtZXM7XHJcbmV4cG9ydCB2YXIgcmVzZXJ2ZWRGaWVsZEFwaUlkcyA9IHJlc2VydmVkTm9uU3lzdGVtRmllbGROYW1lcztcclxuIl19 | ||
@@ -32,0 +32,0 @@ var apiId = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The API ID of an enumeration may not be empty.').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({ |
@@ -22,6 +22,6 @@ (function (global, factory) { | ||
var graphQlTypeNames = ['int','float','string','boolean','id','enum','interface', | ||
var graphQlTypeNames = ['int','float','string','boolean','enum','interface', | ||
'union','fragment','type','datetime','json','mutation','subscription','scalar', | ||
'query','input','node']; | ||
var reservedNonSystemTypeNames = ['User','Search','Status','Color','Locale']; | ||
var reservedNonSystemTypeNames = ['Id','User','Search','Status','Color','Locale']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','history','versions']; | ||
@@ -33,3 +33,3 @@ var reservedModelApiIds = reservedNonSystemTypeNames; | ||
//# sourceMappingURL=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RXb3Jkcy50cyhvcmlnaW5hbCkiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdmFyIGdyYXBoUWxUeXBlTmFtZXMgPSBbXHJcbiAgICAnaW50JyxcclxuICAgICdmbG9hdCcsXHJcbiAgICAnc3RyaW5nJyxcclxuICAgICdib29sZWFuJyxcclxuICAgICdlbnVtJyxcclxuICAgICdpbnRlcmZhY2UnLFxyXG4gICAgJ3VuaW9uJyxcclxuICAgICdmcmFnbWVudCcsXHJcbiAgICAndHlwZScsXHJcbiAgICAnZGF0ZXRpbWUnLFxyXG4gICAgJ2pzb24nLFxyXG4gICAgJ211dGF0aW9uJyxcclxuICAgICdzdWJzY3JpcHRpb24nLFxyXG4gICAgJ3NjYWxhcicsXHJcbiAgICAncXVlcnknLFxyXG4gICAgJ2lucHV0JyxcclxuICAgICdub2RlJyxcclxuXTtcclxudmFyIHJlc2VydmVkTm9uU3lzdGVtVHlwZU5hbWVzID0gWydJZCcsICdVc2VyJywgJ1NlYXJjaCcsICdTdGF0dXMnLCAnQ29sb3InLCAnTG9jYWxlJ107XHJcbnZhciByZXNlcnZlZE5vblN5c3RlbUZpZWxkTmFtZXMgPSBbJ2lkJywgJ2NyZWF0ZWRhdCcsICd1cGRhdGVkYXQnLCAnaGlzdG9yeScsICd2ZXJzaW9ucyddO1xyXG5leHBvcnQgdmFyIHJlc2VydmVkTW9kZWxBcGlJZHMgPSByZXNlcnZlZE5vblN5c3RlbVR5cGVOYW1lcztcclxuZXhwb3J0IHZhciByZXNlcnZlZEVudW1lcmF0aW9uQXBpSWRzID0gcmVzZXJ2ZWROb25TeXN0ZW1UeXBlTmFtZXM7XHJcbmV4cG9ydCB2YXIgcmVzZXJ2ZWRGaWVsZEFwaUlkcyA9IHJlc2VydmVkTm9uU3lzdGVtRmllbGROYW1lcztcclxuIl19 | ||
@@ -36,0 +36,0 @@ var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The API ID of an enumeration may not be empty.').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.1.4", | ||
"version": "1.1.5", | ||
"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
628626