Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphcms/validation

Package Overview
Dependencies
Maintainers
6
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphcms/validation - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

dist/user.d.ts

6

CHANGELOG.md
# @graphcms/validation
## 1.6.0
### Minor Changes
- [#46](https://github.com/hygraph/validation/pull/46) [`76749bc`](https://github.com/hygraph/validation/commit/76749bca92541ed731e9a4bf9df63ac8de9df419) Thanks [@itscarlosrufo](https://github.com/itscarlosrufo)! - Add user validation
## 1.5.0

@@ -4,0 +10,0 @@

1

dist/index.d.ts

@@ -14,1 +14,2 @@ export * as authtoken from './authtoken';

export * as appValidation from './app';
export * as userValidation from './user';

41

dist/validation.js

@@ -23,3 +23,3 @@ var yup = require('yup');

var name$6 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an authentication token may not start or end with white space characters.');
var name$7 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an authentication token may not start or end with white space characters.');
var description$6 = yup__namespace.string().nullable(true);

@@ -30,3 +30,3 @@ var scope = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).oneOf(['READ', 'WRITE', 'OPEN'], "An authentication token can only be set to one of 'READ', 'WRITE' or 'OPEN'");

__proto__: null,
name: name$6,
name: name$7,
description: description$6,

@@ -313,3 +313,3 @@ scope: scope

var name$5 = yup__namespace.string().min(1, 'Enter a Name').typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true);
var name$6 = yup__namespace.string().min(1, 'Enter a Name').typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true);
var region = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true).min(1).oneOf(API_REGIONS, 'The region can only be one of these values: ${values}');

@@ -330,3 +330,3 @@ var description$2 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');

API_REGIONS: API_REGIONS,
name: name$5,
name: name$6,
region: region,

@@ -337,10 +337,10 @@ description: description$2,

var name$4 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The role name may not start or end with whitespace characters.').min(1, 'Choose a name for this role.').max(32, 'Choose an name that is shorter than 32 characters.');
var name$5 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The role name may not start or end with whitespace characters.').min(1, 'Choose a name for this role.').max(32, 'Choose an name that is shorter than 32 characters.');
var role = {
__proto__: null,
name: name$4
name: name$5
};
var name$3 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The name of a stage may not start or end with whitespace characters!').min(1, 'Enter a Name.').max(32, 'Choose a name that is shorter than 32 letters.').matches(new RegExp('^[a-zA-Z][a-zA-Z0-9_]*$'), 'Start with a letter, and use only alphanumeric characters and "_".');
var name$4 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The name of a stage may not start or end with whitespace characters!').min(1, 'Enter a Name.').max(32, 'Choose a name that is shorter than 32 letters.').matches(new RegExp('^[a-zA-Z][a-zA-Z0-9_]*$'), 'Start with a letter, and use only alphanumeric characters and "_".');
var displayName$2 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1, 'Choose a Display Name.').trim('Display names may not have leading or trailing whitespaces.');

@@ -350,3 +350,3 @@

__proto__: null,
name: name$3,
name: name$4,
displayName: displayName$2

@@ -515,3 +515,3 @@ };

var name$2 = yup__namespace.string().min(1).nullable(false).typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');
var name$3 = yup__namespace.string().min(1).nullable(false).typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');
var url = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).test('is-valid-url', 'Only valid URLs are supported!', function (value) {

@@ -535,3 +535,3 @@ return !!validUrl.isUri(value);

__proto__: null,
name: name$2,
name: name$3,
url: url,

@@ -561,7 +561,7 @@ headerKey: headerKey,

var name$1 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The view group name may not start or end with whitespace characters.').min(1, 'Choose a name for this view group.').max(32, 'Choose an name that is shorter than 32 characters.');
var name$2 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The view group name may not start or end with whitespace characters.').min(1, 'Choose a name for this view group.').max(32, 'Choose an name that is shorter than 32 characters.');
var viewGroup = {
__proto__: null,
name: name$1
name: name$2
};

@@ -637,3 +637,3 @@

var name = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an app may not start or end with white space characters.');
var name$1 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an app may not start or end with white space characters.');
var apiId = yup__namespace.string().typeError('Invalid').strict(true).min(1, 'Enter an Api Id.').max(64, 'Use an Api Id that is shorter than 64 characters.').test({

@@ -692,3 +692,3 @@ name: 'no-graphql-type',

src: urlSchema,
name: name,
name: name$1,
type: yup__namespace.string().oneOf([].concat(APP_ELEMENT_TYPES)),

@@ -717,3 +717,3 @@ description: yup__namespace.string().nullable(true),

__proto__: null,
name: name,
name: name$1,
apiId: apiId,

@@ -732,2 +732,12 @@ description: description,

var name = yup__namespace.string().min(1, 'Enter a Name').typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true).test('no-html-tags', 'HTML tags are not allowed', function (value) {
var hasHtmlTags = /<[^>]*>/g;
return !hasHtmlTags.test(value);
});
var user = {
__proto__: null,
name: name
};
exports.appValidation = app;

@@ -744,4 +754,5 @@ exports.authtoken = authtoken;

exports.stage = stage;
exports.userValidation = user;
exports.viewGroup = viewGroup;
exports.webhook = webhook;
//# sourceMappingURL=validation.js.map
import * as yup from 'yup';
var name$6 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an authentication token may not start or end with white space characters.');
var name$7 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an authentication token may not start or end with white space characters.');
var description$6 = yup.string().nullable(true);

@@ -9,3 +9,3 @@ var scope = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).oneOf(['READ', 'WRITE', 'OPEN'], "An authentication token can only be set to one of 'READ', 'WRITE' or 'OPEN'");

__proto__: null,
name: name$6,
name: name$7,
description: description$6,

@@ -292,3 +292,3 @@ scope: scope

var name$5 = yup.string().min(1, 'Enter a Name').typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true);
var name$6 = yup.string().min(1, 'Enter a Name').typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true);
var region = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true).min(1).oneOf(API_REGIONS, 'The region can only be one of these values: ${values}');

