@contember/graphql-json 0.0.0-bootstrap → 2.2.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +120 -0
- package/dist/development/index.cjs +123 -0
- package/dist/development/index.cjs.map +1 -0
- package/dist/development/index.js +123 -0
- package/dist/development/index.js.map +1 -0
- package/dist/development/src/execution/collectFields.cjs +138 -0
- package/dist/development/src/execution/collectFields.cjs.map +1 -0
- package/dist/development/src/execution/collectFields.js +138 -0
- package/dist/development/src/execution/collectFields.js.map +1 -0
- package/dist/development/src/execution/complete.cjs +340 -0
- package/dist/development/src/execution/complete.cjs.map +1 -0
- package/dist/development/src/execution/complete.js +340 -0
- package/dist/development/src/execution/complete.js.map +1 -0
- package/dist/development/src/execution/context.cjs +93 -0
- package/dist/development/src/execution/context.cjs.map +1 -0
- package/dist/development/src/execution/context.js +93 -0
- package/dist/development/src/execution/context.js.map +1 -0
- package/dist/development/src/execution/directives.cjs +49 -0
- package/dist/development/src/execution/directives.cjs.map +1 -0
- package/dist/development/src/execution/directives.js +49 -0
- package/dist/development/src/execution/directives.js.map +1 -0
- package/dist/development/src/execution/execute.cjs +128 -0
- package/dist/development/src/execution/execute.cjs.map +1 -0
- package/dist/development/src/execution/execute.js +128 -0
- package/dist/development/src/execution/execute.js.map +1 -0
- package/dist/development/src/execution/fields.cjs +156 -0
- package/dist/development/src/execution/fields.cjs.map +1 -0
- package/dist/development/src/execution/fields.js +156 -0
- package/dist/development/src/execution/fields.js.map +1 -0
- package/dist/development/src/execution/introspectionResolvers.cjs +85 -0
- package/dist/development/src/execution/introspectionResolvers.cjs.map +1 -0
- package/dist/development/src/execution/introspectionResolvers.js +86 -0
- package/dist/development/src/execution/introspectionResolvers.js.map +1 -0
- package/dist/development/src/execution/values.cjs +371 -0
- package/dist/development/src/execution/values.cjs.map +1 -0
- package/dist/development/src/execution/values.js +371 -0
- package/dist/development/src/execution/values.js.map +1 -0
- package/dist/development/src/introspection/resolvers.cjs +432 -0
- package/dist/development/src/introspection/resolvers.cjs.map +1 -0
- package/dist/development/src/introspection/resolvers.js +432 -0
- package/dist/development/src/introspection/resolvers.js.map +1 -0
- package/dist/development/src/introspection/types.cjs +267 -0
- package/dist/development/src/introspection/types.cjs.map +1 -0
- package/dist/development/src/introspection/types.js +267 -0
- package/dist/development/src/introspection/types.js.map +1 -0
- package/dist/development/src/scalars/builtIn.cjs +260 -0
- package/dist/development/src/scalars/builtIn.cjs.map +1 -0
- package/dist/development/src/scalars/builtIn.js +260 -0
- package/dist/development/src/scalars/builtIn.js.map +1 -0
- package/dist/development/src/schema/buildSchema.cjs +235 -0
- package/dist/development/src/schema/buildSchema.cjs.map +1 -0
- package/dist/development/src/schema/buildSchema.js +235 -0
- package/dist/development/src/schema/buildSchema.js.map +1 -0
- package/dist/development/src/types/resolvers.cjs +15 -0
- package/dist/development/src/types/resolvers.cjs.map +1 -0
- package/dist/development/src/types/resolvers.js +15 -0
- package/dist/development/src/types/resolvers.js.map +1 -0
- package/dist/development/src/types/schema.cjs +184 -0
- package/dist/development/src/types/schema.cjs.map +1 -0
- package/dist/development/src/types/schema.js +184 -0
- package/dist/development/src/types/schema.js.map +1 -0
- package/dist/development/src/utils/enumValues.cjs +49 -0
- package/dist/development/src/utils/enumValues.cjs.map +1 -0
- package/dist/development/src/utils/enumValues.js +49 -0
- package/dist/development/src/utils/enumValues.js.map +1 -0
- package/dist/development/src/utils/helpers.cjs +122 -0
- package/dist/development/src/utils/helpers.cjs.map +1 -0
- package/dist/development/src/utils/helpers.js +122 -0
- package/dist/development/src/utils/helpers.js.map +1 -0
- package/dist/development/src/utils/path.cjs +17 -0
- package/dist/development/src/utils/path.cjs.map +1 -0
- package/dist/development/src/utils/path.js +17 -0
- package/dist/development/src/utils/path.js.map +1 -0
- package/dist/development/src/utils/schemaInterner.cjs +297 -0
- package/dist/development/src/utils/schemaInterner.cjs.map +1 -0
- package/dist/development/src/utils/schemaInterner.js +297 -0
- package/dist/development/src/utils/schemaInterner.js.map +1 -0
- package/dist/development/src/utils/toGraphQLJsSchema.cjs +130 -0
- package/dist/development/src/utils/toGraphQLJsSchema.cjs.map +1 -0
- package/dist/development/src/utils/toGraphQLJsSchema.js +130 -0
- package/dist/development/src/utils/toGraphQLJsSchema.js.map +1 -0
- package/dist/development/src/utils/typeRef.cjs +246 -0
- package/dist/development/src/utils/typeRef.cjs.map +1 -0
- package/dist/development/src/utils/typeRef.js +246 -0
- package/dist/development/src/utils/typeRef.js.map +1 -0
- package/dist/development/src/validation/TypeInfo.cjs +309 -0
- package/dist/development/src/validation/TypeInfo.cjs.map +1 -0
- package/dist/development/src/validation/TypeInfo.js +309 -0
- package/dist/development/src/validation/TypeInfo.js.map +1 -0
- package/dist/development/src/validation/ValidationContext.cjs +170 -0
- package/dist/development/src/validation/ValidationContext.cjs.map +1 -0
- package/dist/development/src/validation/ValidationContext.js +170 -0
- package/dist/development/src/validation/ValidationContext.js.map +1 -0
- package/dist/development/src/validation/helpers.cjs +233 -0
- package/dist/development/src/validation/helpers.cjs.map +1 -0
- package/dist/development/src/validation/helpers.js +233 -0
- package/dist/development/src/validation/helpers.js.map +1 -0
- package/dist/development/src/validation/rules/ExecutableDefinitionsRule.cjs +25 -0
- package/dist/development/src/validation/rules/ExecutableDefinitionsRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/ExecutableDefinitionsRule.js +25 -0
- package/dist/development/src/validation/rules/ExecutableDefinitionsRule.js.map +1 -0
- package/dist/development/src/validation/rules/FieldsOnCorrectTypeRule.cjs +80 -0
- package/dist/development/src/validation/rules/FieldsOnCorrectTypeRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/FieldsOnCorrectTypeRule.js +80 -0
- package/dist/development/src/validation/rules/FieldsOnCorrectTypeRule.js.map +1 -0
- package/dist/development/src/validation/rules/FragmentsOnCompositeTypesRule.cjs +39 -0
- package/dist/development/src/validation/rules/FragmentsOnCompositeTypesRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/FragmentsOnCompositeTypesRule.js +39 -0
- package/dist/development/src/validation/rules/FragmentsOnCompositeTypesRule.js.map +1 -0
- package/dist/development/src/validation/rules/KnownArgumentNamesRule.cjs +62 -0
- package/dist/development/src/validation/rules/KnownArgumentNamesRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/KnownArgumentNamesRule.js +62 -0
- package/dist/development/src/validation/rules/KnownArgumentNamesRule.js.map +1 -0
- package/dist/development/src/validation/rules/KnownDirectivesRule.cjs +99 -0
- package/dist/development/src/validation/rules/KnownDirectivesRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/KnownDirectivesRule.js +99 -0
- package/dist/development/src/validation/rules/KnownDirectivesRule.js.map +1 -0
- package/dist/development/src/validation/rules/KnownFragmentNamesRule.cjs +18 -0
- package/dist/development/src/validation/rules/KnownFragmentNamesRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/KnownFragmentNamesRule.js +18 -0
- package/dist/development/src/validation/rules/KnownFragmentNamesRule.js.map +1 -0
- package/dist/development/src/validation/rules/KnownTypeNamesRule.cjs +36 -0
- package/dist/development/src/validation/rules/KnownTypeNamesRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/KnownTypeNamesRule.js +36 -0
- package/dist/development/src/validation/rules/KnownTypeNamesRule.js.map +1 -0
- package/dist/development/src/validation/rules/LoneAnonymousOperationRule.cjs +25 -0
- package/dist/development/src/validation/rules/LoneAnonymousOperationRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/LoneAnonymousOperationRule.js +25 -0
- package/dist/development/src/validation/rules/LoneAnonymousOperationRule.js.map +1 -0
- package/dist/development/src/validation/rules/MaxIntrospectionDepthRule.cjs +51 -0
- package/dist/development/src/validation/rules/MaxIntrospectionDepthRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/MaxIntrospectionDepthRule.js +51 -0
- package/dist/development/src/validation/rules/MaxIntrospectionDepthRule.js.map +1 -0
- package/dist/development/src/validation/rules/NoFragmentCyclesRule.cjs +68 -0
- package/dist/development/src/validation/rules/NoFragmentCyclesRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/NoFragmentCyclesRule.js +68 -0
- package/dist/development/src/validation/rules/NoFragmentCyclesRule.js.map +1 -0
- package/dist/development/src/validation/rules/NoUndefinedVariablesRule.cjs +28 -0
- package/dist/development/src/validation/rules/NoUndefinedVariablesRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/NoUndefinedVariablesRule.js +28 -0
- package/dist/development/src/validation/rules/NoUndefinedVariablesRule.js.map +1 -0
- package/dist/development/src/validation/rules/NoUnusedFragmentsRule.cjs +39 -0
- package/dist/development/src/validation/rules/NoUnusedFragmentsRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/NoUnusedFragmentsRule.js +39 -0
- package/dist/development/src/validation/rules/NoUnusedFragmentsRule.js.map +1 -0
- package/dist/development/src/validation/rules/NoUnusedVariablesRule.cjs +36 -0
- package/dist/development/src/validation/rules/NoUnusedVariablesRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/NoUnusedVariablesRule.js +36 -0
- package/dist/development/src/validation/rules/NoUnusedVariablesRule.js.map +1 -0
- package/dist/development/src/validation/rules/OverlappingFieldsCanBeMergedRule.cjs +326 -0
- package/dist/development/src/validation/rules/OverlappingFieldsCanBeMergedRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/OverlappingFieldsCanBeMergedRule.js +326 -0
- package/dist/development/src/validation/rules/OverlappingFieldsCanBeMergedRule.js.map +1 -0
- package/dist/development/src/validation/rules/PossibleFragmentSpreadsRule.cjs +71 -0
- package/dist/development/src/validation/rules/PossibleFragmentSpreadsRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/PossibleFragmentSpreadsRule.js +71 -0
- package/dist/development/src/validation/rules/PossibleFragmentSpreadsRule.js.map +1 -0
- package/dist/development/src/validation/rules/ProvidedRequiredArgumentsRule.cjs +88 -0
- package/dist/development/src/validation/rules/ProvidedRequiredArgumentsRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/ProvidedRequiredArgumentsRule.js +88 -0
- package/dist/development/src/validation/rules/ProvidedRequiredArgumentsRule.js.map +1 -0
- package/dist/development/src/validation/rules/ScalarLeafsRule.cjs +46 -0
- package/dist/development/src/validation/rules/ScalarLeafsRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/ScalarLeafsRule.js +46 -0
- package/dist/development/src/validation/rules/ScalarLeafsRule.js.map +1 -0
- package/dist/development/src/validation/rules/SingleFieldSubscriptionsRule.cjs +51 -0
- package/dist/development/src/validation/rules/SingleFieldSubscriptionsRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/SingleFieldSubscriptionsRule.js +51 -0
- package/dist/development/src/validation/rules/SingleFieldSubscriptionsRule.js.map +1 -0
- package/dist/development/src/validation/rules/UniqueArgumentNamesRule.cjs +34 -0
- package/dist/development/src/validation/rules/UniqueArgumentNamesRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/UniqueArgumentNamesRule.js +34 -0
- package/dist/development/src/validation/rules/UniqueArgumentNamesRule.js.map +1 -0
- package/dist/development/src/validation/rules/UniqueDirectivesPerLocationRule.cjs +51 -0
- package/dist/development/src/validation/rules/UniqueDirectivesPerLocationRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/UniqueDirectivesPerLocationRule.js +51 -0
- package/dist/development/src/validation/rules/UniqueDirectivesPerLocationRule.js.map +1 -0
- package/dist/development/src/validation/rules/UniqueFragmentNamesRule.cjs +28 -0
- package/dist/development/src/validation/rules/UniqueFragmentNamesRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/UniqueFragmentNamesRule.js +28 -0
- package/dist/development/src/validation/rules/UniqueFragmentNamesRule.js.map +1 -0
- package/dist/development/src/validation/rules/UniqueInputFieldNamesRule.cjs +37 -0
- package/dist/development/src/validation/rules/UniqueInputFieldNamesRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/UniqueInputFieldNamesRule.js +37 -0
- package/dist/development/src/validation/rules/UniqueInputFieldNamesRule.js.map +1 -0
- package/dist/development/src/validation/rules/UniqueOperationNamesRule.cjs +30 -0
- package/dist/development/src/validation/rules/UniqueOperationNamesRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/UniqueOperationNamesRule.js +30 -0
- package/dist/development/src/validation/rules/UniqueOperationNamesRule.js.map +1 -0
- package/dist/development/src/validation/rules/UniqueVariableNamesRule.cjs +27 -0
- package/dist/development/src/validation/rules/UniqueVariableNamesRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/UniqueVariableNamesRule.js +27 -0
- package/dist/development/src/validation/rules/UniqueVariableNamesRule.js.map +1 -0
- package/dist/development/src/validation/rules/ValuesOfCorrectTypeRule.cjs +123 -0
- package/dist/development/src/validation/rules/ValuesOfCorrectTypeRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/ValuesOfCorrectTypeRule.js +123 -0
- package/dist/development/src/validation/rules/ValuesOfCorrectTypeRule.js.map +1 -0
- package/dist/development/src/validation/rules/VariablesAreInputTypesRule.cjs +29 -0
- package/dist/development/src/validation/rules/VariablesAreInputTypesRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/VariablesAreInputTypesRule.js +29 -0
- package/dist/development/src/validation/rules/VariablesAreInputTypesRule.js.map +1 -0
- package/dist/development/src/validation/rules/VariablesInAllowedPositionRule.cjs +63 -0
- package/dist/development/src/validation/rules/VariablesInAllowedPositionRule.cjs.map +1 -0
- package/dist/development/src/validation/rules/VariablesInAllowedPositionRule.js +63 -0
- package/dist/development/src/validation/rules/VariablesInAllowedPositionRule.js.map +1 -0
- package/dist/development/src/validation/sortValueNode.cjs +71 -0
- package/dist/development/src/validation/sortValueNode.cjs.map +1 -0
- package/dist/development/src/validation/sortValueNode.js +71 -0
- package/dist/development/src/validation/sortValueNode.js.map +1 -0
- package/dist/development/src/validation/specifiedRules.cjs +87 -0
- package/dist/development/src/validation/specifiedRules.cjs.map +1 -0
- package/dist/development/src/validation/specifiedRules.js +87 -0
- package/dist/development/src/validation/specifiedRules.js.map +1 -0
- package/dist/development/src/validation/validate.cjs +53 -0
- package/dist/development/src/validation/validate.cjs.map +1 -0
- package/dist/development/src/validation/validate.js +53 -0
- package/dist/development/src/validation/validate.js.map +1 -0
- package/dist/production/index.cjs +123 -0
- package/dist/production/index.cjs.map +1 -0
- package/dist/production/index.js +123 -0
- package/dist/production/index.js.map +1 -0
- package/dist/production/src/execution/collectFields.cjs +138 -0
- package/dist/production/src/execution/collectFields.cjs.map +1 -0
- package/dist/production/src/execution/collectFields.js +138 -0
- package/dist/production/src/execution/collectFields.js.map +1 -0
- package/dist/production/src/execution/complete.cjs +340 -0
- package/dist/production/src/execution/complete.cjs.map +1 -0
- package/dist/production/src/execution/complete.js +340 -0
- package/dist/production/src/execution/complete.js.map +1 -0
- package/dist/production/src/execution/context.cjs +93 -0
- package/dist/production/src/execution/context.cjs.map +1 -0
- package/dist/production/src/execution/context.js +93 -0
- package/dist/production/src/execution/context.js.map +1 -0
- package/dist/production/src/execution/directives.cjs +49 -0
- package/dist/production/src/execution/directives.cjs.map +1 -0
- package/dist/production/src/execution/directives.js +49 -0
- package/dist/production/src/execution/directives.js.map +1 -0
- package/dist/production/src/execution/execute.cjs +128 -0
- package/dist/production/src/execution/execute.cjs.map +1 -0
- package/dist/production/src/execution/execute.js +128 -0
- package/dist/production/src/execution/execute.js.map +1 -0
- package/dist/production/src/execution/fields.cjs +156 -0
- package/dist/production/src/execution/fields.cjs.map +1 -0
- package/dist/production/src/execution/fields.js +156 -0
- package/dist/production/src/execution/fields.js.map +1 -0
- package/dist/production/src/execution/introspectionResolvers.cjs +85 -0
- package/dist/production/src/execution/introspectionResolvers.cjs.map +1 -0
- package/dist/production/src/execution/introspectionResolvers.js +86 -0
- package/dist/production/src/execution/introspectionResolvers.js.map +1 -0
- package/dist/production/src/execution/values.cjs +371 -0
- package/dist/production/src/execution/values.cjs.map +1 -0
- package/dist/production/src/execution/values.js +371 -0
- package/dist/production/src/execution/values.js.map +1 -0
- package/dist/production/src/introspection/resolvers.cjs +432 -0
- package/dist/production/src/introspection/resolvers.cjs.map +1 -0
- package/dist/production/src/introspection/resolvers.js +432 -0
- package/dist/production/src/introspection/resolvers.js.map +1 -0
- package/dist/production/src/introspection/types.cjs +267 -0
- package/dist/production/src/introspection/types.cjs.map +1 -0
- package/dist/production/src/introspection/types.js +267 -0
- package/dist/production/src/introspection/types.js.map +1 -0
- package/dist/production/src/scalars/builtIn.cjs +260 -0
- package/dist/production/src/scalars/builtIn.cjs.map +1 -0
- package/dist/production/src/scalars/builtIn.js +260 -0
- package/dist/production/src/scalars/builtIn.js.map +1 -0
- package/dist/production/src/schema/buildSchema.cjs +235 -0
- package/dist/production/src/schema/buildSchema.cjs.map +1 -0
- package/dist/production/src/schema/buildSchema.js +235 -0
- package/dist/production/src/schema/buildSchema.js.map +1 -0
- package/dist/production/src/types/resolvers.cjs +15 -0
- package/dist/production/src/types/resolvers.cjs.map +1 -0
- package/dist/production/src/types/resolvers.js +15 -0
- package/dist/production/src/types/resolvers.js.map +1 -0
- package/dist/production/src/types/schema.cjs +184 -0
- package/dist/production/src/types/schema.cjs.map +1 -0
- package/dist/production/src/types/schema.js +184 -0
- package/dist/production/src/types/schema.js.map +1 -0
- package/dist/production/src/utils/enumValues.cjs +49 -0
- package/dist/production/src/utils/enumValues.cjs.map +1 -0
- package/dist/production/src/utils/enumValues.js +49 -0
- package/dist/production/src/utils/enumValues.js.map +1 -0
- package/dist/production/src/utils/helpers.cjs +122 -0
- package/dist/production/src/utils/helpers.cjs.map +1 -0
- package/dist/production/src/utils/helpers.js +122 -0
- package/dist/production/src/utils/helpers.js.map +1 -0
- package/dist/production/src/utils/path.cjs +17 -0
- package/dist/production/src/utils/path.cjs.map +1 -0
- package/dist/production/src/utils/path.js +17 -0
- package/dist/production/src/utils/path.js.map +1 -0
- package/dist/production/src/utils/schemaInterner.cjs +297 -0
- package/dist/production/src/utils/schemaInterner.cjs.map +1 -0
- package/dist/production/src/utils/schemaInterner.js +297 -0
- package/dist/production/src/utils/schemaInterner.js.map +1 -0
- package/dist/production/src/utils/toGraphQLJsSchema.cjs +130 -0
- package/dist/production/src/utils/toGraphQLJsSchema.cjs.map +1 -0
- package/dist/production/src/utils/toGraphQLJsSchema.js +130 -0
- package/dist/production/src/utils/toGraphQLJsSchema.js.map +1 -0
- package/dist/production/src/utils/typeRef.cjs +246 -0
- package/dist/production/src/utils/typeRef.cjs.map +1 -0
- package/dist/production/src/utils/typeRef.js +246 -0
- package/dist/production/src/utils/typeRef.js.map +1 -0
- package/dist/production/src/validation/TypeInfo.cjs +309 -0
- package/dist/production/src/validation/TypeInfo.cjs.map +1 -0
- package/dist/production/src/validation/TypeInfo.js +309 -0
- package/dist/production/src/validation/TypeInfo.js.map +1 -0
- package/dist/production/src/validation/ValidationContext.cjs +170 -0
- package/dist/production/src/validation/ValidationContext.cjs.map +1 -0
- package/dist/production/src/validation/ValidationContext.js +170 -0
- package/dist/production/src/validation/ValidationContext.js.map +1 -0
- package/dist/production/src/validation/helpers.cjs +233 -0
- package/dist/production/src/validation/helpers.cjs.map +1 -0
- package/dist/production/src/validation/helpers.js +233 -0
- package/dist/production/src/validation/helpers.js.map +1 -0
- package/dist/production/src/validation/rules/ExecutableDefinitionsRule.cjs +25 -0
- package/dist/production/src/validation/rules/ExecutableDefinitionsRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/ExecutableDefinitionsRule.js +25 -0
- package/dist/production/src/validation/rules/ExecutableDefinitionsRule.js.map +1 -0
- package/dist/production/src/validation/rules/FieldsOnCorrectTypeRule.cjs +80 -0
- package/dist/production/src/validation/rules/FieldsOnCorrectTypeRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/FieldsOnCorrectTypeRule.js +80 -0
- package/dist/production/src/validation/rules/FieldsOnCorrectTypeRule.js.map +1 -0
- package/dist/production/src/validation/rules/FragmentsOnCompositeTypesRule.cjs +39 -0
- package/dist/production/src/validation/rules/FragmentsOnCompositeTypesRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/FragmentsOnCompositeTypesRule.js +39 -0
- package/dist/production/src/validation/rules/FragmentsOnCompositeTypesRule.js.map +1 -0
- package/dist/production/src/validation/rules/KnownArgumentNamesRule.cjs +62 -0
- package/dist/production/src/validation/rules/KnownArgumentNamesRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/KnownArgumentNamesRule.js +62 -0
- package/dist/production/src/validation/rules/KnownArgumentNamesRule.js.map +1 -0
- package/dist/production/src/validation/rules/KnownDirectivesRule.cjs +99 -0
- package/dist/production/src/validation/rules/KnownDirectivesRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/KnownDirectivesRule.js +99 -0
- package/dist/production/src/validation/rules/KnownDirectivesRule.js.map +1 -0
- package/dist/production/src/validation/rules/KnownFragmentNamesRule.cjs +18 -0
- package/dist/production/src/validation/rules/KnownFragmentNamesRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/KnownFragmentNamesRule.js +18 -0
- package/dist/production/src/validation/rules/KnownFragmentNamesRule.js.map +1 -0
- package/dist/production/src/validation/rules/KnownTypeNamesRule.cjs +36 -0
- package/dist/production/src/validation/rules/KnownTypeNamesRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/KnownTypeNamesRule.js +36 -0
- package/dist/production/src/validation/rules/KnownTypeNamesRule.js.map +1 -0
- package/dist/production/src/validation/rules/LoneAnonymousOperationRule.cjs +25 -0
- package/dist/production/src/validation/rules/LoneAnonymousOperationRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/LoneAnonymousOperationRule.js +25 -0
- package/dist/production/src/validation/rules/LoneAnonymousOperationRule.js.map +1 -0
- package/dist/production/src/validation/rules/MaxIntrospectionDepthRule.cjs +51 -0
- package/dist/production/src/validation/rules/MaxIntrospectionDepthRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/MaxIntrospectionDepthRule.js +51 -0
- package/dist/production/src/validation/rules/MaxIntrospectionDepthRule.js.map +1 -0
- package/dist/production/src/validation/rules/NoFragmentCyclesRule.cjs +68 -0
- package/dist/production/src/validation/rules/NoFragmentCyclesRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/NoFragmentCyclesRule.js +68 -0
- package/dist/production/src/validation/rules/NoFragmentCyclesRule.js.map +1 -0
- package/dist/production/src/validation/rules/NoUndefinedVariablesRule.cjs +28 -0
- package/dist/production/src/validation/rules/NoUndefinedVariablesRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/NoUndefinedVariablesRule.js +28 -0
- package/dist/production/src/validation/rules/NoUndefinedVariablesRule.js.map +1 -0
- package/dist/production/src/validation/rules/NoUnusedFragmentsRule.cjs +39 -0
- package/dist/production/src/validation/rules/NoUnusedFragmentsRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/NoUnusedFragmentsRule.js +39 -0
- package/dist/production/src/validation/rules/NoUnusedFragmentsRule.js.map +1 -0
- package/dist/production/src/validation/rules/NoUnusedVariablesRule.cjs +36 -0
- package/dist/production/src/validation/rules/NoUnusedVariablesRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/NoUnusedVariablesRule.js +36 -0
- package/dist/production/src/validation/rules/NoUnusedVariablesRule.js.map +1 -0
- package/dist/production/src/validation/rules/OverlappingFieldsCanBeMergedRule.cjs +326 -0
- package/dist/production/src/validation/rules/OverlappingFieldsCanBeMergedRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/OverlappingFieldsCanBeMergedRule.js +326 -0
- package/dist/production/src/validation/rules/OverlappingFieldsCanBeMergedRule.js.map +1 -0
- package/dist/production/src/validation/rules/PossibleFragmentSpreadsRule.cjs +71 -0
- package/dist/production/src/validation/rules/PossibleFragmentSpreadsRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/PossibleFragmentSpreadsRule.js +71 -0
- package/dist/production/src/validation/rules/PossibleFragmentSpreadsRule.js.map +1 -0
- package/dist/production/src/validation/rules/ProvidedRequiredArgumentsRule.cjs +88 -0
- package/dist/production/src/validation/rules/ProvidedRequiredArgumentsRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/ProvidedRequiredArgumentsRule.js +88 -0
- package/dist/production/src/validation/rules/ProvidedRequiredArgumentsRule.js.map +1 -0
- package/dist/production/src/validation/rules/ScalarLeafsRule.cjs +46 -0
- package/dist/production/src/validation/rules/ScalarLeafsRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/ScalarLeafsRule.js +46 -0
- package/dist/production/src/validation/rules/ScalarLeafsRule.js.map +1 -0
- package/dist/production/src/validation/rules/SingleFieldSubscriptionsRule.cjs +51 -0
- package/dist/production/src/validation/rules/SingleFieldSubscriptionsRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/SingleFieldSubscriptionsRule.js +51 -0
- package/dist/production/src/validation/rules/SingleFieldSubscriptionsRule.js.map +1 -0
- package/dist/production/src/validation/rules/UniqueArgumentNamesRule.cjs +34 -0
- package/dist/production/src/validation/rules/UniqueArgumentNamesRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/UniqueArgumentNamesRule.js +34 -0
- package/dist/production/src/validation/rules/UniqueArgumentNamesRule.js.map +1 -0
- package/dist/production/src/validation/rules/UniqueDirectivesPerLocationRule.cjs +51 -0
- package/dist/production/src/validation/rules/UniqueDirectivesPerLocationRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/UniqueDirectivesPerLocationRule.js +51 -0
- package/dist/production/src/validation/rules/UniqueDirectivesPerLocationRule.js.map +1 -0
- package/dist/production/src/validation/rules/UniqueFragmentNamesRule.cjs +28 -0
- package/dist/production/src/validation/rules/UniqueFragmentNamesRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/UniqueFragmentNamesRule.js +28 -0
- package/dist/production/src/validation/rules/UniqueFragmentNamesRule.js.map +1 -0
- package/dist/production/src/validation/rules/UniqueInputFieldNamesRule.cjs +37 -0
- package/dist/production/src/validation/rules/UniqueInputFieldNamesRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/UniqueInputFieldNamesRule.js +37 -0
- package/dist/production/src/validation/rules/UniqueInputFieldNamesRule.js.map +1 -0
- package/dist/production/src/validation/rules/UniqueOperationNamesRule.cjs +30 -0
- package/dist/production/src/validation/rules/UniqueOperationNamesRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/UniqueOperationNamesRule.js +30 -0
- package/dist/production/src/validation/rules/UniqueOperationNamesRule.js.map +1 -0
- package/dist/production/src/validation/rules/UniqueVariableNamesRule.cjs +27 -0
- package/dist/production/src/validation/rules/UniqueVariableNamesRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/UniqueVariableNamesRule.js +27 -0
- package/dist/production/src/validation/rules/UniqueVariableNamesRule.js.map +1 -0
- package/dist/production/src/validation/rules/ValuesOfCorrectTypeRule.cjs +123 -0
- package/dist/production/src/validation/rules/ValuesOfCorrectTypeRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/ValuesOfCorrectTypeRule.js +123 -0
- package/dist/production/src/validation/rules/ValuesOfCorrectTypeRule.js.map +1 -0
- package/dist/production/src/validation/rules/VariablesAreInputTypesRule.cjs +29 -0
- package/dist/production/src/validation/rules/VariablesAreInputTypesRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/VariablesAreInputTypesRule.js +29 -0
- package/dist/production/src/validation/rules/VariablesAreInputTypesRule.js.map +1 -0
- package/dist/production/src/validation/rules/VariablesInAllowedPositionRule.cjs +63 -0
- package/dist/production/src/validation/rules/VariablesInAllowedPositionRule.cjs.map +1 -0
- package/dist/production/src/validation/rules/VariablesInAllowedPositionRule.js +63 -0
- package/dist/production/src/validation/rules/VariablesInAllowedPositionRule.js.map +1 -0
- package/dist/production/src/validation/sortValueNode.cjs +71 -0
- package/dist/production/src/validation/sortValueNode.cjs.map +1 -0
- package/dist/production/src/validation/sortValueNode.js +71 -0
- package/dist/production/src/validation/sortValueNode.js.map +1 -0
- package/dist/production/src/validation/specifiedRules.cjs +87 -0
- package/dist/production/src/validation/specifiedRules.cjs.map +1 -0
- package/dist/production/src/validation/specifiedRules.js +87 -0
- package/dist/production/src/validation/specifiedRules.js.map +1 -0
- package/dist/production/src/validation/validate.cjs +53 -0
- package/dist/production/src/validation/validate.cjs.map +1 -0
- package/dist/production/src/validation/validate.js +53 -0
- package/dist/production/src/validation/validate.js.map +1 -0
- package/dist/tests/buildSchema.test.d.ts +2 -0
- package/dist/tests/buildSchema.test.d.ts.map +1 -0
- package/dist/tests/builtInScalars.test.d.ts +2 -0
- package/dist/tests/builtInScalars.test.d.ts.map +1 -0
- package/dist/tests/coercion.test.d.ts +2 -0
- package/dist/tests/coercion.test.d.ts.map +1 -0
- package/dist/tests/compat/abstract.test.d.ts +7 -0
- package/dist/tests/compat/abstract.test.d.ts.map +1 -0
- package/dist/tests/compat/adapter.d.ts +216 -0
- package/dist/tests/compat/adapter.d.ts.map +1 -0
- package/dist/tests/compat/directives.test.d.ts +7 -0
- package/dist/tests/compat/directives.test.d.ts.map +1 -0
- package/dist/tests/compat/executor.test.d.ts +7 -0
- package/dist/tests/compat/executor.test.d.ts.map +1 -0
- package/dist/tests/compat/lists.test.d.ts +7 -0
- package/dist/tests/compat/lists.test.d.ts.map +1 -0
- package/dist/tests/compat/nonnull.test.d.ts +7 -0
- package/dist/tests/compat/nonnull.test.d.ts.map +1 -0
- package/dist/tests/compat/testUtils.d.ts +30 -0
- package/dist/tests/compat/testUtils.d.ts.map +1 -0
- package/dist/tests/completedResult.test.d.ts +2 -0
- package/dist/tests/completedResult.test.d.ts.map +1 -0
- package/dist/tests/deprecatedInputValues.test.d.ts +2 -0
- package/dist/tests/deprecatedInputValues.test.d.ts.map +1 -0
- package/dist/tests/execute.test.d.ts +2 -0
- package/dist/tests/execute.test.d.ts.map +1 -0
- package/dist/tests/fieldErrors.test.d.ts +2 -0
- package/dist/tests/fieldErrors.test.d.ts.map +1 -0
- package/dist/tests/getArgumentValues.test.d.ts +2 -0
- package/dist/tests/getArgumentValues.test.d.ts.map +1 -0
- package/dist/tests/inspect.test.d.ts +2 -0
- package/dist/tests/inspect.test.d.ts.map +1 -0
- package/dist/tests/introspection.test.d.ts +2 -0
- package/dist/tests/introspection.test.d.ts.map +1 -0
- package/dist/tests/introspectionOrder.test.d.ts +2 -0
- package/dist/tests/introspectionOrder.test.d.ts.map +1 -0
- package/dist/tests/memoization.test.d.ts +2 -0
- package/dist/tests/memoization.test.d.ts.map +1 -0
- package/dist/tests/operationSelection.test.d.ts +2 -0
- package/dist/tests/operationSelection.test.d.ts.map +1 -0
- package/dist/tests/prototypeNames.test.d.ts +2 -0
- package/dist/tests/prototypeNames.test.d.ts.map +1 -0
- package/dist/tests/resolverLayers.test.d.ts +2 -0
- package/dist/tests/resolverLayers.test.d.ts.map +1 -0
- package/dist/tests/scalarParsers.test.d.ts +2 -0
- package/dist/tests/scalarParsers.test.d.ts.map +1 -0
- package/dist/tests/schemaInterner.test.d.ts +2 -0
- package/dist/tests/schemaInterner.test.d.ts.map +1 -0
- package/dist/tests/tsconfig.tsbuildinfo +1 -0
- package/dist/tests/typedContext.test.d.ts +2 -0
- package/dist/tests/typedContext.test.d.ts.map +1 -0
- package/dist/tests/validation/graphqlJsDifferential.test.d.ts +2 -0
- package/dist/tests/validation/graphqlJsDifferential.test.d.ts.map +1 -0
- package/dist/tests/validation/rules/MaxIntrospectionDepthRule.test.d.ts +2 -0
- package/dist/tests/validation/rules/MaxIntrospectionDepthRule.test.d.ts.map +1 -0
- package/dist/tests/validation/rules/NoUnusedVariablesRule.test.d.ts +2 -0
- package/dist/tests/validation/rules/NoUnusedVariablesRule.test.d.ts.map +1 -0
- package/dist/tests/validation/rules/OverlappingFieldsCanBeMergedRule.test.d.ts +2 -0
- package/dist/tests/validation/rules/OverlappingFieldsCanBeMergedRule.test.d.ts.map +1 -0
- package/dist/tests/validation/rules/SingleFieldSubscriptionsRule.test.d.ts +2 -0
- package/dist/tests/validation/rules/SingleFieldSubscriptionsRule.test.d.ts.map +1 -0
- package/dist/tests/validation/rules/differential.test.d.ts +2 -0
- package/dist/tests/validation/rules/differential.test.d.ts.map +1 -0
- package/dist/tests/validation/rules/harness.d.ts +10 -0
- package/dist/tests/validation/rules/harness.d.ts.map +1 -0
- package/dist/tests/validation/validate.test.d.ts +2 -0
- package/dist/tests/validation/validate.test.d.ts.map +1 -0
- package/dist/types/execution/collectFields.d.ts +16 -0
- package/dist/types/execution/collectFields.d.ts.map +1 -0
- package/dist/types/execution/complete.d.ts +24 -0
- package/dist/types/execution/complete.d.ts.map +1 -0
- package/dist/types/execution/context.d.ts +23 -0
- package/dist/types/execution/context.d.ts.map +1 -0
- package/dist/types/execution/directives.d.ts +9 -0
- package/dist/types/execution/directives.d.ts.map +1 -0
- package/dist/types/execution/execute.d.ts +15 -0
- package/dist/types/execution/execute.d.ts.map +1 -0
- package/dist/types/execution/fields.d.ts +26 -0
- package/dist/types/execution/fields.d.ts.map +1 -0
- package/dist/types/execution/introspectionResolvers.d.ts +13 -0
- package/dist/types/execution/introspectionResolvers.d.ts.map +1 -0
- package/dist/types/execution/values.d.ts +17 -0
- package/dist/types/execution/values.d.ts.map +1 -0
- package/dist/types/index.d.ts +26 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/introspection/index.d.ts +10 -0
- package/dist/types/introspection/index.d.ts.map +1 -0
- package/dist/types/introspection/resolvers.d.ts +141 -0
- package/dist/types/introspection/resolvers.d.ts.map +1 -0
- package/dist/types/introspection/types.d.ts +80 -0
- package/dist/types/introspection/types.d.ts.map +1 -0
- package/dist/types/scalars/builtIn.d.ts +42 -0
- package/dist/types/scalars/builtIn.d.ts.map +1 -0
- package/dist/types/schema/buildSchema.d.ts +14 -0
- package/dist/types/schema/buildSchema.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/dist/types/types/execution.d.ts +72 -0
- package/dist/types/types/execution.d.ts.map +1 -0
- package/dist/types/types/resolvers.d.ts +82 -0
- package/dist/types/types/resolvers.d.ts.map +1 -0
- package/dist/types/types/schema.d.ts +227 -0
- package/dist/types/types/schema.d.ts.map +1 -0
- package/dist/types/utils/enumValues.d.ts +18 -0
- package/dist/types/utils/enumValues.d.ts.map +1 -0
- package/dist/types/utils/helpers.d.ts +45 -0
- package/dist/types/utils/helpers.d.ts.map +1 -0
- package/dist/types/utils/path.d.ts +17 -0
- package/dist/types/utils/path.d.ts.map +1 -0
- package/dist/types/utils/schemaInterner.d.ts +54 -0
- package/dist/types/utils/schemaInterner.d.ts.map +1 -0
- package/dist/types/utils/toGraphQLJsSchema.d.ts +5 -0
- package/dist/types/utils/toGraphQLJsSchema.d.ts.map +1 -0
- package/dist/types/utils/typeRef.d.ts +61 -0
- package/dist/types/utils/typeRef.d.ts.map +1 -0
- package/dist/types/validation/TypeInfo.d.ts +57 -0
- package/dist/types/validation/TypeInfo.d.ts.map +1 -0
- package/dist/types/validation/ValidationContext.d.ts +59 -0
- package/dist/types/validation/ValidationContext.d.ts.map +1 -0
- package/dist/types/validation/helpers.d.ts +47 -0
- package/dist/types/validation/helpers.d.ts.map +1 -0
- package/dist/types/validation/rules/ExecutableDefinitionsRule.d.ts +13 -0
- package/dist/types/validation/rules/ExecutableDefinitionsRule.d.ts.map +1 -0
- package/dist/types/validation/rules/FieldsOnCorrectTypeRule.d.ts +12 -0
- package/dist/types/validation/rules/FieldsOnCorrectTypeRule.d.ts.map +1 -0
- package/dist/types/validation/rules/FragmentsOnCompositeTypesRule.d.ts +13 -0
- package/dist/types/validation/rules/FragmentsOnCompositeTypesRule.d.ts.map +1 -0
- package/dist/types/validation/rules/KnownArgumentNamesRule.d.ts +12 -0
- package/dist/types/validation/rules/KnownArgumentNamesRule.d.ts.map +1 -0
- package/dist/types/validation/rules/KnownDirectivesRule.d.ts +12 -0
- package/dist/types/validation/rules/KnownDirectivesRule.d.ts.map +1 -0
- package/dist/types/validation/rules/KnownFragmentNamesRule.d.ts +12 -0
- package/dist/types/validation/rules/KnownFragmentNamesRule.d.ts.map +1 -0
- package/dist/types/validation/rules/KnownTypeNamesRule.d.ts +12 -0
- package/dist/types/validation/rules/KnownTypeNamesRule.d.ts.map +1 -0
- package/dist/types/validation/rules/LoneAnonymousOperationRule.d.ts +12 -0
- package/dist/types/validation/rules/LoneAnonymousOperationRule.d.ts.map +1 -0
- package/dist/types/validation/rules/MaxIntrospectionDepthRule.d.ts +12 -0
- package/dist/types/validation/rules/MaxIntrospectionDepthRule.d.ts.map +1 -0
- package/dist/types/validation/rules/NoFragmentCyclesRule.d.ts +13 -0
- package/dist/types/validation/rules/NoFragmentCyclesRule.d.ts.map +1 -0
- package/dist/types/validation/rules/NoUndefinedVariablesRule.d.ts +12 -0
- package/dist/types/validation/rules/NoUndefinedVariablesRule.d.ts.map +1 -0
- package/dist/types/validation/rules/NoUnusedFragmentsRule.d.ts +12 -0
- package/dist/types/validation/rules/NoUnusedFragmentsRule.d.ts.map +1 -0
- package/dist/types/validation/rules/NoUnusedVariablesRule.d.ts +12 -0
- package/dist/types/validation/rules/NoUnusedVariablesRule.d.ts.map +1 -0
- package/dist/types/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts +16 -0
- package/dist/types/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts.map +1 -0
- package/dist/types/validation/rules/PossibleFragmentSpreadsRule.d.ts +13 -0
- package/dist/types/validation/rules/PossibleFragmentSpreadsRule.d.ts.map +1 -0
- package/dist/types/validation/rules/ProvidedRequiredArgumentsRule.d.ts +12 -0
- package/dist/types/validation/rules/ProvidedRequiredArgumentsRule.d.ts.map +1 -0
- package/dist/types/validation/rules/ScalarLeafsRule.d.ts +12 -0
- package/dist/types/validation/rules/ScalarLeafsRule.d.ts.map +1 -0
- package/dist/types/validation/rules/SingleFieldSubscriptionsRule.d.ts +12 -0
- package/dist/types/validation/rules/SingleFieldSubscriptionsRule.d.ts.map +1 -0
- package/dist/types/validation/rules/UniqueArgumentNamesRule.d.ts +12 -0
- package/dist/types/validation/rules/UniqueArgumentNamesRule.d.ts.map +1 -0
- package/dist/types/validation/rules/UniqueDirectivesPerLocationRule.d.ts +12 -0
- package/dist/types/validation/rules/UniqueDirectivesPerLocationRule.d.ts.map +1 -0
- package/dist/types/validation/rules/UniqueFragmentNamesRule.d.ts +11 -0
- package/dist/types/validation/rules/UniqueFragmentNamesRule.d.ts.map +1 -0
- package/dist/types/validation/rules/UniqueInputFieldNamesRule.d.ts +12 -0
- package/dist/types/validation/rules/UniqueInputFieldNamesRule.d.ts.map +1 -0
- package/dist/types/validation/rules/UniqueOperationNamesRule.d.ts +11 -0
- package/dist/types/validation/rules/UniqueOperationNamesRule.d.ts.map +1 -0
- package/dist/types/validation/rules/UniqueVariableNamesRule.d.ts +11 -0
- package/dist/types/validation/rules/UniqueVariableNamesRule.d.ts.map +1 -0
- package/dist/types/validation/rules/ValuesOfCorrectTypeRule.d.ts +12 -0
- package/dist/types/validation/rules/ValuesOfCorrectTypeRule.d.ts.map +1 -0
- package/dist/types/validation/rules/VariablesAreInputTypesRule.d.ts +12 -0
- package/dist/types/validation/rules/VariablesAreInputTypesRule.d.ts.map +1 -0
- package/dist/types/validation/rules/VariablesInAllowedPositionRule.d.ts +11 -0
- package/dist/types/validation/rules/VariablesInAllowedPositionRule.d.ts.map +1 -0
- package/dist/types/validation/sortValueNode.d.ts +10 -0
- package/dist/types/validation/sortValueNode.d.ts.map +1 -0
- package/dist/types/validation/specifiedRules.d.ts +42 -0
- package/dist/types/validation/specifiedRules.d.ts.map +1 -0
- package/dist/types/validation/typeFromAST.d.ts +6 -0
- package/dist/types/validation/typeFromAST.d.ts.map +1 -0
- package/dist/types/validation/validate.d.ts +46 -0
- package/dist/types/validation/validate.d.ts.map +1 -0
- package/package.json +39 -1
- package/src/execution/collectFields.ts +220 -0
- package/src/execution/complete.ts +528 -0
- package/src/execution/context.ts +124 -0
- package/src/execution/directives.ts +76 -0
- package/src/execution/execute.ts +204 -0
- package/src/execution/fields.ts +256 -0
- package/src/execution/introspectionResolvers.ts +120 -0
- package/src/execution/values.ts +478 -0
- package/src/index.ts +145 -0
- package/src/introspection/index.ts +40 -0
- package/src/introspection/resolvers.ts +591 -0
- package/src/introspection/types.ts +319 -0
- package/src/scalars/builtIn.ts +316 -0
- package/src/schema/buildSchema.ts +322 -0
- package/src/tsconfig.json +6 -0
- package/src/types/execution.ts +94 -0
- package/src/types/resolvers.ts +119 -0
- package/src/types/schema.ts +346 -0
- package/src/utils/enumValues.ts +64 -0
- package/src/utils/helpers.ts +200 -0
- package/src/utils/path.ts +33 -0
- package/src/utils/schemaInterner.ts +362 -0
- package/src/utils/toGraphQLJsSchema.ts +164 -0
- package/src/utils/typeRef.ts +309 -0
- package/src/validation/TypeInfo.ts +390 -0
- package/src/validation/ValidationContext.ts +239 -0
- package/src/validation/helpers.ts +341 -0
- package/src/validation/rules/ExecutableDefinitionsRule.ts +40 -0
- package/src/validation/rules/FieldsOnCorrectTypeRule.ts +127 -0
- package/src/validation/rules/FragmentsOnCompositeTypesRule.ts +49 -0
- package/src/validation/rules/KnownArgumentNamesRule.ts +82 -0
- package/src/validation/rules/KnownDirectivesRule.ts +119 -0
- package/src/validation/rules/KnownFragmentNamesRule.ts +26 -0
- package/src/validation/rules/KnownTypeNamesRule.ts +51 -0
- package/src/validation/rules/LoneAnonymousOperationRule.ts +34 -0
- package/src/validation/rules/MaxIntrospectionDepthRule.ts +83 -0
- package/src/validation/rules/NoFragmentCyclesRule.ts +98 -0
- package/src/validation/rules/NoUndefinedVariablesRule.ts +39 -0
- package/src/validation/rules/NoUnusedFragmentsRule.ts +49 -0
- package/src/validation/rules/NoUnusedVariablesRule.ts +49 -0
- package/src/validation/rules/OverlappingFieldsCanBeMergedRule.ts +512 -0
- package/src/validation/rules/PossibleFragmentSpreadsRule.ts +118 -0
- package/src/validation/rules/ProvidedRequiredArgumentsRule.ts +105 -0
- package/src/validation/rules/ScalarLeafsRule.ts +58 -0
- package/src/validation/rules/SingleFieldSubscriptionsRule.ts +64 -0
- package/src/validation/rules/UniqueArgumentNamesRule.ts +47 -0
- package/src/validation/rules/UniqueDirectivesPerLocationRule.ts +72 -0
- package/src/validation/rules/UniqueFragmentNamesRule.ts +36 -0
- package/src/validation/rules/UniqueInputFieldNamesRule.ts +46 -0
- package/src/validation/rules/UniqueOperationNamesRule.ts +38 -0
- package/src/validation/rules/UniqueVariableNamesRule.ts +36 -0
- package/src/validation/rules/ValuesOfCorrectTypeRule.ts +158 -0
- package/src/validation/rules/VariablesAreInputTypesRule.ts +39 -0
- package/src/validation/rules/VariablesInAllowedPositionRule.ts +96 -0
- package/src/validation/sortValueNode.ts +85 -0
- package/src/validation/specifiedRules.ts +126 -0
- package/src/validation/typeFromAST.ts +5 -0
- package/src/validation/validate.ts +112 -0
- package/tests/buildSchema.test.ts +398 -0
- package/tests/builtInScalars.test.ts +74 -0
- package/tests/coercion.test.ts +88 -0
- package/tests/compat/abstract.test.ts +717 -0
- package/tests/compat/adapter.ts +779 -0
- package/tests/compat/directives.test.ts +310 -0
- package/tests/compat/executor.test.ts +774 -0
- package/tests/compat/lists.test.ts +244 -0
- package/tests/compat/nonnull.test.ts +463 -0
- package/tests/compat/testUtils.ts +134 -0
- package/tests/completedResult.test.ts +125 -0
- package/tests/deprecatedInputValues.test.ts +39 -0
- package/tests/execute.test.ts +1945 -0
- package/tests/fieldErrors.test.ts +146 -0
- package/tests/getArgumentValues.test.ts +109 -0
- package/tests/inspect.test.ts +44 -0
- package/tests/introspection.test.ts +563 -0
- package/tests/introspectionOrder.test.ts +92 -0
- package/tests/memoization.test.ts +80 -0
- package/tests/operationSelection.test.ts +57 -0
- package/tests/prototypeNames.test.ts +176 -0
- package/tests/resolverLayers.test.ts +32 -0
- package/tests/scalarParsers.test.ts +111 -0
- package/tests/schemaInterner.test.ts +132 -0
- package/tests/tsconfig.json +9 -0
- package/tests/typedContext.test.ts +87 -0
- package/tests/validation/graphqlJsDifferential.test.ts +171 -0
- package/tests/validation/rules/MaxIntrospectionDepthRule.test.ts +557 -0
- package/tests/validation/rules/NoUnusedVariablesRule.test.ts +236 -0
- package/tests/validation/rules/OverlappingFieldsCanBeMergedRule.test.ts +1191 -0
- package/tests/validation/rules/SingleFieldSubscriptionsRule.test.ts +298 -0
- package/tests/validation/rules/differential.test.ts +264 -0
- package/tests/validation/rules/harness.ts +157 -0
- package/tests/validation/validate.test.ts +904 -0
- package/tsconfig.json +8 -0
- package/tsconfig.settings.json +3 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaxIntrospectionDepthRule.cjs","sources":["../../../../../../packages/graphql-json/src/validation/rules/MaxIntrospectionDepthRule.ts"],"sourcesContent":["/**\n * Max introspection depth\n *\n * Rejects introspection queries nesting the list fields of \"__Type\" three or more levels deep,\n * which would let a small query produce an enormous response.\n *\n * Part of graphql-js 16 `specifiedRules` (as a recommended rule).\n */\nimport type { ASTVisitor, FieldNode, FragmentDefinitionNode, FragmentSpreadNode, InlineFragmentNode } from 'graphql'\nimport { GraphQLError, Kind } from 'graphql'\n\nimport type { ValidationContext } from '../ValidationContext.js'\n\nconst MAX_LISTS_DEPTH = 3\n\nexport function MaxIntrospectionDepthRule(context: ValidationContext): ASTVisitor {\n\t/**\n\t * Counts the depth of list fields in \"__Type\" recursively and returns `true` if the limit has been reached.\n\t */\n\tfunction checkDepth(\n\t\tnode: FieldNode | FragmentSpreadNode | InlineFragmentNode | FragmentDefinitionNode,\n\t\tvisitedFragments: Set<string> = new Set(),\n\t\tdepth = 0,\n\t): boolean {\n\t\tif (node.kind === Kind.FRAGMENT_SPREAD) {\n\t\t\tconst fragmentName = node.name.value\n\t\t\tif (visitedFragments.has(fragmentName)) {\n\t\t\t\t// Fragment cycles are handled by `NoFragmentCyclesRule`.\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tconst fragment = context.getFragment(fragmentName)\n\t\t\tif (!fragment) {\n\t\t\t\t// Missing fragments checks are handled by `KnownFragmentNamesRule`.\n\t\t\t\treturn false\n\t\t\t}\n\n\t\t\t// Visiting a fragment twice is fine, as long as one visit is not inside the other.\n\t\t\ttry {\n\t\t\t\tvisitedFragments.add(fragmentName)\n\t\t\t\treturn checkDepth(fragment, visitedFragments, depth)\n\t\t\t} finally {\n\t\t\t\tvisitedFragments.delete(fragmentName)\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\tnode.kind === Kind.FIELD\n\t\t\t// check all introspection lists\n\t\t\t&& (node.name.value === 'fields'\n\t\t\t\t|| node.name.value === 'interfaces'\n\t\t\t\t|| node.name.value === 'possibleTypes'\n\t\t\t\t|| node.name.value === 'inputFields')\n\t\t) {\n\t\t\tdepth++\n\t\t\tif (depth >= MAX_LISTS_DEPTH) {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\n\t\t// handles fields and inline fragments\n\t\tif (node.selectionSet) {\n\t\t\tfor (const child of node.selectionSet.selections) {\n\t\t\t\tif (checkDepth(child, visitedFragments, depth)) {\n\t\t\t\t\treturn true\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false\n\t}\n\n\treturn {\n\t\tField(node) {\n\t\t\tif (node.name.value === '__schema' || node.name.value === '__type') {\n\t\t\t\tif (checkDepth(node)) {\n\t\t\t\t\tcontext.reportError(new GraphQLError('Maximum introspection depth exceeded', { nodes: [node] }))\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn undefined\n\t\t},\n\t}\n}\n"],"names":["Kind","GraphQLError"],"mappings":";;;AAaA,MAAM,kBAAkB;AAEjB,SAAS,0BAA0B,SAAwC;AAIjF,WAAS,WACR,MACA,uCAAoC,IAAA,GACpC,QAAQ,GACE;AACV,QAAI,KAAK,SAASA,QAAAA,KAAK,iBAAiB;AACvC,YAAM,eAAe,KAAK,KAAK;AAC/B,UAAI,iBAAiB,IAAI,YAAY,GAAG;AAEvC,eAAO;AAAA,MACR;AACA,YAAM,WAAW,QAAQ,YAAY,YAAY;AACjD,UAAI,CAAC,UAAU;AAEd,eAAO;AAAA,MACR;AAGA,UAAI;AACH,yBAAiB,IAAI,YAAY;AACjC,eAAO,WAAW,UAAU,kBAAkB,KAAK;AAAA,MACpD,UAAA;AACC,yBAAiB,OAAO,YAAY;AAAA,MACrC;AAAA,IACD;AAEA,QACC,KAAK,SAASA,QAAAA,KAAK,UAEf,KAAK,KAAK,UAAU,YACpB,KAAK,KAAK,UAAU,gBACpB,KAAK,KAAK,UAAU,mBACpB,KAAK,KAAK,UAAU,gBACvB;AACD;AACA,UAAI,SAAS,iBAAiB;AAC7B,eAAO;AAAA,MACR;AAAA,IACD;AAGA,QAAI,KAAK,cAAc;AACtB,iBAAW,SAAS,KAAK,aAAa,YAAY;AACjD,YAAI,WAAW,OAAO,kBAAkB,KAAK,GAAG;AAC/C,iBAAO;AAAA,QACR;AAAA,MACD;AAAA,IACD;AAEA,WAAO;AAAA,EACR;AAEA,SAAO;AAAA,IACN,MAAM,MAAM;AACX,UAAI,KAAK,KAAK,UAAU,cAAc,KAAK,KAAK,UAAU,UAAU;AACnE,YAAI,WAAW,IAAI,GAAG;AACrB,kBAAQ,YAAY,IAAIC,qBAAa,wCAAwC,EAAE,OAAO,CAAC,IAAI,EAAA,CAAG,CAAC;AAC/F,iBAAO;AAAA,QACR;AAAA,MACD;AACA,aAAO;AAAA,IACR;AAAA,EAAA;AAEF;;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { GraphQLError, Kind } from "graphql";
|
|
2
|
+
const MAX_LISTS_DEPTH = 3;
|
|
3
|
+
function MaxIntrospectionDepthRule(context) {
|
|
4
|
+
function checkDepth(node, visitedFragments = /* @__PURE__ */ new Set(), depth = 0) {
|
|
5
|
+
if (node.kind === Kind.FRAGMENT_SPREAD) {
|
|
6
|
+
const fragmentName = node.name.value;
|
|
7
|
+
if (visitedFragments.has(fragmentName)) {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
const fragment = context.getFragment(fragmentName);
|
|
11
|
+
if (!fragment) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
try {
|
|
15
|
+
visitedFragments.add(fragmentName);
|
|
16
|
+
return checkDepth(fragment, visitedFragments, depth);
|
|
17
|
+
} finally {
|
|
18
|
+
visitedFragments.delete(fragmentName);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
if (node.kind === Kind.FIELD && (node.name.value === "fields" || node.name.value === "interfaces" || node.name.value === "possibleTypes" || node.name.value === "inputFields")) {
|
|
22
|
+
depth++;
|
|
23
|
+
if (depth >= MAX_LISTS_DEPTH) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
if (node.selectionSet) {
|
|
28
|
+
for (const child of node.selectionSet.selections) {
|
|
29
|
+
if (checkDepth(child, visitedFragments, depth)) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
Field(node) {
|
|
38
|
+
if (node.name.value === "__schema" || node.name.value === "__type") {
|
|
39
|
+
if (checkDepth(node)) {
|
|
40
|
+
context.reportError(new GraphQLError("Maximum introspection depth exceeded", { nodes: [node] }));
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return void 0;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
MaxIntrospectionDepthRule
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=MaxIntrospectionDepthRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaxIntrospectionDepthRule.js","sources":["../../../../../../packages/graphql-json/src/validation/rules/MaxIntrospectionDepthRule.ts"],"sourcesContent":["/**\n * Max introspection depth\n *\n * Rejects introspection queries nesting the list fields of \"__Type\" three or more levels deep,\n * which would let a small query produce an enormous response.\n *\n * Part of graphql-js 16 `specifiedRules` (as a recommended rule).\n */\nimport type { ASTVisitor, FieldNode, FragmentDefinitionNode, FragmentSpreadNode, InlineFragmentNode } from 'graphql'\nimport { GraphQLError, Kind } from 'graphql'\n\nimport type { ValidationContext } from '../ValidationContext.js'\n\nconst MAX_LISTS_DEPTH = 3\n\nexport function MaxIntrospectionDepthRule(context: ValidationContext): ASTVisitor {\n\t/**\n\t * Counts the depth of list fields in \"__Type\" recursively and returns `true` if the limit has been reached.\n\t */\n\tfunction checkDepth(\n\t\tnode: FieldNode | FragmentSpreadNode | InlineFragmentNode | FragmentDefinitionNode,\n\t\tvisitedFragments: Set<string> = new Set(),\n\t\tdepth = 0,\n\t): boolean {\n\t\tif (node.kind === Kind.FRAGMENT_SPREAD) {\n\t\t\tconst fragmentName = node.name.value\n\t\t\tif (visitedFragments.has(fragmentName)) {\n\t\t\t\t// Fragment cycles are handled by `NoFragmentCyclesRule`.\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tconst fragment = context.getFragment(fragmentName)\n\t\t\tif (!fragment) {\n\t\t\t\t// Missing fragments checks are handled by `KnownFragmentNamesRule`.\n\t\t\t\treturn false\n\t\t\t}\n\n\t\t\t// Visiting a fragment twice is fine, as long as one visit is not inside the other.\n\t\t\ttry {\n\t\t\t\tvisitedFragments.add(fragmentName)\n\t\t\t\treturn checkDepth(fragment, visitedFragments, depth)\n\t\t\t} finally {\n\t\t\t\tvisitedFragments.delete(fragmentName)\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\tnode.kind === Kind.FIELD\n\t\t\t// check all introspection lists\n\t\t\t&& (node.name.value === 'fields'\n\t\t\t\t|| node.name.value === 'interfaces'\n\t\t\t\t|| node.name.value === 'possibleTypes'\n\t\t\t\t|| node.name.value === 'inputFields')\n\t\t) {\n\t\t\tdepth++\n\t\t\tif (depth >= MAX_LISTS_DEPTH) {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\n\t\t// handles fields and inline fragments\n\t\tif (node.selectionSet) {\n\t\t\tfor (const child of node.selectionSet.selections) {\n\t\t\t\tif (checkDepth(child, visitedFragments, depth)) {\n\t\t\t\t\treturn true\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false\n\t}\n\n\treturn {\n\t\tField(node) {\n\t\t\tif (node.name.value === '__schema' || node.name.value === '__type') {\n\t\t\t\tif (checkDepth(node)) {\n\t\t\t\t\tcontext.reportError(new GraphQLError('Maximum introspection depth exceeded', { nodes: [node] }))\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn undefined\n\t\t},\n\t}\n}\n"],"names":[],"mappings":";AAaA,MAAM,kBAAkB;AAEjB,SAAS,0BAA0B,SAAwC;AAIjF,WAAS,WACR,MACA,uCAAoC,IAAA,GACpC,QAAQ,GACE;AACV,QAAI,KAAK,SAAS,KAAK,iBAAiB;AACvC,YAAM,eAAe,KAAK,KAAK;AAC/B,UAAI,iBAAiB,IAAI,YAAY,GAAG;AAEvC,eAAO;AAAA,MACR;AACA,YAAM,WAAW,QAAQ,YAAY,YAAY;AACjD,UAAI,CAAC,UAAU;AAEd,eAAO;AAAA,MACR;AAGA,UAAI;AACH,yBAAiB,IAAI,YAAY;AACjC,eAAO,WAAW,UAAU,kBAAkB,KAAK;AAAA,MACpD,UAAA;AACC,yBAAiB,OAAO,YAAY;AAAA,MACrC;AAAA,IACD;AAEA,QACC,KAAK,SAAS,KAAK,UAEf,KAAK,KAAK,UAAU,YACpB,KAAK,KAAK,UAAU,gBACpB,KAAK,KAAK,UAAU,mBACpB,KAAK,KAAK,UAAU,gBACvB;AACD;AACA,UAAI,SAAS,iBAAiB;AAC7B,eAAO;AAAA,MACR;AAAA,IACD;AAGA,QAAI,KAAK,cAAc;AACtB,iBAAW,SAAS,KAAK,aAAa,YAAY;AACjD,YAAI,WAAW,OAAO,kBAAkB,KAAK,GAAG;AAC/C,iBAAO;AAAA,QACR;AAAA,MACD;AAAA,IACD;AAEA,WAAO;AAAA,EACR;AAEA,SAAO;AAAA,IACN,MAAM,MAAM;AACX,UAAI,KAAK,KAAK,UAAU,cAAc,KAAK,KAAK,UAAU,UAAU;AACnE,YAAI,WAAW,IAAI,GAAG;AACrB,kBAAQ,YAAY,IAAI,aAAa,wCAAwC,EAAE,OAAO,CAAC,IAAI,EAAA,CAAG,CAAC;AAC/F,iBAAO;AAAA,QACR;AAAA,MACD;AACA,aAAO;AAAA,IACR;AAAA,EAAA;AAEF;"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const graphql = require("graphql");
|
|
4
|
+
function NoFragmentCyclesRule(context) {
|
|
5
|
+
const visitedFrags = /* @__PURE__ */ new Set();
|
|
6
|
+
const spreadPath = [];
|
|
7
|
+
const spreadPathIndexByName = /* @__PURE__ */ new Map();
|
|
8
|
+
return {
|
|
9
|
+
OperationDefinition() {
|
|
10
|
+
return false;
|
|
11
|
+
},
|
|
12
|
+
FragmentDefinition(node) {
|
|
13
|
+
detectCycleRecursive(node);
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
function detectCycleRecursive(fragment) {
|
|
18
|
+
if (visitedFrags.has(fragment.name.value)) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const fragmentName = fragment.name.value;
|
|
22
|
+
visitedFrags.add(fragmentName);
|
|
23
|
+
const spreadNodes = getFragmentSpreads(fragment);
|
|
24
|
+
if (spreadNodes.length === 0) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
spreadPathIndexByName.set(fragmentName, spreadPath.length);
|
|
28
|
+
for (const spreadNode of spreadNodes) {
|
|
29
|
+
const spreadName = spreadNode.name.value;
|
|
30
|
+
const cycleIndex = spreadPathIndexByName.get(spreadName);
|
|
31
|
+
spreadPath.push(spreadNode);
|
|
32
|
+
if (cycleIndex === void 0) {
|
|
33
|
+
const spreadFragment = context.getFragment(spreadName);
|
|
34
|
+
if (spreadFragment) {
|
|
35
|
+
detectCycleRecursive(spreadFragment);
|
|
36
|
+
}
|
|
37
|
+
} else {
|
|
38
|
+
const cyclePath = spreadPath.slice(cycleIndex);
|
|
39
|
+
const viaPath = cyclePath.slice(0, -1).map((s) => `"${s.name.value}"`).join(", ");
|
|
40
|
+
context.reportError(
|
|
41
|
+
new graphql.GraphQLError(
|
|
42
|
+
`Cannot spread fragment "${spreadName}" within itself` + (viaPath !== "" ? ` via ${viaPath}.` : "."),
|
|
43
|
+
{ nodes: cyclePath }
|
|
44
|
+
)
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
spreadPath.pop();
|
|
48
|
+
}
|
|
49
|
+
spreadPathIndexByName.delete(fragmentName);
|
|
50
|
+
}
|
|
51
|
+
function getFragmentSpreads(fragment) {
|
|
52
|
+
const spreads = [];
|
|
53
|
+
const setsToVisit = [fragment.selectionSet];
|
|
54
|
+
let set;
|
|
55
|
+
while (set = setsToVisit.pop()) {
|
|
56
|
+
for (const selection of set.selections) {
|
|
57
|
+
if (selection.kind === graphql.Kind.FRAGMENT_SPREAD) {
|
|
58
|
+
spreads.push(selection);
|
|
59
|
+
} else if (selection.selectionSet) {
|
|
60
|
+
setsToVisit.push(selection.selectionSet);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return spreads;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.NoFragmentCyclesRule = NoFragmentCyclesRule;
|
|
68
|
+
//# sourceMappingURL=NoFragmentCyclesRule.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoFragmentCyclesRule.cjs","sources":["../../../../../../packages/graphql-json/src/validation/rules/NoFragmentCyclesRule.ts"],"sourcesContent":["/**\n * No fragment cycles\n *\n * The graph of fragment spreads must not form any cycles including spreading itself.\n * Otherwise an operation could infinitely spread or infinitely execute on cycles\n * in the underlying data.\n *\n * See https://spec.graphql.org/draft/#sec-Fragment-spreads-must-not-form-cycles\n */\nimport type { ASTVisitor, FragmentDefinitionNode, FragmentSpreadNode, SelectionSetNode } from 'graphql'\nimport { GraphQLError, Kind } from 'graphql'\n\nimport type { ValidationContext } from '../ValidationContext.js'\n\nexport function NoFragmentCyclesRule(context: ValidationContext): ASTVisitor {\n\t// Tracks already visited fragments to maintain O(N) complexity\n\tconst visitedFrags = new Set<string>()\n\n\t// Array of AST nodes used to produce meaningful errors\n\tconst spreadPath: FragmentSpreadNode[] = []\n\n\t// Position in the spread path\n\tconst spreadPathIndexByName = new Map<string, number>()\n\n\treturn {\n\t\tOperationDefinition() {\n\t\t\treturn false\n\t\t},\n\t\tFragmentDefinition(node) {\n\t\t\tdetectCycleRecursive(node)\n\t\t\treturn false\n\t\t},\n\t}\n\n\tfunction detectCycleRecursive(fragment: FragmentDefinitionNode): void {\n\t\tif (visitedFrags.has(fragment.name.value)) {\n\t\t\treturn\n\t\t}\n\n\t\tconst fragmentName = fragment.name.value\n\t\tvisitedFrags.add(fragmentName)\n\n\t\tconst spreadNodes = getFragmentSpreads(fragment)\n\t\tif (spreadNodes.length === 0) {\n\t\t\treturn\n\t\t}\n\n\t\tspreadPathIndexByName.set(fragmentName, spreadPath.length)\n\n\t\tfor (const spreadNode of spreadNodes) {\n\t\t\tconst spreadName = spreadNode.name.value\n\t\t\tconst cycleIndex = spreadPathIndexByName.get(spreadName)\n\n\t\t\tspreadPath.push(spreadNode)\n\t\t\tif (cycleIndex === undefined) {\n\t\t\t\tconst spreadFragment = context.getFragment(spreadName)\n\t\t\t\tif (spreadFragment) {\n\t\t\t\t\tdetectCycleRecursive(spreadFragment)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst cyclePath = spreadPath.slice(cycleIndex)\n\t\t\t\tconst viaPath = cyclePath\n\t\t\t\t\t.slice(0, -1)\n\t\t\t\t\t.map((s) => `\"${s.name.value}\"`)\n\t\t\t\t\t.join(', ')\n\n\t\t\t\tcontext.reportError(\n\t\t\t\t\tnew GraphQLError(\n\t\t\t\t\t\t`Cannot spread fragment \"${spreadName}\" within itself`\n\t\t\t\t\t\t\t+ (viaPath !== '' ? ` via ${viaPath}.` : '.'),\n\t\t\t\t\t\t{ nodes: cyclePath },\n\t\t\t\t\t),\n\t\t\t\t)\n\t\t\t}\n\t\t\tspreadPath.pop()\n\t\t}\n\n\t\tspreadPathIndexByName.delete(fragmentName)\n\t}\n\n\tfunction getFragmentSpreads(fragment: FragmentDefinitionNode): FragmentSpreadNode[] {\n\t\tconst spreads: FragmentSpreadNode[] = []\n\t\tconst setsToVisit: SelectionSetNode[] = [fragment.selectionSet]\n\n\t\tlet set\n\t\twhile ((set = setsToVisit.pop())) {\n\t\t\tfor (const selection of set.selections) {\n\t\t\t\tif (selection.kind === Kind.FRAGMENT_SPREAD) {\n\t\t\t\t\tspreads.push(selection)\n\t\t\t\t} else if (selection.selectionSet) {\n\t\t\t\t\tsetsToVisit.push(selection.selectionSet)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn spreads\n\t}\n}\n"],"names":["GraphQLError","Kind"],"mappings":";;;AAcO,SAAS,qBAAqB,SAAwC;AAE5E,QAAM,mCAAmB,IAAA;AAGzB,QAAM,aAAmC,CAAA;AAGzC,QAAM,4CAA4B,IAAA;AAElC,SAAO;AAAA,IACN,sBAAsB;AACrB,aAAO;AAAA,IACR;AAAA,IACA,mBAAmB,MAAM;AACxB,2BAAqB,IAAI;AACzB,aAAO;AAAA,IACR;AAAA,EAAA;AAGD,WAAS,qBAAqB,UAAwC;AACrE,QAAI,aAAa,IAAI,SAAS,KAAK,KAAK,GAAG;AAC1C;AAAA,IACD;AAEA,UAAM,eAAe,SAAS,KAAK;AACnC,iBAAa,IAAI,YAAY;AAE7B,UAAM,cAAc,mBAAmB,QAAQ;AAC/C,QAAI,YAAY,WAAW,GAAG;AAC7B;AAAA,IACD;AAEA,0BAAsB,IAAI,cAAc,WAAW,MAAM;AAEzD,eAAW,cAAc,aAAa;AACrC,YAAM,aAAa,WAAW,KAAK;AACnC,YAAM,aAAa,sBAAsB,IAAI,UAAU;AAEvD,iBAAW,KAAK,UAAU;AAC1B,UAAI,eAAe,QAAW;AAC7B,cAAM,iBAAiB,QAAQ,YAAY,UAAU;AACrD,YAAI,gBAAgB;AACnB,+BAAqB,cAAc;AAAA,QACpC;AAAA,MACD,OAAO;AACN,cAAM,YAAY,WAAW,MAAM,UAAU;AAC7C,cAAM,UAAU,UACd,MAAM,GAAG,EAAE,EACX,IAAI,CAAC,MAAM,IAAI,EAAE,KAAK,KAAK,GAAG,EAC9B,KAAK,IAAI;AAEX,gBAAQ;AAAA,UACP,IAAIA,QAAAA;AAAAA,YACH,2BAA2B,UAAU,qBACjC,YAAY,KAAK,QAAQ,OAAO,MAAM;AAAA,YAC1C,EAAE,OAAO,UAAA;AAAA,UAAU;AAAA,QACpB;AAAA,MAEF;AACA,iBAAW,IAAA;AAAA,IACZ;AAEA,0BAAsB,OAAO,YAAY;AAAA,EAC1C;AAEA,WAAS,mBAAmB,UAAwD;AACnF,UAAM,UAAgC,CAAA;AACtC,UAAM,cAAkC,CAAC,SAAS,YAAY;AAE9D,QAAI;AACJ,WAAQ,MAAM,YAAY,OAAQ;AACjC,iBAAW,aAAa,IAAI,YAAY;AACvC,YAAI,UAAU,SAASC,QAAAA,KAAK,iBAAiB;AAC5C,kBAAQ,KAAK,SAAS;AAAA,QACvB,WAAW,UAAU,cAAc;AAClC,sBAAY,KAAK,UAAU,YAAY;AAAA,QACxC;AAAA,MACD;AAAA,IACD;AAEA,WAAO;AAAA,EACR;AACD;;"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { GraphQLError, Kind } from "graphql";
|
|
2
|
+
function NoFragmentCyclesRule(context) {
|
|
3
|
+
const visitedFrags = /* @__PURE__ */ new Set();
|
|
4
|
+
const spreadPath = [];
|
|
5
|
+
const spreadPathIndexByName = /* @__PURE__ */ new Map();
|
|
6
|
+
return {
|
|
7
|
+
OperationDefinition() {
|
|
8
|
+
return false;
|
|
9
|
+
},
|
|
10
|
+
FragmentDefinition(node) {
|
|
11
|
+
detectCycleRecursive(node);
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
function detectCycleRecursive(fragment) {
|
|
16
|
+
if (visitedFrags.has(fragment.name.value)) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const fragmentName = fragment.name.value;
|
|
20
|
+
visitedFrags.add(fragmentName);
|
|
21
|
+
const spreadNodes = getFragmentSpreads(fragment);
|
|
22
|
+
if (spreadNodes.length === 0) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
spreadPathIndexByName.set(fragmentName, spreadPath.length);
|
|
26
|
+
for (const spreadNode of spreadNodes) {
|
|
27
|
+
const spreadName = spreadNode.name.value;
|
|
28
|
+
const cycleIndex = spreadPathIndexByName.get(spreadName);
|
|
29
|
+
spreadPath.push(spreadNode);
|
|
30
|
+
if (cycleIndex === void 0) {
|
|
31
|
+
const spreadFragment = context.getFragment(spreadName);
|
|
32
|
+
if (spreadFragment) {
|
|
33
|
+
detectCycleRecursive(spreadFragment);
|
|
34
|
+
}
|
|
35
|
+
} else {
|
|
36
|
+
const cyclePath = spreadPath.slice(cycleIndex);
|
|
37
|
+
const viaPath = cyclePath.slice(0, -1).map((s) => `"${s.name.value}"`).join(", ");
|
|
38
|
+
context.reportError(
|
|
39
|
+
new GraphQLError(
|
|
40
|
+
`Cannot spread fragment "${spreadName}" within itself` + (viaPath !== "" ? ` via ${viaPath}.` : "."),
|
|
41
|
+
{ nodes: cyclePath }
|
|
42
|
+
)
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
spreadPath.pop();
|
|
46
|
+
}
|
|
47
|
+
spreadPathIndexByName.delete(fragmentName);
|
|
48
|
+
}
|
|
49
|
+
function getFragmentSpreads(fragment) {
|
|
50
|
+
const spreads = [];
|
|
51
|
+
const setsToVisit = [fragment.selectionSet];
|
|
52
|
+
let set;
|
|
53
|
+
while (set = setsToVisit.pop()) {
|
|
54
|
+
for (const selection of set.selections) {
|
|
55
|
+
if (selection.kind === Kind.FRAGMENT_SPREAD) {
|
|
56
|
+
spreads.push(selection);
|
|
57
|
+
} else if (selection.selectionSet) {
|
|
58
|
+
setsToVisit.push(selection.selectionSet);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return spreads;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
NoFragmentCyclesRule
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=NoFragmentCyclesRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoFragmentCyclesRule.js","sources":["../../../../../../packages/graphql-json/src/validation/rules/NoFragmentCyclesRule.ts"],"sourcesContent":["/**\n * No fragment cycles\n *\n * The graph of fragment spreads must not form any cycles including spreading itself.\n * Otherwise an operation could infinitely spread or infinitely execute on cycles\n * in the underlying data.\n *\n * See https://spec.graphql.org/draft/#sec-Fragment-spreads-must-not-form-cycles\n */\nimport type { ASTVisitor, FragmentDefinitionNode, FragmentSpreadNode, SelectionSetNode } from 'graphql'\nimport { GraphQLError, Kind } from 'graphql'\n\nimport type { ValidationContext } from '../ValidationContext.js'\n\nexport function NoFragmentCyclesRule(context: ValidationContext): ASTVisitor {\n\t// Tracks already visited fragments to maintain O(N) complexity\n\tconst visitedFrags = new Set<string>()\n\n\t// Array of AST nodes used to produce meaningful errors\n\tconst spreadPath: FragmentSpreadNode[] = []\n\n\t// Position in the spread path\n\tconst spreadPathIndexByName = new Map<string, number>()\n\n\treturn {\n\t\tOperationDefinition() {\n\t\t\treturn false\n\t\t},\n\t\tFragmentDefinition(node) {\n\t\t\tdetectCycleRecursive(node)\n\t\t\treturn false\n\t\t},\n\t}\n\n\tfunction detectCycleRecursive(fragment: FragmentDefinitionNode): void {\n\t\tif (visitedFrags.has(fragment.name.value)) {\n\t\t\treturn\n\t\t}\n\n\t\tconst fragmentName = fragment.name.value\n\t\tvisitedFrags.add(fragmentName)\n\n\t\tconst spreadNodes = getFragmentSpreads(fragment)\n\t\tif (spreadNodes.length === 0) {\n\t\t\treturn\n\t\t}\n\n\t\tspreadPathIndexByName.set(fragmentName, spreadPath.length)\n\n\t\tfor (const spreadNode of spreadNodes) {\n\t\t\tconst spreadName = spreadNode.name.value\n\t\t\tconst cycleIndex = spreadPathIndexByName.get(spreadName)\n\n\t\t\tspreadPath.push(spreadNode)\n\t\t\tif (cycleIndex === undefined) {\n\t\t\t\tconst spreadFragment = context.getFragment(spreadName)\n\t\t\t\tif (spreadFragment) {\n\t\t\t\t\tdetectCycleRecursive(spreadFragment)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst cyclePath = spreadPath.slice(cycleIndex)\n\t\t\t\tconst viaPath = cyclePath\n\t\t\t\t\t.slice(0, -1)\n\t\t\t\t\t.map((s) => `\"${s.name.value}\"`)\n\t\t\t\t\t.join(', ')\n\n\t\t\t\tcontext.reportError(\n\t\t\t\t\tnew GraphQLError(\n\t\t\t\t\t\t`Cannot spread fragment \"${spreadName}\" within itself`\n\t\t\t\t\t\t\t+ (viaPath !== '' ? ` via ${viaPath}.` : '.'),\n\t\t\t\t\t\t{ nodes: cyclePath },\n\t\t\t\t\t),\n\t\t\t\t)\n\t\t\t}\n\t\t\tspreadPath.pop()\n\t\t}\n\n\t\tspreadPathIndexByName.delete(fragmentName)\n\t}\n\n\tfunction getFragmentSpreads(fragment: FragmentDefinitionNode): FragmentSpreadNode[] {\n\t\tconst spreads: FragmentSpreadNode[] = []\n\t\tconst setsToVisit: SelectionSetNode[] = [fragment.selectionSet]\n\n\t\tlet set\n\t\twhile ((set = setsToVisit.pop())) {\n\t\t\tfor (const selection of set.selections) {\n\t\t\t\tif (selection.kind === Kind.FRAGMENT_SPREAD) {\n\t\t\t\t\tspreads.push(selection)\n\t\t\t\t} else if (selection.selectionSet) {\n\t\t\t\t\tsetsToVisit.push(selection.selectionSet)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn spreads\n\t}\n}\n"],"names":[],"mappings":";AAcO,SAAS,qBAAqB,SAAwC;AAE5E,QAAM,mCAAmB,IAAA;AAGzB,QAAM,aAAmC,CAAA;AAGzC,QAAM,4CAA4B,IAAA;AAElC,SAAO;AAAA,IACN,sBAAsB;AACrB,aAAO;AAAA,IACR;AAAA,IACA,mBAAmB,MAAM;AACxB,2BAAqB,IAAI;AACzB,aAAO;AAAA,IACR;AAAA,EAAA;AAGD,WAAS,qBAAqB,UAAwC;AACrE,QAAI,aAAa,IAAI,SAAS,KAAK,KAAK,GAAG;AAC1C;AAAA,IACD;AAEA,UAAM,eAAe,SAAS,KAAK;AACnC,iBAAa,IAAI,YAAY;AAE7B,UAAM,cAAc,mBAAmB,QAAQ;AAC/C,QAAI,YAAY,WAAW,GAAG;AAC7B;AAAA,IACD;AAEA,0BAAsB,IAAI,cAAc,WAAW,MAAM;AAEzD,eAAW,cAAc,aAAa;AACrC,YAAM,aAAa,WAAW,KAAK;AACnC,YAAM,aAAa,sBAAsB,IAAI,UAAU;AAEvD,iBAAW,KAAK,UAAU;AAC1B,UAAI,eAAe,QAAW;AAC7B,cAAM,iBAAiB,QAAQ,YAAY,UAAU;AACrD,YAAI,gBAAgB;AACnB,+BAAqB,cAAc;AAAA,QACpC;AAAA,MACD,OAAO;AACN,cAAM,YAAY,WAAW,MAAM,UAAU;AAC7C,cAAM,UAAU,UACd,MAAM,GAAG,EAAE,EACX,IAAI,CAAC,MAAM,IAAI,EAAE,KAAK,KAAK,GAAG,EAC9B,KAAK,IAAI;AAEX,gBAAQ;AAAA,UACP,IAAI;AAAA,YACH,2BAA2B,UAAU,qBACjC,YAAY,KAAK,QAAQ,OAAO,MAAM;AAAA,YAC1C,EAAE,OAAO,UAAA;AAAA,UAAU;AAAA,QACpB;AAAA,MAEF;AACA,iBAAW,IAAA;AAAA,IACZ;AAEA,0BAAsB,OAAO,YAAY;AAAA,EAC1C;AAEA,WAAS,mBAAmB,UAAwD;AACnF,UAAM,UAAgC,CAAA;AACtC,UAAM,cAAkC,CAAC,SAAS,YAAY;AAE9D,QAAI;AACJ,WAAQ,MAAM,YAAY,OAAQ;AACjC,iBAAW,aAAa,IAAI,YAAY;AACvC,YAAI,UAAU,SAAS,KAAK,iBAAiB;AAC5C,kBAAQ,KAAK,SAAS;AAAA,QACvB,WAAW,UAAU,cAAc;AAClC,sBAAY,KAAK,UAAU,YAAY;AAAA,QACxC;AAAA,MACD;AAAA,IACD;AAEA,WAAO;AAAA,EACR;AACD;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const graphql = require("graphql");
|
|
4
|
+
function NoUndefinedVariablesRule(context) {
|
|
5
|
+
return {
|
|
6
|
+
OperationDefinition: {
|
|
7
|
+
leave(operation) {
|
|
8
|
+
const variableNameDefined = new Set(
|
|
9
|
+
operation.variableDefinitions?.map((varDef) => varDef.variable.name.value) ?? []
|
|
10
|
+
);
|
|
11
|
+
const usages = context.getRecursiveVariableUsages(operation);
|
|
12
|
+
for (const { node } of usages) {
|
|
13
|
+
const varName = node.name.value;
|
|
14
|
+
if (!variableNameDefined.has(varName)) {
|
|
15
|
+
context.reportError(
|
|
16
|
+
new graphql.GraphQLError(
|
|
17
|
+
operation.name ? `Variable "$${varName}" is not defined by operation "${operation.name.value}".` : `Variable "$${varName}" is not defined.`,
|
|
18
|
+
{ nodes: [node, operation] }
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.NoUndefinedVariablesRule = NoUndefinedVariablesRule;
|
|
28
|
+
//# sourceMappingURL=NoUndefinedVariablesRule.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoUndefinedVariablesRule.cjs","sources":["../../../../../../packages/graphql-json/src/validation/rules/NoUndefinedVariablesRule.ts"],"sourcesContent":["/**\n * No undefined variables\n *\n * A GraphQL operation is only valid if all variables encountered, both directly\n * and via fragment spreads, are defined by that operation.\n *\n * See https://spec.graphql.org/draft/#sec-All-Variable-Uses-Defined\n */\nimport type { ASTVisitor, OperationDefinitionNode } from 'graphql'\nimport { GraphQLError } from 'graphql'\n\nimport type { ValidationContext } from '../ValidationContext.js'\n\nexport function NoUndefinedVariablesRule(context: ValidationContext): ASTVisitor {\n\treturn {\n\t\tOperationDefinition: {\n\t\t\tleave(operation: OperationDefinitionNode) {\n\t\t\t\tconst variableNameDefined = new Set(\n\t\t\t\t\toperation.variableDefinitions?.map((varDef) => varDef.variable.name.value) ?? [],\n\t\t\t\t)\n\n\t\t\t\tconst usages = context.getRecursiveVariableUsages(operation)\n\t\t\t\tfor (const { node } of usages) {\n\t\t\t\t\tconst varName = node.name.value\n\t\t\t\t\tif (!variableNameDefined.has(varName)) {\n\t\t\t\t\t\tcontext.reportError(\n\t\t\t\t\t\t\tnew GraphQLError(\n\t\t\t\t\t\t\t\toperation.name\n\t\t\t\t\t\t\t\t\t? `Variable \"$${varName}\" is not defined by operation \"${operation.name.value}\".`\n\t\t\t\t\t\t\t\t\t: `Variable \"$${varName}\" is not defined.`,\n\t\t\t\t\t\t\t\t{ nodes: [node, operation] },\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t}\n}\n"],"names":["GraphQLError"],"mappings":";;;AAaO,SAAS,yBAAyB,SAAwC;AAChF,SAAO;AAAA,IACN,qBAAqB;AAAA,MACpB,MAAM,WAAoC;AACzC,cAAM,sBAAsB,IAAI;AAAA,UAC/B,UAAU,qBAAqB,IAAI,CAAC,WAAW,OAAO,SAAS,KAAK,KAAK,KAAK,CAAA;AAAA,QAAC;AAGhF,cAAM,SAAS,QAAQ,2BAA2B,SAAS;AAC3D,mBAAW,EAAE,KAAA,KAAU,QAAQ;AAC9B,gBAAM,UAAU,KAAK,KAAK;AAC1B,cAAI,CAAC,oBAAoB,IAAI,OAAO,GAAG;AACtC,oBAAQ;AAAA,cACP,IAAIA,QAAAA;AAAAA,gBACH,UAAU,OACP,cAAc,OAAO,kCAAkC,UAAU,KAAK,KAAK,OAC3E,cAAc,OAAO;AAAA,gBACxB,EAAE,OAAO,CAAC,MAAM,SAAS,EAAA;AAAA,cAAE;AAAA,YAC5B;AAAA,UAEF;AAAA,QACD;AAAA,MACD;AAAA,IAAA;AAAA,EACD;AAEF;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { GraphQLError } from "graphql";
|
|
2
|
+
function NoUndefinedVariablesRule(context) {
|
|
3
|
+
return {
|
|
4
|
+
OperationDefinition: {
|
|
5
|
+
leave(operation) {
|
|
6
|
+
const variableNameDefined = new Set(
|
|
7
|
+
operation.variableDefinitions?.map((varDef) => varDef.variable.name.value) ?? []
|
|
8
|
+
);
|
|
9
|
+
const usages = context.getRecursiveVariableUsages(operation);
|
|
10
|
+
for (const { node } of usages) {
|
|
11
|
+
const varName = node.name.value;
|
|
12
|
+
if (!variableNameDefined.has(varName)) {
|
|
13
|
+
context.reportError(
|
|
14
|
+
new GraphQLError(
|
|
15
|
+
operation.name ? `Variable "$${varName}" is not defined by operation "${operation.name.value}".` : `Variable "$${varName}" is not defined.`,
|
|
16
|
+
{ nodes: [node, operation] }
|
|
17
|
+
)
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
NoUndefinedVariablesRule
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=NoUndefinedVariablesRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoUndefinedVariablesRule.js","sources":["../../../../../../packages/graphql-json/src/validation/rules/NoUndefinedVariablesRule.ts"],"sourcesContent":["/**\n * No undefined variables\n *\n * A GraphQL operation is only valid if all variables encountered, both directly\n * and via fragment spreads, are defined by that operation.\n *\n * See https://spec.graphql.org/draft/#sec-All-Variable-Uses-Defined\n */\nimport type { ASTVisitor, OperationDefinitionNode } from 'graphql'\nimport { GraphQLError } from 'graphql'\n\nimport type { ValidationContext } from '../ValidationContext.js'\n\nexport function NoUndefinedVariablesRule(context: ValidationContext): ASTVisitor {\n\treturn {\n\t\tOperationDefinition: {\n\t\t\tleave(operation: OperationDefinitionNode) {\n\t\t\t\tconst variableNameDefined = new Set(\n\t\t\t\t\toperation.variableDefinitions?.map((varDef) => varDef.variable.name.value) ?? [],\n\t\t\t\t)\n\n\t\t\t\tconst usages = context.getRecursiveVariableUsages(operation)\n\t\t\t\tfor (const { node } of usages) {\n\t\t\t\t\tconst varName = node.name.value\n\t\t\t\t\tif (!variableNameDefined.has(varName)) {\n\t\t\t\t\t\tcontext.reportError(\n\t\t\t\t\t\t\tnew GraphQLError(\n\t\t\t\t\t\t\t\toperation.name\n\t\t\t\t\t\t\t\t\t? `Variable \"$${varName}\" is not defined by operation \"${operation.name.value}\".`\n\t\t\t\t\t\t\t\t\t: `Variable \"$${varName}\" is not defined.`,\n\t\t\t\t\t\t\t\t{ nodes: [node, operation] },\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t}\n}\n"],"names":[],"mappings":";AAaO,SAAS,yBAAyB,SAAwC;AAChF,SAAO;AAAA,IACN,qBAAqB;AAAA,MACpB,MAAM,WAAoC;AACzC,cAAM,sBAAsB,IAAI;AAAA,UAC/B,UAAU,qBAAqB,IAAI,CAAC,WAAW,OAAO,SAAS,KAAK,KAAK,KAAK,CAAA;AAAA,QAAC;AAGhF,cAAM,SAAS,QAAQ,2BAA2B,SAAS;AAC3D,mBAAW,EAAE,KAAA,KAAU,QAAQ;AAC9B,gBAAM,UAAU,KAAK,KAAK;AAC1B,cAAI,CAAC,oBAAoB,IAAI,OAAO,GAAG;AACtC,oBAAQ;AAAA,cACP,IAAI;AAAA,gBACH,UAAU,OACP,cAAc,OAAO,kCAAkC,UAAU,KAAK,KAAK,OAC3E,cAAc,OAAO;AAAA,gBACxB,EAAE,OAAO,CAAC,MAAM,SAAS,EAAA;AAAA,cAAE;AAAA,YAC5B;AAAA,UAEF;AAAA,QACD;AAAA,MACD;AAAA,IAAA;AAAA,EACD;AAEF;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const graphql = require("graphql");
|
|
4
|
+
function NoUnusedFragmentsRule(context) {
|
|
5
|
+
const operationDefs = [];
|
|
6
|
+
const fragmentDefs = [];
|
|
7
|
+
return {
|
|
8
|
+
OperationDefinition(node) {
|
|
9
|
+
operationDefs.push(node);
|
|
10
|
+
return false;
|
|
11
|
+
},
|
|
12
|
+
FragmentDefinition(node) {
|
|
13
|
+
fragmentDefs.push(node);
|
|
14
|
+
return false;
|
|
15
|
+
},
|
|
16
|
+
Document: {
|
|
17
|
+
leave() {
|
|
18
|
+
const fragmentNameUsed = /* @__PURE__ */ new Set();
|
|
19
|
+
for (const operation of operationDefs) {
|
|
20
|
+
for (const fragment of context.getRecursivelyReferencedFragments(operation)) {
|
|
21
|
+
fragmentNameUsed.add(fragment.name.value);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
for (const fragmentDef of fragmentDefs) {
|
|
25
|
+
const fragName = fragmentDef.name.value;
|
|
26
|
+
if (!fragmentNameUsed.has(fragName)) {
|
|
27
|
+
context.reportError(
|
|
28
|
+
new graphql.GraphQLError(`Fragment "${fragName}" is never used.`, {
|
|
29
|
+
nodes: fragmentDef
|
|
30
|
+
})
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.NoUnusedFragmentsRule = NoUnusedFragmentsRule;
|
|
39
|
+
//# sourceMappingURL=NoUnusedFragmentsRule.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoUnusedFragmentsRule.cjs","sources":["../../../../../../packages/graphql-json/src/validation/rules/NoUnusedFragmentsRule.ts"],"sourcesContent":["/**\n * No unused fragments\n *\n * A GraphQL document is only valid if all fragment definitions are spread\n * within operations, or spread within other fragments spread within operations.\n *\n * See https://spec.graphql.org/draft/#sec-Fragments-Must-Be-Used\n */\nimport type { ASTVisitor, FragmentDefinitionNode, OperationDefinitionNode } from 'graphql'\nimport { GraphQLError } from 'graphql'\n\nimport type { ValidationContext } from '../ValidationContext.js'\n\nexport function NoUnusedFragmentsRule(context: ValidationContext): ASTVisitor {\n\tconst operationDefs: OperationDefinitionNode[] = []\n\tconst fragmentDefs: FragmentDefinitionNode[] = []\n\n\treturn {\n\t\tOperationDefinition(node) {\n\t\t\toperationDefs.push(node)\n\t\t\treturn false // Don't visit deeper\n\t\t},\n\t\tFragmentDefinition(node) {\n\t\t\tfragmentDefs.push(node)\n\t\t\treturn false // Don't visit deeper\n\t\t},\n\t\tDocument: {\n\t\t\tleave() {\n\t\t\t\tconst fragmentNameUsed = new Set<string>()\n\t\t\t\tfor (const operation of operationDefs) {\n\t\t\t\t\tfor (const fragment of context.getRecursivelyReferencedFragments(operation)) {\n\t\t\t\t\t\tfragmentNameUsed.add(fragment.name.value)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (const fragmentDef of fragmentDefs) {\n\t\t\t\t\tconst fragName = fragmentDef.name.value\n\t\t\t\t\tif (!fragmentNameUsed.has(fragName)) {\n\t\t\t\t\t\tcontext.reportError(\n\t\t\t\t\t\t\tnew GraphQLError(`Fragment \"${fragName}\" is never used.`, {\n\t\t\t\t\t\t\t\tnodes: fragmentDef,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t}\n}\n"],"names":["GraphQLError"],"mappings":";;;AAaO,SAAS,sBAAsB,SAAwC;AAC7E,QAAM,gBAA2C,CAAA;AACjD,QAAM,eAAyC,CAAA;AAE/C,SAAO;AAAA,IACN,oBAAoB,MAAM;AACzB,oBAAc,KAAK,IAAI;AACvB,aAAO;AAAA,IACR;AAAA,IACA,mBAAmB,MAAM;AACxB,mBAAa,KAAK,IAAI;AACtB,aAAO;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACT,QAAQ;AACP,cAAM,uCAAuB,IAAA;AAC7B,mBAAW,aAAa,eAAe;AACtC,qBAAW,YAAY,QAAQ,kCAAkC,SAAS,GAAG;AAC5E,6BAAiB,IAAI,SAAS,KAAK,KAAK;AAAA,UACzC;AAAA,QACD;AAEA,mBAAW,eAAe,cAAc;AACvC,gBAAM,WAAW,YAAY,KAAK;AAClC,cAAI,CAAC,iBAAiB,IAAI,QAAQ,GAAG;AACpC,oBAAQ;AAAA,cACP,IAAIA,QAAAA,aAAa,aAAa,QAAQ,oBAAoB;AAAA,gBACzD,OAAO;AAAA,cAAA,CACP;AAAA,YAAA;AAAA,UAEH;AAAA,QACD;AAAA,MACD;AAAA,IAAA;AAAA,EACD;AAEF;;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { GraphQLError } from "graphql";
|
|
2
|
+
function NoUnusedFragmentsRule(context) {
|
|
3
|
+
const operationDefs = [];
|
|
4
|
+
const fragmentDefs = [];
|
|
5
|
+
return {
|
|
6
|
+
OperationDefinition(node) {
|
|
7
|
+
operationDefs.push(node);
|
|
8
|
+
return false;
|
|
9
|
+
},
|
|
10
|
+
FragmentDefinition(node) {
|
|
11
|
+
fragmentDefs.push(node);
|
|
12
|
+
return false;
|
|
13
|
+
},
|
|
14
|
+
Document: {
|
|
15
|
+
leave() {
|
|
16
|
+
const fragmentNameUsed = /* @__PURE__ */ new Set();
|
|
17
|
+
for (const operation of operationDefs) {
|
|
18
|
+
for (const fragment of context.getRecursivelyReferencedFragments(operation)) {
|
|
19
|
+
fragmentNameUsed.add(fragment.name.value);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
for (const fragmentDef of fragmentDefs) {
|
|
23
|
+
const fragName = fragmentDef.name.value;
|
|
24
|
+
if (!fragmentNameUsed.has(fragName)) {
|
|
25
|
+
context.reportError(
|
|
26
|
+
new GraphQLError(`Fragment "${fragName}" is never used.`, {
|
|
27
|
+
nodes: fragmentDef
|
|
28
|
+
})
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
NoUnusedFragmentsRule
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=NoUnusedFragmentsRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoUnusedFragmentsRule.js","sources":["../../../../../../packages/graphql-json/src/validation/rules/NoUnusedFragmentsRule.ts"],"sourcesContent":["/**\n * No unused fragments\n *\n * A GraphQL document is only valid if all fragment definitions are spread\n * within operations, or spread within other fragments spread within operations.\n *\n * See https://spec.graphql.org/draft/#sec-Fragments-Must-Be-Used\n */\nimport type { ASTVisitor, FragmentDefinitionNode, OperationDefinitionNode } from 'graphql'\nimport { GraphQLError } from 'graphql'\n\nimport type { ValidationContext } from '../ValidationContext.js'\n\nexport function NoUnusedFragmentsRule(context: ValidationContext): ASTVisitor {\n\tconst operationDefs: OperationDefinitionNode[] = []\n\tconst fragmentDefs: FragmentDefinitionNode[] = []\n\n\treturn {\n\t\tOperationDefinition(node) {\n\t\t\toperationDefs.push(node)\n\t\t\treturn false // Don't visit deeper\n\t\t},\n\t\tFragmentDefinition(node) {\n\t\t\tfragmentDefs.push(node)\n\t\t\treturn false // Don't visit deeper\n\t\t},\n\t\tDocument: {\n\t\t\tleave() {\n\t\t\t\tconst fragmentNameUsed = new Set<string>()\n\t\t\t\tfor (const operation of operationDefs) {\n\t\t\t\t\tfor (const fragment of context.getRecursivelyReferencedFragments(operation)) {\n\t\t\t\t\t\tfragmentNameUsed.add(fragment.name.value)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (const fragmentDef of fragmentDefs) {\n\t\t\t\t\tconst fragName = fragmentDef.name.value\n\t\t\t\t\tif (!fragmentNameUsed.has(fragName)) {\n\t\t\t\t\t\tcontext.reportError(\n\t\t\t\t\t\t\tnew GraphQLError(`Fragment \"${fragName}\" is never used.`, {\n\t\t\t\t\t\t\t\tnodes: fragmentDef,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t}\n}\n"],"names":[],"mappings":";AAaO,SAAS,sBAAsB,SAAwC;AAC7E,QAAM,gBAA2C,CAAA;AACjD,QAAM,eAAyC,CAAA;AAE/C,SAAO;AAAA,IACN,oBAAoB,MAAM;AACzB,oBAAc,KAAK,IAAI;AACvB,aAAO;AAAA,IACR;AAAA,IACA,mBAAmB,MAAM;AACxB,mBAAa,KAAK,IAAI;AACtB,aAAO;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACT,QAAQ;AACP,cAAM,uCAAuB,IAAA;AAC7B,mBAAW,aAAa,eAAe;AACtC,qBAAW,YAAY,QAAQ,kCAAkC,SAAS,GAAG;AAC5E,6BAAiB,IAAI,SAAS,KAAK,KAAK;AAAA,UACzC;AAAA,QACD;AAEA,mBAAW,eAAe,cAAc;AACvC,gBAAM,WAAW,YAAY,KAAK;AAClC,cAAI,CAAC,iBAAiB,IAAI,QAAQ,GAAG;AACpC,oBAAQ;AAAA,cACP,IAAI,aAAa,aAAa,QAAQ,oBAAoB;AAAA,gBACzD,OAAO;AAAA,cAAA,CACP;AAAA,YAAA;AAAA,UAEH;AAAA,QACD;AAAA,MACD;AAAA,IAAA;AAAA,EACD;AAEF;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const graphql = require("graphql");
|
|
4
|
+
function NoUnusedVariablesRule(context) {
|
|
5
|
+
let variableDefs = [];
|
|
6
|
+
return {
|
|
7
|
+
OperationDefinition: {
|
|
8
|
+
enter() {
|
|
9
|
+
variableDefs = [];
|
|
10
|
+
},
|
|
11
|
+
leave(operation) {
|
|
12
|
+
const variableNameUsed = /* @__PURE__ */ new Set();
|
|
13
|
+
const usages = context.getRecursiveVariableUsages(operation);
|
|
14
|
+
for (const { node } of usages) {
|
|
15
|
+
variableNameUsed.add(node.name.value);
|
|
16
|
+
}
|
|
17
|
+
for (const variableDef of variableDefs) {
|
|
18
|
+
const variableName = variableDef.variable.name.value;
|
|
19
|
+
if (!variableNameUsed.has(variableName)) {
|
|
20
|
+
context.reportError(
|
|
21
|
+
new graphql.GraphQLError(
|
|
22
|
+
operation.name ? `Variable "$${variableName}" is never used in operation "${operation.name.value}".` : `Variable "$${variableName}" is never used.`,
|
|
23
|
+
{ nodes: variableDef }
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
VariableDefinition(def) {
|
|
31
|
+
variableDefs.push(def);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
exports.NoUnusedVariablesRule = NoUnusedVariablesRule;
|
|
36
|
+
//# sourceMappingURL=NoUnusedVariablesRule.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoUnusedVariablesRule.cjs","sources":["../../../../../../packages/graphql-json/src/validation/rules/NoUnusedVariablesRule.ts"],"sourcesContent":["/**\n * No unused variables\n *\n * A GraphQL operation is only valid if all variables defined by an operation\n * are used, either directly or within a spread fragment.\n *\n * See https://spec.graphql.org/draft/#sec-All-Variables-Used\n */\nimport type { ASTVisitor, VariableDefinitionNode } from 'graphql'\nimport { GraphQLError } from 'graphql'\n\nimport type { ValidationContext } from '../ValidationContext.js'\n\nexport function NoUnusedVariablesRule(context: ValidationContext): ASTVisitor {\n\tlet variableDefs: VariableDefinitionNode[] = []\n\n\treturn {\n\t\tOperationDefinition: {\n\t\t\tenter() {\n\t\t\t\tvariableDefs = []\n\t\t\t},\n\t\t\tleave(operation) {\n\t\t\t\tconst variableNameUsed = new Set<string>()\n\t\t\t\tconst usages = context.getRecursiveVariableUsages(operation)\n\n\t\t\t\tfor (const { node } of usages) {\n\t\t\t\t\tvariableNameUsed.add(node.name.value)\n\t\t\t\t}\n\n\t\t\t\tfor (const variableDef of variableDefs) {\n\t\t\t\t\tconst variableName = variableDef.variable.name.value\n\t\t\t\t\tif (!variableNameUsed.has(variableName)) {\n\t\t\t\t\t\tcontext.reportError(\n\t\t\t\t\t\t\tnew GraphQLError(\n\t\t\t\t\t\t\t\toperation.name\n\t\t\t\t\t\t\t\t\t? `Variable \"$${variableName}\" is never used in operation \"${operation.name.value}\".`\n\t\t\t\t\t\t\t\t\t: `Variable \"$${variableName}\" is never used.`,\n\t\t\t\t\t\t\t\t{ nodes: variableDef },\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t\tVariableDefinition(def) {\n\t\t\tvariableDefs.push(def)\n\t\t},\n\t}\n}\n"],"names":["GraphQLError"],"mappings":";;;AAaO,SAAS,sBAAsB,SAAwC;AAC7E,MAAI,eAAyC,CAAA;AAE7C,SAAO;AAAA,IACN,qBAAqB;AAAA,MACpB,QAAQ;AACP,uBAAe,CAAA;AAAA,MAChB;AAAA,MACA,MAAM,WAAW;AAChB,cAAM,uCAAuB,IAAA;AAC7B,cAAM,SAAS,QAAQ,2BAA2B,SAAS;AAE3D,mBAAW,EAAE,KAAA,KAAU,QAAQ;AAC9B,2BAAiB,IAAI,KAAK,KAAK,KAAK;AAAA,QACrC;AAEA,mBAAW,eAAe,cAAc;AACvC,gBAAM,eAAe,YAAY,SAAS,KAAK;AAC/C,cAAI,CAAC,iBAAiB,IAAI,YAAY,GAAG;AACxC,oBAAQ;AAAA,cACP,IAAIA,QAAAA;AAAAA,gBACH,UAAU,OACP,cAAc,YAAY,iCAAiC,UAAU,KAAK,KAAK,OAC/E,cAAc,YAAY;AAAA,gBAC7B,EAAE,OAAO,YAAA;AAAA,cAAY;AAAA,YACtB;AAAA,UAEF;AAAA,QACD;AAAA,MACD;AAAA,IAAA;AAAA,IAED,mBAAmB,KAAK;AACvB,mBAAa,KAAK,GAAG;AAAA,IACtB;AAAA,EAAA;AAEF;;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { GraphQLError } from "graphql";
|
|
2
|
+
function NoUnusedVariablesRule(context) {
|
|
3
|
+
let variableDefs = [];
|
|
4
|
+
return {
|
|
5
|
+
OperationDefinition: {
|
|
6
|
+
enter() {
|
|
7
|
+
variableDefs = [];
|
|
8
|
+
},
|
|
9
|
+
leave(operation) {
|
|
10
|
+
const variableNameUsed = /* @__PURE__ */ new Set();
|
|
11
|
+
const usages = context.getRecursiveVariableUsages(operation);
|
|
12
|
+
for (const { node } of usages) {
|
|
13
|
+
variableNameUsed.add(node.name.value);
|
|
14
|
+
}
|
|
15
|
+
for (const variableDef of variableDefs) {
|
|
16
|
+
const variableName = variableDef.variable.name.value;
|
|
17
|
+
if (!variableNameUsed.has(variableName)) {
|
|
18
|
+
context.reportError(
|
|
19
|
+
new GraphQLError(
|
|
20
|
+
operation.name ? `Variable "$${variableName}" is never used in operation "${operation.name.value}".` : `Variable "$${variableName}" is never used.`,
|
|
21
|
+
{ nodes: variableDef }
|
|
22
|
+
)
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
VariableDefinition(def) {
|
|
29
|
+
variableDefs.push(def);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
NoUnusedVariablesRule
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=NoUnusedVariablesRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoUnusedVariablesRule.js","sources":["../../../../../../packages/graphql-json/src/validation/rules/NoUnusedVariablesRule.ts"],"sourcesContent":["/**\n * No unused variables\n *\n * A GraphQL operation is only valid if all variables defined by an operation\n * are used, either directly or within a spread fragment.\n *\n * See https://spec.graphql.org/draft/#sec-All-Variables-Used\n */\nimport type { ASTVisitor, VariableDefinitionNode } from 'graphql'\nimport { GraphQLError } from 'graphql'\n\nimport type { ValidationContext } from '../ValidationContext.js'\n\nexport function NoUnusedVariablesRule(context: ValidationContext): ASTVisitor {\n\tlet variableDefs: VariableDefinitionNode[] = []\n\n\treturn {\n\t\tOperationDefinition: {\n\t\t\tenter() {\n\t\t\t\tvariableDefs = []\n\t\t\t},\n\t\t\tleave(operation) {\n\t\t\t\tconst variableNameUsed = new Set<string>()\n\t\t\t\tconst usages = context.getRecursiveVariableUsages(operation)\n\n\t\t\t\tfor (const { node } of usages) {\n\t\t\t\t\tvariableNameUsed.add(node.name.value)\n\t\t\t\t}\n\n\t\t\t\tfor (const variableDef of variableDefs) {\n\t\t\t\t\tconst variableName = variableDef.variable.name.value\n\t\t\t\t\tif (!variableNameUsed.has(variableName)) {\n\t\t\t\t\t\tcontext.reportError(\n\t\t\t\t\t\t\tnew GraphQLError(\n\t\t\t\t\t\t\t\toperation.name\n\t\t\t\t\t\t\t\t\t? `Variable \"$${variableName}\" is never used in operation \"${operation.name.value}\".`\n\t\t\t\t\t\t\t\t\t: `Variable \"$${variableName}\" is never used.`,\n\t\t\t\t\t\t\t\t{ nodes: variableDef },\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t\tVariableDefinition(def) {\n\t\t\tvariableDefs.push(def)\n\t\t},\n\t}\n}\n"],"names":[],"mappings":";AAaO,SAAS,sBAAsB,SAAwC;AAC7E,MAAI,eAAyC,CAAA;AAE7C,SAAO;AAAA,IACN,qBAAqB;AAAA,MACpB,QAAQ;AACP,uBAAe,CAAA;AAAA,MAChB;AAAA,MACA,MAAM,WAAW;AAChB,cAAM,uCAAuB,IAAA;AAC7B,cAAM,SAAS,QAAQ,2BAA2B,SAAS;AAE3D,mBAAW,EAAE,KAAA,KAAU,QAAQ;AAC9B,2BAAiB,IAAI,KAAK,KAAK,KAAK;AAAA,QACrC;AAEA,mBAAW,eAAe,cAAc;AACvC,gBAAM,eAAe,YAAY,SAAS,KAAK;AAC/C,cAAI,CAAC,iBAAiB,IAAI,YAAY,GAAG;AACxC,oBAAQ;AAAA,cACP,IAAI;AAAA,gBACH,UAAU,OACP,cAAc,YAAY,iCAAiC,UAAU,KAAK,KAAK,OAC/E,cAAc,YAAY;AAAA,gBAC7B,EAAE,OAAO,YAAA;AAAA,cAAY;AAAA,YACtB;AAAA,UAEF;AAAA,QACD;AAAA,MACD;AAAA,IAAA;AAAA,IAED,mBAAmB,KAAK;AACvB,mBAAa,KAAK,GAAG;AAAA,IACtB;AAAA,EAAA;AAEF;"}
|