From 23563c7188e089929b60f9e10721c6fc43a220ff Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 22 Jun 2023 23:06:12 +0200 Subject: Updated 15 files, added includes/maintenance/deleteUnusedAssets.php and deleted 4944 files (automated) --- .../rules/KnownFragmentNamesRule.js.flow | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 includes/external/school/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js.flow (limited to 'includes/external/school/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js.flow') diff --git a/includes/external/school/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js.flow b/includes/external/school/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js.flow deleted file mode 100644 index 0c02736..0000000 --- a/includes/external/school/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js.flow +++ /dev/null @@ -1,26 +0,0 @@ -// @flow strict -import { GraphQLError } from '../../error/GraphQLError'; - -import type { ASTVisitor } from '../../language/visitor'; - -import type { ValidationContext } from '../ValidationContext'; - -/** - * Known fragment names - * - * A GraphQL document is only valid if all `...Fragment` fragment spreads refer - * to fragments defined in the same document. - */ -export function KnownFragmentNamesRule(context: ValidationContext): ASTVisitor { - return { - FragmentSpread(node) { - const fragmentName = node.name.value; - const fragment = context.getFragment(fragmentName); - if (!fragment) { - context.reportError( - new GraphQLError(`Unknown fragment "${fragmentName}".`, node.name), - ); - } - }, - }; -} -- cgit