@zuplo/cli 7.14.2 → 7.14.3
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/node_modules/@posthog/types/dist/posthog-config.d.ts +16 -0
- package/node_modules/@posthog/types/dist/posthog-config.d.ts.map +1 -1
- package/node_modules/@posthog/types/package.json +1 -1
- package/node_modules/@posthog/types/src/posthog-config.ts +16 -0
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-MUDGPSWL.js → chunk-ADPB2ZMZ.js} +80 -80
- package/node_modules/@zuplo/runtime/out/esm/chunk-ADPB2ZMZ.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +11 -11
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/graphql/error/GraphQLError.d.ts +5 -1
- package/node_modules/graphql/error/GraphQLError.js +12 -7
- package/node_modules/graphql/error/GraphQLError.mjs +13 -6
- package/node_modules/graphql/error/locatedError.d.ts +6 -4
- package/node_modules/graphql/error/locatedError.js +6 -4
- package/node_modules/graphql/error/locatedError.mjs +6 -4
- package/node_modules/graphql/execution/collectFields.d.ts +1 -0
- package/node_modules/graphql/execution/collectFields.js +9 -0
- package/node_modules/graphql/execution/collectFields.mjs +9 -0
- package/node_modules/graphql/execution/execute.d.ts +9 -10
- package/node_modules/graphql/execution/execute.js +44 -29
- package/node_modules/graphql/execution/execute.mjs +44 -29
- package/node_modules/graphql/execution/mapAsyncIterator.js +12 -11
- package/node_modules/graphql/execution/mapAsyncIterator.mjs +12 -11
- package/node_modules/graphql/execution/subscribe.d.ts +5 -2
- package/node_modules/graphql/execution/subscribe.js +5 -2
- package/node_modules/graphql/execution/subscribe.mjs +5 -2
- package/node_modules/graphql/execution/values.d.ts +43 -21
- package/node_modules/graphql/execution/values.js +52 -24
- package/node_modules/graphql/execution/values.mjs +51 -23
- package/node_modules/graphql/graphql.d.ts +8 -14
- package/node_modules/graphql/graphql.js +16 -15
- package/node_modules/graphql/graphql.mjs +11 -15
- package/node_modules/graphql/jsutils/SetMap.d.ts +14 -0
- package/node_modules/graphql/jsutils/SetMap.js +48 -0
- package/node_modules/graphql/jsutils/SetMap.mjs +39 -0
- package/node_modules/graphql/jsutils/isIterableObject.d.ts +2 -0
- package/node_modules/graphql/jsutils/isIterableObject.js +2 -0
- package/node_modules/graphql/jsutils/isIterableObject.mjs +2 -0
- package/node_modules/graphql/jsutils/keyMap.d.ts +2 -0
- package/node_modules/graphql/jsutils/keyMap.js +2 -0
- package/node_modules/graphql/jsutils/keyMap.mjs +2 -0
- package/node_modules/graphql/jsutils/keyValMap.d.ts +3 -3
- package/node_modules/graphql/jsutils/keyValMap.js +3 -3
- package/node_modules/graphql/jsutils/keyValMap.mjs +3 -3
- package/node_modules/graphql/language/ast.d.ts +2 -6
- package/node_modules/graphql/language/ast.js +2 -6
- package/node_modules/graphql/language/ast.mjs +2 -6
- package/node_modules/graphql/language/lexer.d.ts +6 -0
- package/node_modules/graphql/language/lexer.js +22 -0
- package/node_modules/graphql/language/lexer.mjs +22 -0
- package/node_modules/graphql/language/location.d.ts +8 -3
- package/node_modules/graphql/language/location.js +57 -17
- package/node_modules/graphql/language/location.mjs +56 -16
- package/node_modules/graphql/language/parser.d.ts +27 -13
- package/node_modules/graphql/language/parser.js +31 -9
- package/node_modules/graphql/language/parser.mjs +31 -9
- package/node_modules/graphql/language/predicates.d.ts +10 -3
- package/node_modules/graphql/language/predicates.js +10 -3
- package/node_modules/graphql/language/predicates.mjs +10 -3
- package/node_modules/graphql/language/printLocation.d.ts +2 -6
- package/node_modules/graphql/language/printLocation.js +2 -6
- package/node_modules/graphql/language/printLocation.mjs +2 -6
- package/node_modules/graphql/language/printer.d.ts +22 -3
- package/node_modules/graphql/language/printer.js +394 -308
- package/node_modules/graphql/language/printer.mjs +394 -308
- package/node_modules/graphql/language/reducer.d.ts +32 -0
- package/node_modules/graphql/language/reducer.js +95 -0
- package/node_modules/graphql/language/reducer.mjs +86 -0
- package/node_modules/graphql/language/source.d.ts +4 -5
- package/node_modules/graphql/language/source.js +4 -5
- package/node_modules/graphql/language/source.mjs +4 -5
- package/node_modules/graphql/language/visitor.d.ts +16 -10
- package/node_modules/graphql/language/visitor.js +15 -7
- package/node_modules/graphql/language/visitor.mjs +15 -7
- package/node_modules/graphql/package.json +1 -4
- package/node_modules/graphql/type/definition.d.ts +170 -102
- package/node_modules/graphql/type/definition.js +169 -96
- package/node_modules/graphql/type/definition.mjs +168 -95
- package/node_modules/graphql/type/directives.d.ts +12 -6
- package/node_modules/graphql/type/directives.js +12 -6
- package/node_modules/graphql/type/directives.mjs +12 -6
- package/node_modules/graphql/type/scalars.js +8 -11
- package/node_modules/graphql/type/scalars.mjs +1 -1
- package/node_modules/graphql/type/schema.d.ts +36 -11
- package/node_modules/graphql/type/schema.js +35 -10
- package/node_modules/graphql/type/schema.mjs +35 -10
- package/node_modules/graphql/type/validate.d.ts +1 -3
- package/node_modules/graphql/type/validate.js +1 -3
- package/node_modules/graphql/type/validate.mjs +1 -3
- package/node_modules/graphql/utilities/TypeInfo.d.ts +15 -11
- package/node_modules/graphql/utilities/TypeInfo.js +15 -11
- package/node_modules/graphql/utilities/TypeInfo.mjs +15 -11
- package/node_modules/graphql/utilities/assertValidName.d.ts +1 -1
- package/node_modules/graphql/utilities/assertValidName.js +1 -1
- package/node_modules/graphql/utilities/assertValidName.mjs +1 -1
- package/node_modules/graphql/utilities/astFromValue.d.ts +3 -1
- package/node_modules/graphql/utilities/astFromValue.js +3 -1
- package/node_modules/graphql/utilities/astFromValue.mjs +3 -1
- package/node_modules/graphql/utilities/buildASTSchema.d.ts +8 -8
- package/node_modules/graphql/utilities/buildASTSchema.js +9 -20
- package/node_modules/graphql/utilities/buildASTSchema.mjs +9 -20
- package/node_modules/graphql/utilities/buildClientSchema.d.ts +6 -2
- package/node_modules/graphql/utilities/buildClientSchema.js +6 -2
- package/node_modules/graphql/utilities/buildClientSchema.mjs +6 -2
- package/node_modules/graphql/utilities/coerceInputValue.d.ts +9 -3
- package/node_modules/graphql/utilities/coerceInputValue.js +60 -13
- package/node_modules/graphql/utilities/coerceInputValue.mjs +58 -13
- package/node_modules/graphql/utilities/concatAST.d.ts +4 -1
- package/node_modules/graphql/utilities/concatAST.js +4 -1
- package/node_modules/graphql/utilities/concatAST.mjs +4 -1
- package/node_modules/graphql/utilities/extendSchema.d.ts +7 -4
- package/node_modules/graphql/utilities/extendSchema.js +7 -4
- package/node_modules/graphql/utilities/extendSchema.mjs +7 -4
- package/node_modules/graphql/utilities/findBreakingChanges.d.ts +2 -2
- package/node_modules/graphql/utilities/findBreakingChanges.js +2 -2
- package/node_modules/graphql/utilities/findBreakingChanges.mjs +2 -2
- package/node_modules/graphql/utilities/getIntrospectionQuery.d.ts +9 -9
- package/node_modules/graphql/utilities/getIntrospectionQuery.js +8 -8
- package/node_modules/graphql/utilities/getIntrospectionQuery.mjs +8 -8
- package/node_modules/graphql/utilities/getOperationAST.d.ts +2 -2
- package/node_modules/graphql/utilities/getOperationAST.js +2 -2
- package/node_modules/graphql/utilities/getOperationAST.mjs +2 -2
- package/node_modules/graphql/utilities/getOperationRootType.d.ts +3 -1
- package/node_modules/graphql/utilities/getOperationRootType.js +3 -1
- package/node_modules/graphql/utilities/getOperationRootType.mjs +3 -1
- package/node_modules/graphql/utilities/introspectionFromSchema.d.ts +12 -4
- package/node_modules/graphql/utilities/introspectionFromSchema.js +12 -4
- package/node_modules/graphql/utilities/introspectionFromSchema.mjs +12 -4
- package/node_modules/graphql/utilities/lexicographicSortSchema.d.ts +17 -13
- package/node_modules/graphql/utilities/lexicographicSortSchema.js +17 -13
- package/node_modules/graphql/utilities/lexicographicSortSchema.mjs +17 -13
- package/node_modules/graphql/utilities/printSchema.d.ts +7 -4
- package/node_modules/graphql/utilities/printSchema.js +7 -4
- package/node_modules/graphql/utilities/printSchema.mjs +7 -4
- package/node_modules/graphql/utilities/resolveSchemaCoordinate.d.ts +9 -8
- package/node_modules/graphql/utilities/resolveSchemaCoordinate.js +9 -8
- package/node_modules/graphql/utilities/resolveSchemaCoordinate.mjs +9 -8
- package/node_modules/graphql/utilities/separateOperations.d.ts +2 -2
- package/node_modules/graphql/utilities/separateOperations.js +2 -2
- package/node_modules/graphql/utilities/separateOperations.mjs +2 -2
- package/node_modules/graphql/utilities/stripIgnoredCharacters.d.ts +19 -5
- package/node_modules/graphql/utilities/stripIgnoredCharacters.js +19 -5
- package/node_modules/graphql/utilities/stripIgnoredCharacters.mjs +19 -5
- package/node_modules/graphql/utilities/typeComparators.d.ts +1 -5
- package/node_modules/graphql/utilities/typeComparators.js +1 -5
- package/node_modules/graphql/utilities/typeComparators.mjs +1 -5
- package/node_modules/graphql/utilities/valueFromAST.js +4 -4
- package/node_modules/graphql/utilities/valueFromAST.mjs +4 -4
- package/node_modules/graphql/utilities/valueFromASTUntyped.d.ts +1 -3
- package/node_modules/graphql/utilities/valueFromASTUntyped.js +1 -3
- package/node_modules/graphql/utilities/valueFromASTUntyped.mjs +1 -3
- package/node_modules/graphql/validation/ValidationContext.d.ts +22 -3
- package/node_modules/graphql/validation/ValidationContext.js +84 -27
- package/node_modules/graphql/validation/ValidationContext.mjs +82 -27
- package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.d.ts +6 -4
- package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js +6 -4
- package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs +6 -4
- package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.d.ts +4 -4
- package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js +10 -6
- package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs +12 -6
- package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.d.ts +6 -4
- package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js +6 -4
- package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs +6 -4
- package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.d.ts +4 -4
- package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js +26 -17
- package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.mjs +21 -11
- package/node_modules/graphql/validation/rules/KnownDirectivesRule.d.ts +1 -3
- package/node_modules/graphql/validation/rules/KnownDirectivesRule.js +1 -3
- package/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs +1 -3
- package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.d.ts +4 -4
- package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js +4 -4
- package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.mjs +4 -4
- package/node_modules/graphql/validation/rules/KnownTypeNamesRule.d.ts +1 -3
- package/node_modules/graphql/validation/rules/KnownTypeNamesRule.js +7 -7
- package/node_modules/graphql/validation/rules/KnownTypeNamesRule.mjs +7 -7
- package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.d.ts +6 -4
- package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js +6 -4
- package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.mjs +6 -4
- package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.d.ts +6 -4
- package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js +44 -19
- package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.mjs +44 -19
- package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.d.ts +1 -3
- package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js +1 -3
- package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.mjs +1 -3
- package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.d.ts +4 -4
- package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js +4 -4
- package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.mjs +4 -4
- package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts +4 -4
- package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js +10 -14
- package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.mjs +10 -14
- package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.d.ts +4 -4
- package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js +4 -4
- package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.mjs +4 -4
- package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts +8 -6
- package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js +552 -354
- package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +545 -352
- package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.d.ts +6 -4
- package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js +6 -4
- package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.mjs +6 -4
- package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.d.ts +6 -4
- package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js +6 -4
- package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs +6 -4
- package/node_modules/graphql/validation/rules/ScalarLeafsRule.d.ts +1 -3
- package/node_modules/graphql/validation/rules/ScalarLeafsRule.js +1 -3
- package/node_modules/graphql/validation/rules/ScalarLeafsRule.mjs +1 -3
- package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts +6 -4
- package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js +50 -9
- package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs +50 -9
- package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.d.ts +4 -4
- package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js +4 -4
- package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs +4 -4
- package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.d.ts +6 -4
- package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +6 -4
- package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs +6 -4
- package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.d.ts +4 -4
- package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js +4 -4
- package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.mjs +4 -4
- package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.d.ts +6 -4
- package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js +6 -4
- package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.mjs +6 -4
- package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.d.ts +4 -4
- package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js +4 -4
- package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.mjs +4 -4
- package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.d.ts +4 -4
- package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js +4 -4
- package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.mjs +4 -4
- package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.d.ts +4 -4
- package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +29 -23
- package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs +24 -14
- package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.d.ts +6 -4
- package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js +6 -4
- package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.mjs +6 -4
- package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.d.ts +6 -4
- package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js +6 -4
- package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.mjs +6 -4
- package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.d.ts +4 -4
- package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.js +4 -4
- package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.mjs +4 -4
- package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.ts +7 -5
- package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +7 -5
- package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs +7 -5
- package/node_modules/graphql/validation/validate.d.ts +2 -0
- package/node_modules/graphql/validation/validate.js +14 -2
- package/node_modules/graphql/validation/validate.mjs +13 -2
- package/node_modules/graphql/validation/validationAbortedError.d.ts +3 -0
- package/node_modules/graphql/validation/validationAbortedError.js +14 -0
- package/node_modules/graphql/validation/validationAbortedError.mjs +4 -0
- package/node_modules/graphql/version.js +3 -3
- package/node_modules/graphql/version.mjs +3 -3
- package/package.json +11 -11
- package/node_modules/@zuplo/runtime/out/esm/chunk-MUDGPSWL.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-MUDGPSWL.js.LEGAL.txt → chunk-ADPB2ZMZ.js.LEGAL.txt} +0 -0
|
@@ -24,6 +24,8 @@ var _TypeInfo = require('../utilities/TypeInfo.js');
|
|
|
24
24
|
|
|
25
25
|
var _specifiedRules = require('./specifiedRules.js');
|
|
26
26
|
|
|
27
|
+
var _validationAbortedError = require('./validationAbortedError.js');
|
|
28
|
+
|
|
27
29
|
var _ValidationContext = require('./ValidationContext.js');
|
|
28
30
|
|
|
29
31
|
/** @category Validation */
|
|
@@ -119,7 +121,7 @@ function validate(
|
|
|
119
121
|
*/
|
|
120
122
|
typeInfo = new _TypeInfo.TypeInfo(schema),
|
|
121
123
|
) {
|
|
122
|
-
var _options$maxErrors;
|
|
124
|
+
var _options$maxErrors, _options$hideSuggesti;
|
|
123
125
|
|
|
124
126
|
const maxErrors =
|
|
125
127
|
(_options$maxErrors =
|
|
@@ -127,6 +129,13 @@ function validate(
|
|
|
127
129
|
null && _options$maxErrors !== void 0
|
|
128
130
|
? _options$maxErrors
|
|
129
131
|
: 100;
|
|
132
|
+
const hideSuggestions =
|
|
133
|
+
(_options$hideSuggesti =
|
|
134
|
+
options === null || options === void 0
|
|
135
|
+
? void 0
|
|
136
|
+
: options.hideSuggestions) !== null && _options$hideSuggesti !== void 0
|
|
137
|
+
? _options$hideSuggesti
|
|
138
|
+
: false;
|
|
130
139
|
documentAST || (0, _devAssert.devAssert)(false, 'Must provide document.'); // If the schema used for validation is invalid, throw an error.
|
|
131
140
|
|
|
132
141
|
(0, _validate.assertValidSchema)(schema);
|
|
@@ -149,6 +158,7 @@ function validate(
|
|
|
149
158
|
|
|
150
159
|
errors.push(error);
|
|
151
160
|
},
|
|
161
|
+
hideSuggestions,
|
|
152
162
|
); // This uses a specialized visitor which runs multiple visitors in parallel,
|
|
153
163
|
// while maintaining the visitor skip and break API.
|
|
154
164
|
|
|
@@ -163,7 +173,9 @@ function validate(
|
|
|
163
173
|
QueryDocumentKeysToValidate,
|
|
164
174
|
);
|
|
165
175
|
} catch (e) {
|
|
166
|
-
if (e
|
|
176
|
+
if (e === _validationAbortedError.validationAbortedError) {
|
|
177
|
+
errors.push(_validationAbortedError.validationAbortedError);
|
|
178
|
+
} else if (e !== abortObj) {
|
|
167
179
|
throw e;
|
|
168
180
|
}
|
|
169
181
|
}
|
|
@@ -7,6 +7,7 @@ import { visit, visitInParallel } from '../language/visitor.mjs';
|
|
|
7
7
|
import { assertValidSchema } from '../type/validate.mjs';
|
|
8
8
|
import { TypeInfo, visitWithTypeInfo } from '../utilities/TypeInfo.mjs';
|
|
9
9
|
import { specifiedRules, specifiedSDLRules } from './specifiedRules.mjs';
|
|
10
|
+
import { validationAbortedError } from './validationAbortedError.mjs';
|
|
10
11
|
import {
|
|
11
12
|
SDLValidationContext,
|
|
12
13
|
ValidationContext,
|
|
@@ -102,7 +103,7 @@ export function validate(
|
|
|
102
103
|
*/
|
|
103
104
|
typeInfo = new TypeInfo(schema),
|
|
104
105
|
) {
|
|
105
|
-
var _options$maxErrors;
|
|
106
|
+
var _options$maxErrors, _options$hideSuggesti;
|
|
106
107
|
|
|
107
108
|
const maxErrors =
|
|
108
109
|
(_options$maxErrors =
|
|
@@ -110,6 +111,13 @@ export function validate(
|
|
|
110
111
|
null && _options$maxErrors !== void 0
|
|
111
112
|
? _options$maxErrors
|
|
112
113
|
: 100;
|
|
114
|
+
const hideSuggestions =
|
|
115
|
+
(_options$hideSuggesti =
|
|
116
|
+
options === null || options === void 0
|
|
117
|
+
? void 0
|
|
118
|
+
: options.hideSuggestions) !== null && _options$hideSuggesti !== void 0
|
|
119
|
+
? _options$hideSuggesti
|
|
120
|
+
: false;
|
|
113
121
|
documentAST || devAssert(false, 'Must provide document.'); // If the schema used for validation is invalid, throw an error.
|
|
114
122
|
|
|
115
123
|
assertValidSchema(schema);
|
|
@@ -132,6 +140,7 @@ export function validate(
|
|
|
132
140
|
|
|
133
141
|
errors.push(error);
|
|
134
142
|
},
|
|
143
|
+
hideSuggestions,
|
|
135
144
|
); // This uses a specialized visitor which runs multiple visitors in parallel,
|
|
136
145
|
// while maintaining the visitor skip and break API.
|
|
137
146
|
|
|
@@ -144,7 +153,9 @@ export function validate(
|
|
|
144
153
|
QueryDocumentKeysToValidate,
|
|
145
154
|
);
|
|
146
155
|
} catch (e) {
|
|
147
|
-
if (e
|
|
156
|
+
if (e === validationAbortedError) {
|
|
157
|
+
errors.push(validationAbortedError);
|
|
158
|
+
} else if (e !== abortObj) {
|
|
148
159
|
throw e;
|
|
149
160
|
}
|
|
150
161
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true,
|
|
5
|
+
});
|
|
6
|
+
exports.validationAbortedError = void 0;
|
|
7
|
+
|
|
8
|
+
var _GraphQLError = require('../error/GraphQLError.js');
|
|
9
|
+
|
|
10
|
+
/** @internal */
|
|
11
|
+
const validationAbortedError = new _GraphQLError.GraphQLError(
|
|
12
|
+
'Validation aborted.',
|
|
13
|
+
);
|
|
14
|
+
exports.validationAbortedError = validationAbortedError;
|
|
@@ -10,14 +10,14 @@ exports.versionInfo = exports.version = void 0;
|
|
|
10
10
|
// automatically updated by "npm version" command.
|
|
11
11
|
|
|
12
12
|
/** A string containing the version of the GraphQL.js library */
|
|
13
|
-
const version = '16.
|
|
13
|
+
const version = '16.15.0';
|
|
14
14
|
/** An object containing the components of the GraphQL.js version string */
|
|
15
15
|
|
|
16
16
|
exports.version = version;
|
|
17
17
|
const versionInfo = Object.freeze({
|
|
18
18
|
major: 16,
|
|
19
|
-
minor:
|
|
20
|
-
patch:
|
|
19
|
+
minor: 15,
|
|
20
|
+
patch: 0,
|
|
21
21
|
preReleaseTag: null,
|
|
22
22
|
});
|
|
23
23
|
exports.versionInfo = versionInfo;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// automatically updated by "npm version" command.
|
|
4
4
|
|
|
5
5
|
/** A string containing the version of the GraphQL.js library */
|
|
6
|
-
export const version = '16.
|
|
6
|
+
export const version = '16.15.0';
|
|
7
7
|
/** An object containing the components of the GraphQL.js version string */
|
|
8
8
|
|
|
9
9
|
export const versionInfo = Object.freeze({
|
|
10
10
|
major: 16,
|
|
11
|
-
minor:
|
|
12
|
-
patch:
|
|
11
|
+
minor: 15,
|
|
12
|
+
patch: 0,
|
|
13
13
|
preReleaseTag: null,
|
|
14
14
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuplo/cli",
|
|
3
|
-
"version": "7.14.
|
|
3
|
+
"version": "7.14.3",
|
|
4
4
|
"repository": "https://github.com/zuplo/zuplo",
|
|
5
5
|
"author": "Zuplo, Inc.",
|
|
6
6
|
"type": "module",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"@opentelemetry/api": "1.9.0",
|
|
32
32
|
"@opentelemetry/api-logs": "0.220.0",
|
|
33
33
|
"@swc/core": "1.10.18",
|
|
34
|
-
"@zuplo/core": "7.14.
|
|
34
|
+
"@zuplo/core": "7.14.3",
|
|
35
35
|
"@zuplo/editor": "1.0.39603386871",
|
|
36
|
-
"@zuplo/openapi-tools": "7.14.
|
|
37
|
-
"@zuplo/runtime": "7.14.
|
|
36
|
+
"@zuplo/openapi-tools": "7.14.3",
|
|
37
|
+
"@zuplo/runtime": "7.14.3",
|
|
38
38
|
"chalk": "5.4.1",
|
|
39
39
|
"chokidar": "3.5.3",
|
|
40
40
|
"cookie": "1.0.2",
|
|
@@ -65,15 +65,15 @@
|
|
|
65
65
|
"workerd": "1.20261002.1",
|
|
66
66
|
"yargs": "17.7.2",
|
|
67
67
|
"zod": "4.6.7",
|
|
68
|
-
"@zuplo/graphql": "7.14.
|
|
69
|
-
"@zuplo/otel": "7.14.
|
|
68
|
+
"@zuplo/graphql": "7.14.3",
|
|
69
|
+
"@zuplo/otel": "7.14.3"
|
|
70
70
|
},
|
|
71
71
|
"optionalDependencies": {
|
|
72
|
-
"@zuplo/lint-darwin-arm64": "7.14.
|
|
73
|
-
"@zuplo/lint-darwin-x64": "7.14.
|
|
74
|
-
"@zuplo/lint-linux-x64": "7.14.
|
|
75
|
-
"@zuplo/lint-linux-arm64": "7.14.
|
|
76
|
-
"@zuplo/lint-win32-x64": "7.14.
|
|
72
|
+
"@zuplo/lint-darwin-arm64": "7.14.3",
|
|
73
|
+
"@zuplo/lint-darwin-x64": "7.14.3",
|
|
74
|
+
"@zuplo/lint-linux-x64": "7.14.3",
|
|
75
|
+
"@zuplo/lint-linux-arm64": "7.14.3",
|
|
76
|
+
"@zuplo/lint-win32-x64": "7.14.3"
|
|
77
77
|
},
|
|
78
78
|
"bundleDependencies": [
|
|
79
79
|
"@inquirer/prompts",
|