@@ -309,3 +309,3 @@ var description$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');

API_REGIONS: API_REGIONS,
name: name$5,
name: name$6,
region: region,

@@ -316,10 +316,10 @@ description: description$2,

var name$4 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The role name may not start or end with whitespace characters.').min(1, 'Choose a name for this role.').max(32, 'Choose an name that is shorter than 32 characters.');
var name$5 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The role name may not start or end with whitespace characters.').min(1, 'Choose a name for this role.').max(32, 'Choose an name that is shorter than 32 characters.');
var role = {
__proto__: null,
name: name$4
name: name$5
};
var name$3 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The name of a stage may not start or end with whitespace characters!').min(1, 'Enter a Name.').max(32, 'Choose a name that is shorter than 32 letters.').matches(new RegExp('^[a-zA-Z][a-zA-Z0-9_]*$'), 'Start with a letter, and use only alphanumeric characters and "_".');
var name$4 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The name of a stage may not start or end with whitespace characters!').min(1, 'Enter a Name.').max(32, 'Choose a name that is shorter than 32 letters.').matches(new RegExp('^[a-zA-Z][a-zA-Z0-9_]*$'), 'Start with a letter, and use only alphanumeric characters and "_".');
var displayName$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1, 'Choose a Display Name.').trim('Display names may not have leading or trailing whitespaces.');

@@ -329,3 +329,3 @@

__proto__: null,
name: name$3,
name: name$4,
displayName: displayName$2

@@ -494,3 +494,3 @@ };

var name$2 = yup.string().min(1).nullable(false).typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');
var name$3 = yup.string().min(1).nullable(false).typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');
var url = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).test('is-valid-url', 'Only valid URLs are supported!', function (value) {

@@ -514,3 +514,3 @@ return !!validUrl.isUri(value);

__proto__: null,
name: name$2,
name: name$3,
url: url,

@@ -540,7 +540,7 @@ headerKey: headerKey,

var name$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The view group name may not start or end with whitespace characters.').min(1, 'Choose a name for this view group.').max(32, 'Choose an name that is shorter than 32 characters.');
var name$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The view group name may not start or end with whitespace characters.').min(1, 'Choose a name for this view group.').max(32, 'Choose an name that is shorter than 32 characters.');
var viewGroup = {
__proto__: null,
name: name$1
name: name$2
};

@@ -616,3 +616,3 @@

var name = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an app may not start or end with white space characters.');
var name$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an app may not start or end with white space characters.');
var apiId = yup.string().typeError('Invalid').strict(true).min(1, 'Enter an Api Id.').max(64, 'Use an Api Id that is shorter than 64 characters.').test({

@@ -671,3 +671,3 @@ name: 'no-graphql-type',

src: urlSchema,
name: name,
name: name$1,
type: yup.string().oneOf([].concat(APP_ELEMENT_TYPES)),

@@ -696,3 +696,3 @@ description: yup.string().nullable(true),

__proto__: null,
name: name,
name: name$1,
apiId: apiId,

@@ -711,3 +711,13 @@ description: description,

export { app as appValidation, authtoken, component, enumeration, field, invite, locale, model, project, role, stage, viewGroup, webhook };
var name = yup.string().min(1, 'Enter a Name').typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true).test('no-html-tags', 'HTML tags are not allowed', function (value) {
var hasHtmlTags = /<[^>]*>/g;
return !hasHtmlTags.test(value);
});
var user = {
__proto__: null,
name: name
};
export { app as appValidation, authtoken, component, enumeration, field, invite, locale, model, project, role, stage, user as userValidation, viewGroup, webhook };
//# sourceMappingURL=validation.m.js.map
import * as yup from 'yup';
const name$6 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an authentication token may not start or end with white space characters.');
const name$7 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an authentication token may not start or end with white space characters.');
const description$6 = yup.string().nullable(true);

@@ -9,3 +9,3 @@ const scope = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).oneOf(['READ', 'WRITE', 'OPEN'], "An authentication token can only be set to one of 'READ', 'WRITE' or 'OPEN'");

__proto__: null,
name: name$6,
name: name$7,
description: description$6,

@@ -272,3 +272,3 @@ scope: scope

const name$5 = yup.string().min(1, 'Enter a Name').typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true);
const name$6 = yup.string().min(1, 'Enter a Name').typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true);
const region = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true).min(1).oneOf(API_REGIONS, 'The region can only be one of these values: ${values}');

