@graphcms/validation
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -24,3 +24,4 @@ var yup = require('yup'); | ||
'RGBAHue','HEX','RGBA']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','createdby']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','createdby', | ||
'status']; | ||
var reservedModelApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
@@ -27,0 +28,0 @@ var reservedEnumerationApiIds = ['Type'].concat(reservedNonSystemTypeNames); |
@@ -24,3 +24,4 @@ import { string, boolean } from 'yup'; | ||
'RGBAHue','HEX','RGBA']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','createdby']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','createdby', | ||
'status']; | ||
var reservedModelApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
@@ -31,3 +32,3 @@ var reservedEnumerationApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc2VydmVkV29yZHMudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sR0FBQSxDQUFJLG1CQUFtQixDQUMxQixNQUNBLFFBQ0EsU0FDQSxVQUNBLE9BQ0E7SUFDQSxRQUNBLFdBQ0EsV0FDQSxPQUNBLFdBQ0EsZUFDQSxTQUNBO0lBQ0EsUUFDQTtBQUVKLEdBQUEsQ0FBSSw2QkFBNkIsQ0FDN0IsS0FDQSxPQUNBLFNBQ0EsU0FDQSxTQUNBO0lBQ0EsY0FDQSxXQUNBLGdCQUNBLFFBQ0EsYUFDQTtJQUNBLFVBQ0EsTUFDQTtBQUVKLEdBQUEsQ0FBSSw4QkFBOEIsQ0FBQyxLQUFNLFlBQWEsWUFBYSxXQUFZO0FBQy9FLE9BQU8sR0FBQSxDQUFJLHNCQUFzQixDQUFD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lvbnMnLFxyXG4gICAgJ2NyZWF0ZWRieScsXHJcbiAgICAnc3RhdHVzJyxcclxuXTtcclxuZXhwb3J0IHZhciByZXNlcnZlZE1vZGVsQXBpSWRzID0gWydUeXBlJ10uY29uY2F0KHJlc2VydmVkTm9uU3lzdGVtVHlwZU5hbWVzKTtcclxuZXhwb3J0IHZhciByZXNlcnZlZEVudW1lcmF0aW9uQXBpSWRzID0gWydUeXBlJ10uY29uY2F0KHJlc2VydmVkTm9uU3lzdGVtVHlwZU5hbWVzKTtcclxuZXhwb3J0IHZhciByZXNlcnZlZEZpZWxkQXBpSWRzID0gcmVzZXJ2ZWROb25TeXN0ZW1GaWVsZE5hbWVzO1xyXG4iXX0= | ||
@@ -34,0 +35,0 @@ var apiId = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').min(1, 'Enter an Api Id.').max(64, 'Use an Api Id that is shorter than 64 characters.').test({ |
@@ -28,3 +28,4 @@ (function (global, factory) { | ||
'RGBAHue','HEX','RGBA']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','createdby']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','createdby', | ||
'status']; | ||
var reservedModelApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
@@ -35,3 +36,3 @@ var reservedEnumerationApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc2VydmVkV29yZHMudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sR0FBQSxDQUFJLG1CQUFtQixDQUMxQixNQUNBLFFBQ0EsU0FDQSxVQUNBLE9BQ0E7SUFDQSxRQUNBLFdBQ0EsV0FDQSxPQUNBLFdBQ0EsZUFDQSxTQUNBO0lBQ0EsUUFDQTtBQUVKLEdBQUEsQ0FBSSw2QkFBNkIsQ0FDN0IsS0FDQSx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xuICAgICdSR0JBSHVlJyxcclxuICAgICdIRVgnLFxyXG4gICAgJ1JHQkEnLFxyXG5dO1xyXG52YXIgcmVzZXJ2ZWROb25TeXN0ZW1GaWVsZE5hbWVzID0gW1xyXG4gICAgJ2lkJyxcclxuICAgICdjcmVhdGVkYXQnLFxyXG4gICAgJ3VwZGF0ZWRhdCcsXHJcbiAgICAndmVyc2lvbnMnLFxyXG4gICAgJ2NyZWF0ZWRieScsXHJcbiAgICAnc3RhdHVzJyxcclxuXTtcclxuZXhwb3J0IHZhciByZXNlcnZlZE1vZGVsQXBpSWRzID0gWydUeXBlJ10uY29uY2F0KHJlc2VydmVkTm9uU3lzdGVtVHlwZU5hbWVzKTtcclxuZXhwb3J0IHZhciByZXNlcnZlZEVudW1lcmF0aW9uQXBpSWRzID0gWydUeXBlJ10uY29uY2F0KHJlc2VydmVkTm9uU3lzdGVtVHlwZU5hbWVzKTtcclxuZXhwb3J0IHZhciByZXNlcnZlZEZpZWxkQXBpSWRzID0gcmVzZXJ2ZWROb25TeXN0ZW1GaWVsZE5hbWVzO1xyXG4iXX0= | ||
@@ -38,0 +39,0 @@ var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').min(1, 'Enter an Api Id.').max(64, 'Use an Api Id that is shorter than 64 characters.').test({ |
{ | ||
"name": "@graphcms/validation", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"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
1139
155676
4
91