@graphql-tools/utils 10.10.3-alpha-20251112095908-9cd34f349661549ef3c7c0e534eaba93497fcefd → 10.10.4-alpha-20251122015643-c52cd467005d194b074d929c833325b0222b2fdc
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.
|
@@ -33,7 +33,7 @@ function getDocumentNodeFromSchema(schema, options = {}) {
|
|
|
33
33
|
const definitions = schemaNode != null ? [schemaNode] : [];
|
|
34
34
|
const directives = schema.getDirectives();
|
|
35
35
|
for (const directive of directives) {
|
|
36
|
-
if (
|
|
36
|
+
if (graphql_1.specifiedDirectives.some(specifiedDirective => specifiedDirective === directive)) {
|
|
37
37
|
continue;
|
|
38
38
|
}
|
|
39
39
|
definitions.push(astFromDirective(directive, schema, pathToDirectivesInExtensions));
|
package/cjs/rewire.js
CHANGED
|
@@ -33,7 +33,7 @@ function rewireTypes(originalTypeMap, directives) {
|
|
|
33
33
|
directives: newDirectives,
|
|
34
34
|
};
|
|
35
35
|
function rewireDirective(directive) {
|
|
36
|
-
if (
|
|
36
|
+
if (graphql_1.specifiedDirectives.some(specifiedDirective => specifiedDirective === directive)) {
|
|
37
37
|
return directive;
|
|
38
38
|
}
|
|
39
39
|
const directiveConfig = directive.toConfig();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLDeprecatedDirective, isEnumType, isInputObjectType, isInterfaceType, isIntrospectionType, isObjectType, isScalarType,
|
|
1
|
+
import { GraphQLDeprecatedDirective, isEnumType, isInputObjectType, isInterfaceType, isIntrospectionType, isObjectType, isScalarType, isSpecifiedScalarType, isUnionType, Kind, print, specifiedDirectives, } from 'graphql';
|
|
2
2
|
import { astFromType } from './astFromType.js';
|
|
3
3
|
import { astFromValue } from './astFromValue.js';
|
|
4
4
|
import { astFromValueUntyped } from './astFromValueUntyped.js';
|
|
@@ -13,7 +13,7 @@ export function getDocumentNodeFromSchema(schema, options = {}) {
|
|
|
13
13
|
const definitions = schemaNode != null ? [schemaNode] : [];
|
|
14
14
|
const directives = schema.getDirectives();
|
|
15
15
|
for (const directive of directives) {
|
|
16
|
-
if (
|
|
16
|
+
if (specifiedDirectives.some(specifiedDirective => specifiedDirective === directive)) {
|
|
17
17
|
continue;
|
|
18
18
|
}
|
|
19
19
|
definitions.push(astFromDirective(directive, schema, pathToDirectivesInExtensions));
|
package/esm/rewire.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLDirective, GraphQLEnumType, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLScalarType, GraphQLUnionType, isEnumType, isInputObjectType, isInterfaceType, isListType, isNamedType, isNonNullType, isObjectType, isScalarType,
|
|
1
|
+
import { GraphQLDirective, GraphQLEnumType, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLScalarType, GraphQLUnionType, isEnumType, isInputObjectType, isInterfaceType, isListType, isNamedType, isNonNullType, isObjectType, isScalarType, isSpecifiedScalarType, isUnionType, specifiedDirectives, } from 'graphql';
|
|
2
2
|
import { getBuiltInForStub, isNamedStub } from './stub.js';
|
|
3
3
|
export function rewireTypes(originalTypeMap, directives) {
|
|
4
4
|
const referenceTypeMap = Object.create(null);
|
|
@@ -30,7 +30,7 @@ export function rewireTypes(originalTypeMap, directives) {
|
|
|
30
30
|
directives: newDirectives,
|
|
31
31
|
};
|
|
32
32
|
function rewireDirective(directive) {
|
|
33
|
-
if (
|
|
33
|
+
if (specifiedDirectives.some(specifiedDirective => specifiedDirective === directive)) {
|
|
34
34
|
return directive;
|
|
35
35
|
}
|
|
36
36
|
const directiveConfig = directive.toConfig();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/utils",
|
|
3
|
-
"version": "10.10.
|
|
3
|
+
"version": "10.10.4-alpha-20251122015643-c52cd467005d194b074d929c833325b0222b2fdc",
|
|
4
4
|
"description": "Common package containing utils and types for GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|