@@ -289,3 +289,3 @@ const description$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');

API_REGIONS: API_REGIONS,
name: name$5,
name: name$6,
region: region,

@@ -296,10 +296,10 @@ description: description$2,

const name$4 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The role name may not start or end with whitespace characters.').min(1, 'Choose a name for this role.').max(32, 'Choose an name that is shorter than 32 characters.');
const name$5 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The role name may not start or end with whitespace characters.').min(1, 'Choose a name for this role.').max(32, 'Choose an name that is shorter than 32 characters.');
var role = {
__proto__: null,
name: name$4
name: name$5
};
const name$3 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The name of a stage may not start or end with whitespace characters!').min(1, 'Enter a Name.').max(32, 'Choose a name that is shorter than 32 letters.').matches(new RegExp('^[a-zA-Z][a-zA-Z0-9_]*$'), 'Start with a letter, and use only alphanumeric characters and "_".');
const name$4 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The name of a stage may not start or end with whitespace characters!').min(1, 'Enter a Name.').max(32, 'Choose a name that is shorter than 32 letters.').matches(new RegExp('^[a-zA-Z][a-zA-Z0-9_]*$'), 'Start with a letter, and use only alphanumeric characters and "_".');
const displayName$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1, 'Choose a Display Name.').trim('Display names may not have leading or trailing whitespaces.');

@@ -309,3 +309,3 @@

__proto__: null,
name: name$3,
name: name$4,
displayName: displayName$2

@@ -474,3 +474,3 @@ };

