@graphcms/validation
Advanced tools
Comparing version 1.3.16 to 1.3.17
@@ -264,3 +264,3 @@ var yup = require('yup'); | ||
exclusive: false | ||
}).matches(/^[a-zA-Z][a-zA-Z0-9_]+$/, 'Start with a letter, and use only alphanumeric characters or underscores.'); | ||
}).matches(/^[a-zA-Z][a-zA-Z0-9_]*$/, 'Start with a letter, and use only alphanumeric characters or underscores.'); | ||
var displayName$4 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').min(1, 'Enter a Display Name.').trim('The display name may not have leading or trailing whitespaces.'); | ||
@@ -267,0 +267,0 @@ |
@@ -267,7 +267,7 @@ import { string, boolean, array, object } from 'yup'; | ||
exclusive: false | ||
}).matches(/^[a-zA-Z][a-zA-Z0-9_]+$/, 'Start with a letter, and use only alphanumeric characters or underscores.'); | ||
}).matches(/^[a-zA-Z][a-zA-Z0-9_]*$/, 'Start with a letter, and use only alphanumeric characters or underscores.'); | ||
var displayName$4 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').min(1, 'Enter a Display Name.').trim('The display name may not have leading or trailing whitespaces.'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxvY2FsZS50cyhvcmlnaW5hbCkiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsWUFBWSxTQUFTO0FBQ3JCLFFBQVMsdUJBQXdCO0FBQ2pDLE9BQU8sR0FBQSxDQUFJLFFBQVEsR0FBQSxDQUNkLE1BRGMsRUFBQSxDQUVkLFNBRmMsQ0FFSix3RkFGSSxDQUdkLEdBSGMsQ0FHVixHQUFHLG1CQUhPLENBSWQsR0FKYyxDQUlWLElBQUksb0RBSk0sQ0FLZCxJQUxjLENBS1Q7SUFDTixNQUFNLGlCQURBLENBQUE7SUFFTixNQUFNLFVBQVUsT0FBTztRQUNuQixPQUFPLENBQUMsZ0JBQUEsQ0FBaUIsSUFBakIsQ0FBc0IsVUFBVSxjQU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JhY3RlcnMuJylcclxuICAgIC50ZXN0KHtcclxuICAgIG5hbWU6ICduby1ncmFwaHFsLXR5cGUnLFxyXG4gICAgdGVzdDogZnVuY3Rpb24gKHZhbHVlKSB7XHJcbiAgICAgICAgcmV0dXJuICFncmFwaFFsVHlwZU5hbWVzLnNvbWUoZnVuY3Rpb24gKHJlc2VydmVkV29yZCkgeyByZXR1cm4gKHZhbHVlID8gcmVzZXJ2ZWRXb3JkID09PSB2YWx1ZS50b0xvd2VyQ2FzZSgpIDogZmFsc2UpOyB9KTtcclxuICAgIH0sXHJcbiAgICBtZXNzYWdlOiAnXCIke3ZhbHVlfVwiIGlzIGEgcmVzdHJpY3RlZCB3b3JkIGFuZCBjYW5ub3QgYmUgdXNlZCBoZXJlLicsXHJcbiAgICBleGNsdXNpdmU6IGZhbHNlLFxyXG59KVxyXG4gICAgLm1hdGNoZXMoL15bYS16QS1aXVthLXpBLVowLTlfXSokLywgJ1N0YXJ0IHdpdGggYSBsZXR0ZXIsIGFuZCB1c2Ugb25seSBhbHBoYW51bWVyaWMgY2hhcmFjdGVycyBvciB1bmRlcnNjb3Jlcy4nKTtcclxuZXhwb3J0IHZhciBkaXNwbGF5TmFtZSA9IHl1cFxyXG4gICAgLnN0cmluZygpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwic3RyaW5nXCIhJylcclxuICAgIC5taW4oMSwgJ0VudGVyIGEgRGlzcGxheSBOYW1lLicpXHJcbiAgICAudHJpbSgnVGhlIGRpc3BsYXkgbmFtZSBtYXkgbm90IGhhdmUgbGVhZGluZyBvciB0cmFpbGluZyB3aGl0ZXNwYWNlcy4nKTtcclxuIl19 | ||
@@ -274,0 +274,0 @@ |
@@ -271,7 +271,7 @@ (function (global, factory) { | ||
exclusive: false | ||
}).matches(/^[a-zA-Z][a-zA-Z0-9_]+$/, 'Start with a letter, and use only alphanumeric characters or underscores.'); | ||
}).matches(/^[a-zA-Z][a-zA-Z0-9_]*$/, 'Start with a letter, and use only alphanumeric characters or underscores.'); | ||
var displayName$4 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').min(1, 'Enter a Display Name.').trim('The display name may not have leading or trailing whitespaces.'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxvY2FsZS50cyhvcmlnaW5hbCkiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsWUFBWSxTQUFTO0FBQ3JCLFFBQVMsdUJBQXdCO0FBQ2pDLE9BQU8sR0FBQSxDQUFJLFFBQVEsR0FBQSxDQUNkLE1BRGMsRUFBQSxDQUVkLFNBRmMsQ0FFSix3RkFGSSxDQUdkLEdBSGMsQ0FHVixHQUFHLG1CQUhPLENBSWQsR0FKYyxDQUlWLElBQUksb0RBSk0sQ0FLZCxJQUxjLENBS1Q7SUFDTixNQUFNLGlCQURBLENBQUE7SUFFTixNQUFNLFVBQVUsT0FBTztRQUNuQixPQUFPLENBQUMsZ0JBQUEsQ0FBaUIsSUFBakIsQ0FBc0IsVUFBVSxjQUFjO1lBQUUsT0FBUSxLQUFBLEdBQVEsWUFBQSxDQUFBLEdBQUEsQ0FBaUIsS0FBQSxDQUFNLFdBQU4sS0FBc0I7UUFBdkg7SUFDQSxDQUpVLENBQUE7SUFLTixTQUFTLDBEQUxILENBQUE7SUFNTixXQUFXO0VBWEksQ0FhZCxPQWJjLENBYU4sMkJBQTJCO0FBQ3hDLE9BQU8sR0FBQSxDQUFJLGNBQWMsR0FBQSxDQUNwQixNQURvQixFQUFBLENBRXBCLFNBRm9CLENBRVYsd0ZBRlUsQ0FHcEIsR0FIb0IsQ0FHaEIsR0FBRyx3QkFIYSxDQUlwQixJQUpvQixDQUlmO0FBcEJWIiwiZmlsZSI6ImxvY2FsZS50cyh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QgYmUgdXNlZCBoZXJlLicsXHJcbiAgICBleGNsdXNpdmU6IGZhbHNlLFxyXG59KVxyXG4gICAgLm1hdGNoZXMoL15bYS16QS1aXVthLXpBLVowLTlfXSokLywgJ1N0YXJ0IHdpdGggYSBsZXR0ZXIsIGFuZCB1c2Ugb25seSBhbHBoYW51bWVyaWMgY2hhcmFjdGVycyBvciB1bmRlcnNjb3Jlcy4nKTtcclxuZXhwb3J0IHZhciBkaXNwbGF5TmFtZSA9IHl1cFxyXG4gICAgLnN0cmluZygpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwic3RyaW5nXCIhJylcclxuICAgIC5taW4oMSwgJ0VudGVyIGEgRGlzcGxheSBOYW1lLicpXHJcbiAgICAudHJpbSgnVGhlIGRpc3BsYXkgbmFtZSBtYXkgbm90IGhhdmUgbGVhZGluZyBvciB0cmFpbGluZyB3aGl0ZXNwYWNlcy4nKTtcclxuIl19 | ||
@@ -278,0 +278,0 @@ |
{ | ||
"name": "@graphcms/validation", | ||
"version": "1.3.16", | ||
"version": "1.3.17", | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
206887
193
0