const name$2 = yup.string().min(1).nullable(false).typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');
const name$3 = yup.string().min(1).nullable(false).typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');
const url = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).test('is-valid-url', 'Only valid URLs are supported!', value => {

@@ -492,3 +492,3 @@ return !!validUrl.isUri(value);

__proto__: null,
name: name$2,
name: name$3,
url: url,

@@ -514,7 +514,7 @@ headerKey: headerKey,

const name$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The view group name may not start or end with whitespace characters.').min(1, 'Choose a name for this view group.').max(32, 'Choose an name that is shorter than 32 characters.');
const name$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The view group name may not start or end with whitespace characters.').min(1, 'Choose a name for this view group.').max(32, 'Choose an name that is shorter than 32 characters.');
var viewGroup = {
__proto__: null,
name: name$1
name: name$2
};

@@ -584,3 +584,3 @@

const name = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an app may not start or end with white space characters.');
const name$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an app may not start or end with white space characters.');
const apiId = yup.string().typeError('Invalid').strict(true).min(1, 'Enter an Api Id.').max(64, 'Use an Api Id that is shorter than 64 characters.').test({

@@ -631,3 +631,3 @@ name: 'no-graphql-type',

src: urlSchema,
name: name,
name: name$1,
type: yup.string().oneOf([...APP_ELEMENT_TYPES]),

@@ -656,3 +656,3 @@ description: yup.string().nullable(true),

__proto__: null,
name: name,
name: name$1,
apiId: apiId,

@@ -671,3 +671,13 @@ description: description,

export { app as appValidation, authtoken, component, enumeration, field, invite, locale, model, project, role, stage, viewGroup, webhook };
const name = yup.string().min(1, 'Enter a Name').typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true).test('no-html-tags', 'HTML tags are not allowed', value => {
const hasHtmlTags = /<[^>]*>/g;
return !hasHtmlTags.test(value);
});
var user = {
__proto__: null,
name: name
};
export { app as appValidation, authtoken, component, enumeration, field, invite, locale, model, project, role, stage, user as userValidation, viewGroup, webhook };
//# sourceMappingURL=validation.modern.js.map

@@ -26,3 +26,3 @@ (function (global, factory) {

var name$6 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an authentication token may not start or end with white space characters.');
var name$7 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an authentication token may not start or end with white space characters.');
var description$6 = yup__namespace.string().nullable(true);

@@ -33,3 +33,3 @@ var scope = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).oneOf(['READ', 'WRITE', 'OPEN'], "An authentication token can only be set to one of 'READ', 'WRITE' or 'OPEN'");

__proto__: null,
name: name$6,
name: name$7,
description: description$6,

@@ -316,3 +316,3 @@ scope: scope

var name$5 = yup__namespace.string().min(1, 'Enter a Name').typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true);
var name$6 = yup__namespace.string().min(1, 'Enter a Name').typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true);
var region = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true).min(1).oneOf(API_REGIONS, 'The region can only be one of these values: ${values}');

@@ -333,3 +333,3 @@ var description$2 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');

API_REGIONS: API_REGIONS,
name: name$5,
name: name$6,
region: region,

@@ -340,10 +340,10 @@ description: description$2,

var name$4 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The role name may not start or end with whitespace characters.').min(1, 'Choose a name for this role.').max(32, 'Choose an name that is shorter than 32 characters.');
var name$5 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The role name may not start or end with whitespace characters.').min(1, 'Choose a name for this role.').max(32, 'Choose an name that is shorter than 32 characters.');
var role = {
__proto__: null,
name: name$4
name: name$5
};
var name$3 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The name of a stage may not start or end with whitespace characters!').min(1, 'Enter a Name.').max(32, 'Choose a name that is shorter than 32 letters.').matches(new RegExp('^[a-zA-Z][a-zA-Z0-9_]*$'), 'Start with a letter, and use only alphanumeric characters and "_".');
var name$4 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The name of a stage may not start or end with whitespace characters!').min(1, 'Enter a Name.').max(32, 'Choose a name that is shorter than 32 letters.').matches(new RegExp('^[a-zA-Z][a-zA-Z0-9_]*$'), 'Start with a letter, and use only alphanumeric characters and "_".');
var displayName$2 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1, 'Choose a Display Name.').trim('Display names may not have leading or trailing whitespaces.');

@@ -353,3 +353,3 @@

__proto__: null,
name: name$3,
name: name$4,
displayName: displayName$2

@@ -518,3 +518,3 @@ };

var name$2 = yup__namespace.string().min(1).nullable(false).typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');
var name$3 = yup__namespace.string().min(1).nullable(false).typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');
var url = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).test('is-valid-url', 'Only valid URLs are supported!', function (value) {

@@ -538,3 +538,3 @@ return !!validUrl.isUri(value);

__proto__: null,
name: name$2,
name: name$3,
url: url,

@@ -564,7 +564,7 @@ headerKey: headerKey,

var name$1 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The view group name may not start or end with whitespace characters.').min(1, 'Choose a name for this view group.').max(32, 'Choose an name that is shorter than 32 characters.');
var name$2 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim('The view group name may not start or end with whitespace characters.').min(1, 'Choose a name for this view group.').max(32, 'Choose an name that is shorter than 32 characters.');
var viewGroup = {
__proto__: null,
name: name$1
name: name$2
};

@@ -640,3 +640,3 @@

var name = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an app may not start or end with white space characters.');
var name$1 = yup__namespace.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).ensure().trim('The name of an app may not start or end with white space characters.');
var apiId = yup__namespace.string().typeError('Invalid').strict(true).min(1, 'Enter an Api Id.').max(64, 'Use an Api Id that is shorter than 64 characters.').test({

@@ -695,3 +695,3 @@ name: 'no-graphql-type',

src: urlSchema,
name: name,
name: name$1,
type: yup__namespace.string().oneOf([].concat(APP_ELEMENT_TYPES)),

@@ -720,3 +720,3 @@ description: yup__namespace.string().nullable(true),

__proto__: null,
name: name,
name: name$1,
apiId: apiId,

@@ -735,2 +735,12 @@ description: description,

var name = yup__namespace.string().min(1, 'Enter a Name').typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').nullable(false).strict(true).test('no-html-tags', 'HTML tags are not allowed', function (value) {
var hasHtmlTags = /<[^>]*>/g;
return !hasHtmlTags.test(value);
});
var user = {
__proto__: null,
name: name
};
exports.appValidation = app;

@@ -747,2 +757,3 @@ exports.authtoken = authtoken;

exports.stage = stage;
exports.userValidation = user;
exports.viewGroup = viewGroup;

@@ -749,0 +760,0 @@ exports.webhook = webhook;

{
"name": "@graphcms/validation",
"version": "1.5.0",
"version": "1.6.0",
"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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc