@graphitation/supermassive 3.4.2 → 3.5.1
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/.eslintcache +1 -1
- package/CHANGELOG.md +17 -1
- package/lib/executeWithoutSchema.d.ts +1 -1
- package/lib/executeWithoutSchema.d.ts.map +1 -1
- package/lib/executeWithoutSchema.js +56 -14
- package/lib/executeWithoutSchema.js.map +2 -2
- package/lib/executeWithoutSchema.mjs +56 -14
- package/lib/executeWithoutSchema.mjs.map +2 -2
- package/lib/hooks/types.d.ts +18 -16
- package/lib/hooks/types.d.ts.map +1 -1
- package/lib/hooks/types.js.map +1 -1
- package/lib/index.d.ts +5 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -0
- package/lib/index.js.map +2 -2
- package/lib/index.mjs +6 -0
- package/lib/index.mjs.map +2 -2
- package/lib/jsutils/printPathArray.d.ts.map +1 -1
- package/lib/jsutils/printPathArray.js +12 -3
- package/lib/jsutils/printPathArray.js.map +2 -2
- package/lib/jsutils/printPathArray.mjs +12 -3
- package/lib/jsutils/printPathArray.mjs.map +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -43,9 +43,12 @@ __export(src_exports, {
|
|
|
43
43
|
isIncrementalExecutionResult: () => import_executeWithoutSchema.isIncrementalExecutionResult,
|
|
44
44
|
isListType: () => import_reference.isListType,
|
|
45
45
|
isNonNullType: () => import_reference.isNonNullType,
|
|
46
|
+
isPromise: () => import_isPromise.isPromise,
|
|
46
47
|
isTotalExecutionResult: () => import_executeWithoutSchema.isTotalExecutionResult,
|
|
47
48
|
mergeResolvers: () => import_mergeResolvers.mergeResolvers,
|
|
48
49
|
mergeSchemaDefinitions: () => import_mergeSchemaDefinitions.mergeSchemaDefinitions,
|
|
50
|
+
pathToArray: () => import_Path.pathToArray,
|
|
51
|
+
printPathArray: () => import_printPathArray.printPathArray,
|
|
49
52
|
schemaFragmentFromMinimalViableSchemaDocument: () => import_schemaFragmentFromMinimalViableSchemaDocument.schemaFragmentFromMinimalViableSchemaDocument,
|
|
50
53
|
specifiedScalarResolvers: () => import_resolvers.specifiedScalarResolvers,
|
|
51
54
|
subscribeWithSchema: () => import_subscribeWithSchema.subscribeWithSchema,
|
|
@@ -71,6 +74,9 @@ var import_extractMinimalViableSchemaForRequestDocument = require("./utilities/e
|
|
|
71
74
|
var import_mergeResolvers = require("./utilities/mergeResolvers");
|
|
72
75
|
var import_mergeSchemaDefinitions = require("./utilities/mergeSchemaDefinitions");
|
|
73
76
|
var import_schemaFragmentFromMinimalViableSchemaDocument = require("./utilities/schemaFragmentFromMinimalViableSchemaDocument");
|
|
77
|
+
var import_Path = require("./jsutils/Path");
|
|
78
|
+
var import_isPromise = require("./jsutils/isPromise");
|
|
79
|
+
var import_printPathArray = require("./jsutils/printPathArray");
|
|
74
80
|
var LegacyTypedAST = __toESM(require("./legacyAST/TypedAST"));
|
|
75
81
|
var import_addTypesToRequestDocument = require("./legacyAST/addTypesToRequestDocument");
|
|
76
82
|
var import_annotateDocumentGraphQLTransform2 = require("./legacyAST/annotateDocumentGraphQLTransform");
|
package/lib/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { executeWithSchema } from \"./executeWithSchema\";\nexport {\n executeWithoutSchema,\n isIncrementalExecutionResult,\n isTotalExecutionResult,\n} from \"./executeWithoutSchema\";\nexport {\n isListType,\n isNonNullType,\n typeNameFromReference,\n typeReferenceFromName,\n typeReferenceFromNode,\n unwrap,\n unwrapAll,\n} from \"./schema/reference\";\nexport type {\n SpecTypeIndex,\n TypeName,\n TypeReference,\n} from \"./schema/reference\";\nexport { specifiedScalarResolvers } from \"./schema/resolvers\";\nexport { subscribeWithSchema } from \"./subscribeWithSchema\";\nexport { subscribeWithoutSchema } from \"./subscribeWithoutSchema\";\nexport {\n addMinimalViableSchemaToExecutableDefinitionNode,\n addMinimalViableSchemaToRequestDocument,\n} from \"./utilities/addMinimalViableSchemaToRequestDocument\";\nexport { annotateDocumentGraphQLTransform } from \"./utilities/annotateDocumentGraphQLTransform\";\nexport { decodeASTSchema } from \"./utilities/decodeASTSchema\";\nexport { encodeASTSchema } from \"./utilities/encodeASTSchema\";\nexport { extractMinimalViableSchemaForRequestDocument } from \"./utilities/extractMinimalViableSchemaForRequestDocument\";\nexport { mergeResolvers } from \"./utilities/mergeResolvers\";\nexport {\n createSchemaDefinitions,\n mergeSchemaDefinitions,\n} from \"./utilities/mergeSchemaDefinitions\";\nexport { schemaFragmentFromMinimalViableSchemaDocument } from \"./utilities/schemaFragmentFromMinimalViableSchemaDocument\";\n\nexport type {\n CompositeTypeTuple,\n DirectiveDefinitionTuple,\n DirectiveName,\n DirectiveTuple,\n EnumTypeDefinitionTuple,\n FieldDefinition,\n FieldDefinitionRecord,\n FieldDefinitionTuple,\n InputObjectTypeDefinitionTuple,\n InputValueDefinition,\n InputValueDefinitionRecord,\n InputValueDefinitionTuple,\n InterfaceImplementationsRecord,\n InterfaceTypeDefinitionTuple,\n ObjectTypeDefinitionTuple,\n OperationTypes,\n ScalarTypeDefinitionTuple,\n SchemaDefinitions,\n TypeDefinitionTuple,\n TypeDefinitionsRecord,\n UnionTypeDefinitionTuple,\n} from \"./schema/definition\";\nexport type {\n AddMinimalViableSchemaToRequestDocumentOptions,\n ExecutableDefinitionNodeWithInlinedSchema,\n} from \"./utilities/addMinimalViableSchemaToRequestDocument\";\nexport type { ExtractMinimalViableSchemaResult } from \"./utilities/extractMinimalViableSchemaForRequestDocument\";\n\nexport type {\n EnumTypeResolver,\n ExecutionResult,\n FunctionFieldResolver,\n IncrementalExecutionResult,\n ObjectTypeResolver,\n ResolveInfo,\n Resolvers,\n ScalarTypeResolver,\n SchemaFragment,\n SchemaFragmentForReturnTypeRequest,\n SchemaFragmentForRuntimeTypeRequest,\n SchemaFragmentLoader,\n SchemaFragmentLoaderResult,\n SchemaFragmentRequest,\n SubscriptionExecutionResult,\n TotalExecutionResult,\n UserResolvers,\n DocumentWithMinimalViableSchema,\n DefinitionNodeWithMinimalViableSchema,\n} from \"./types\";\n\nexport type { PromiseOrValue } from \"./jsutils/PromiseOrValue\";\n\nexport type {\n ArgumentNode,\n BooleanValueNode,\n DirectiveDefinitionNode,\n DirectiveNode,\n DocumentNode,\n EnumTypeDefinitionNode,\n EnumTypeExtensionNode,\n EnumValueDefinitionNode,\n EnumValueNode,\n FieldDefinitionNode,\n FieldNode,\n FloatValueNode,\n FragmentDefinitionNode,\n FragmentSpreadNode,\n InlineFragmentNode,\n InputObjectTypeDefinitionNode,\n InputObjectTypeExtensionNode,\n InputValueDefinitionNode,\n IntValueNode,\n InterfaceTypeDefinitionNode,\n InterfaceTypeExtensionNode,\n ListTypeNode,\n ListValueNode,\n NameNode,\n NamedTypeNode,\n NonNullTypeNode,\n NullValueNode,\n ObjectFieldNode,\n ObjectTypeDefinitionNode,\n ObjectTypeExtensionNode,\n ObjectValueNode,\n OperationDefinitionNode,\n OperationTypeDefinitionNode,\n ScalarTypeDefinitionNode,\n ScalarTypeExtensionNode,\n SchemaDefinitionNode,\n SchemaExtensionNode,\n SelectionSetNode,\n StringValueNode,\n UnionTypeDefinitionNode,\n UnionTypeExtensionNode,\n VariableDefinitionNode,\n VariableNode,\n} from \"graphql\";\n\nexport type {\n AfterFieldCompleteHook,\n AfterFieldCompleteHookArgs,\n AfterFieldResolveHook,\n AfterFieldResolveHookArgs,\n BeforeFieldResolveHook,\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BAAkC;AAClC,kCAIO;AACP,uBAQO;AAMP,uBAAyC;AACzC,iCAAoC;AACpC,oCAAuC;AACvC,qDAGO;AACP,8CAAiD;AACjD,6BAAgC;AAChC,6BAAgC;AAChC,0DAA6D;AAC7D,4BAA+B;AAC/B,oCAGO;AACP,2DAA8D;
|
|
4
|
+
"sourcesContent": ["export { executeWithSchema } from \"./executeWithSchema\";\nexport {\n executeWithoutSchema,\n isIncrementalExecutionResult,\n isTotalExecutionResult,\n} from \"./executeWithoutSchema\";\nexport {\n isListType,\n isNonNullType,\n typeNameFromReference,\n typeReferenceFromName,\n typeReferenceFromNode,\n unwrap,\n unwrapAll,\n} from \"./schema/reference\";\nexport type {\n SpecTypeIndex,\n TypeName,\n TypeReference,\n} from \"./schema/reference\";\nexport { specifiedScalarResolvers } from \"./schema/resolvers\";\nexport { subscribeWithSchema } from \"./subscribeWithSchema\";\nexport { subscribeWithoutSchema } from \"./subscribeWithoutSchema\";\nexport {\n addMinimalViableSchemaToExecutableDefinitionNode,\n addMinimalViableSchemaToRequestDocument,\n} from \"./utilities/addMinimalViableSchemaToRequestDocument\";\nexport { annotateDocumentGraphQLTransform } from \"./utilities/annotateDocumentGraphQLTransform\";\nexport { decodeASTSchema } from \"./utilities/decodeASTSchema\";\nexport { encodeASTSchema } from \"./utilities/encodeASTSchema\";\nexport { extractMinimalViableSchemaForRequestDocument } from \"./utilities/extractMinimalViableSchemaForRequestDocument\";\nexport { mergeResolvers } from \"./utilities/mergeResolvers\";\nexport {\n createSchemaDefinitions,\n mergeSchemaDefinitions,\n} from \"./utilities/mergeSchemaDefinitions\";\nexport { schemaFragmentFromMinimalViableSchemaDocument } from \"./utilities/schemaFragmentFromMinimalViableSchemaDocument\";\nexport { pathToArray } from \"./jsutils/Path\";\nexport { isPromise } from \"./jsutils/isPromise\";\nexport { printPathArray } from \"./jsutils/printPathArray\";\n\nexport type {\n CompositeTypeTuple,\n DirectiveDefinitionTuple,\n DirectiveName,\n DirectiveTuple,\n EnumTypeDefinitionTuple,\n FieldDefinition,\n FieldDefinitionRecord,\n FieldDefinitionTuple,\n InputObjectTypeDefinitionTuple,\n InputValueDefinition,\n InputValueDefinitionRecord,\n InputValueDefinitionTuple,\n InterfaceImplementationsRecord,\n InterfaceTypeDefinitionTuple,\n ObjectTypeDefinitionTuple,\n OperationTypes,\n ScalarTypeDefinitionTuple,\n SchemaDefinitions,\n TypeDefinitionTuple,\n TypeDefinitionsRecord,\n UnionTypeDefinitionTuple,\n} from \"./schema/definition\";\nexport type {\n AddMinimalViableSchemaToRequestDocumentOptions,\n ExecutableDefinitionNodeWithInlinedSchema,\n} from \"./utilities/addMinimalViableSchemaToRequestDocument\";\nexport type { ExtractMinimalViableSchemaResult } from \"./utilities/extractMinimalViableSchemaForRequestDocument\";\n\nexport type {\n EnumTypeResolver,\n ExecutionResult,\n FunctionFieldResolver,\n IncrementalExecutionResult,\n ObjectTypeResolver,\n ResolveInfo,\n Resolvers,\n ScalarTypeResolver,\n SchemaFragment,\n SchemaFragmentForReturnTypeRequest,\n SchemaFragmentForRuntimeTypeRequest,\n SchemaFragmentLoader,\n SchemaFragmentLoaderResult,\n SchemaFragmentRequest,\n SubscriptionExecutionResult,\n TotalExecutionResult,\n UserResolvers,\n DocumentWithMinimalViableSchema,\n DefinitionNodeWithMinimalViableSchema,\n} from \"./types\";\n\nexport type { PromiseOrValue } from \"./jsutils/PromiseOrValue\";\nexport type { Path } from \"./jsutils/Path\";\n\nexport type {\n ArgumentNode,\n BooleanValueNode,\n DirectiveDefinitionNode,\n DirectiveNode,\n DocumentNode,\n EnumTypeDefinitionNode,\n EnumTypeExtensionNode,\n EnumValueDefinitionNode,\n EnumValueNode,\n FieldDefinitionNode,\n FieldNode,\n FloatValueNode,\n FragmentDefinitionNode,\n FragmentSpreadNode,\n InlineFragmentNode,\n InputObjectTypeDefinitionNode,\n InputObjectTypeExtensionNode,\n InputValueDefinitionNode,\n IntValueNode,\n InterfaceTypeDefinitionNode,\n InterfaceTypeExtensionNode,\n ListTypeNode,\n ListValueNode,\n NameNode,\n NamedTypeNode,\n NonNullTypeNode,\n NullValueNode,\n ObjectFieldNode,\n ObjectTypeDefinitionNode,\n ObjectTypeExtensionNode,\n ObjectValueNode,\n OperationDefinitionNode,\n OperationTypeDefinitionNode,\n ScalarTypeDefinitionNode,\n ScalarTypeExtensionNode,\n SchemaDefinitionNode,\n SchemaExtensionNode,\n SelectionSetNode,\n StringValueNode,\n UnionTypeDefinitionNode,\n UnionTypeExtensionNode,\n VariableDefinitionNode,\n VariableNode,\n} from \"graphql\";\n\nexport type {\n AfterFieldCompleteHook,\n AfterFieldCompleteHookArgs,\n AfterFieldResolveHook,\n AfterFieldResolveHookArgs,\n BeforeFieldResolveHook,\n BaseExecuteFieldHookArgs,\n ExecutionHooks,\n} from \"./hooks/types\";\n\nexport * as LegacyTypedAST from \"./legacyAST/TypedAST\";\nexport { addTypesToRequestDocument as addSupermassiveLegacyTypesToRequestDocument } from \"./legacyAST/addTypesToRequestDocument\";\nexport { annotateDocumentGraphQLTransform as annotateDocumentWithSupermassiveLegacyTypesGraphQLTransform } from \"./legacyAST/annotateDocumentGraphQLTransform\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BAAkC;AAClC,kCAIO;AACP,uBAQO;AAMP,uBAAyC;AACzC,iCAAoC;AACpC,oCAAuC;AACvC,qDAGO;AACP,8CAAiD;AACjD,6BAAgC;AAChC,6BAAgC;AAChC,0DAA6D;AAC7D,4BAA+B;AAC/B,oCAGO;AACP,2DAA8D;AAC9D,kBAA4B;AAC5B,uBAA0B;AAC1B,4BAA+B;AAgH/B,qBAAgC;AAChC,uCAAyF;AACzF,IAAAA,2CAAgH;",
|
|
6
6
|
"names": ["import_annotateDocumentGraphQLTransform"]
|
|
7
7
|
}
|
package/lib/index.mjs
CHANGED
|
@@ -31,6 +31,9 @@ import {
|
|
|
31
31
|
mergeSchemaDefinitions
|
|
32
32
|
} from "./utilities/mergeSchemaDefinitions.mjs";
|
|
33
33
|
import { schemaFragmentFromMinimalViableSchemaDocument } from "./utilities/schemaFragmentFromMinimalViableSchemaDocument.mjs";
|
|
34
|
+
import { pathToArray } from "./jsutils/Path.mjs";
|
|
35
|
+
import { isPromise } from "./jsutils/isPromise.mjs";
|
|
36
|
+
import { printPathArray } from "./jsutils/printPathArray.mjs";
|
|
34
37
|
import * as LegacyTypedAST from "./legacyAST/TypedAST.mjs";
|
|
35
38
|
import { addTypesToRequestDocument } from "./legacyAST/addTypesToRequestDocument.mjs";
|
|
36
39
|
import { annotateDocumentGraphQLTransform as annotateDocumentGraphQLTransform2 } from "./legacyAST/annotateDocumentGraphQLTransform.mjs";
|
|
@@ -50,9 +53,12 @@ export {
|
|
|
50
53
|
isIncrementalExecutionResult,
|
|
51
54
|
isListType,
|
|
52
55
|
isNonNullType,
|
|
56
|
+
isPromise,
|
|
53
57
|
isTotalExecutionResult,
|
|
54
58
|
mergeResolvers,
|
|
55
59
|
mergeSchemaDefinitions,
|
|
60
|
+
pathToArray,
|
|
61
|
+
printPathArray,
|
|
56
62
|
schemaFragmentFromMinimalViableSchemaDocument,
|
|
57
63
|
specifiedScalarResolvers,
|
|
58
64
|
subscribeWithSchema,
|
package/lib/index.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { executeWithSchema } from \"./executeWithSchema\";\nexport {\n executeWithoutSchema,\n isIncrementalExecutionResult,\n isTotalExecutionResult,\n} from \"./executeWithoutSchema\";\nexport {\n isListType,\n isNonNullType,\n typeNameFromReference,\n typeReferenceFromName,\n typeReferenceFromNode,\n unwrap,\n unwrapAll,\n} from \"./schema/reference\";\nexport type {\n SpecTypeIndex,\n TypeName,\n TypeReference,\n} from \"./schema/reference\";\nexport { specifiedScalarResolvers } from \"./schema/resolvers\";\nexport { subscribeWithSchema } from \"./subscribeWithSchema\";\nexport { subscribeWithoutSchema } from \"./subscribeWithoutSchema\";\nexport {\n addMinimalViableSchemaToExecutableDefinitionNode,\n addMinimalViableSchemaToRequestDocument,\n} from \"./utilities/addMinimalViableSchemaToRequestDocument\";\nexport { annotateDocumentGraphQLTransform } from \"./utilities/annotateDocumentGraphQLTransform\";\nexport { decodeASTSchema } from \"./utilities/decodeASTSchema\";\nexport { encodeASTSchema } from \"./utilities/encodeASTSchema\";\nexport { extractMinimalViableSchemaForRequestDocument } from \"./utilities/extractMinimalViableSchemaForRequestDocument\";\nexport { mergeResolvers } from \"./utilities/mergeResolvers\";\nexport {\n createSchemaDefinitions,\n mergeSchemaDefinitions,\n} from \"./utilities/mergeSchemaDefinitions\";\nexport { schemaFragmentFromMinimalViableSchemaDocument } from \"./utilities/schemaFragmentFromMinimalViableSchemaDocument\";\n\nexport type {\n CompositeTypeTuple,\n DirectiveDefinitionTuple,\n DirectiveName,\n DirectiveTuple,\n EnumTypeDefinitionTuple,\n FieldDefinition,\n FieldDefinitionRecord,\n FieldDefinitionTuple,\n InputObjectTypeDefinitionTuple,\n InputValueDefinition,\n InputValueDefinitionRecord,\n InputValueDefinitionTuple,\n InterfaceImplementationsRecord,\n InterfaceTypeDefinitionTuple,\n ObjectTypeDefinitionTuple,\n OperationTypes,\n ScalarTypeDefinitionTuple,\n SchemaDefinitions,\n TypeDefinitionTuple,\n TypeDefinitionsRecord,\n UnionTypeDefinitionTuple,\n} from \"./schema/definition\";\nexport type {\n AddMinimalViableSchemaToRequestDocumentOptions,\n ExecutableDefinitionNodeWithInlinedSchema,\n} from \"./utilities/addMinimalViableSchemaToRequestDocument\";\nexport type { ExtractMinimalViableSchemaResult } from \"./utilities/extractMinimalViableSchemaForRequestDocument\";\n\nexport type {\n EnumTypeResolver,\n ExecutionResult,\n FunctionFieldResolver,\n IncrementalExecutionResult,\n ObjectTypeResolver,\n ResolveInfo,\n Resolvers,\n ScalarTypeResolver,\n SchemaFragment,\n SchemaFragmentForReturnTypeRequest,\n SchemaFragmentForRuntimeTypeRequest,\n SchemaFragmentLoader,\n SchemaFragmentLoaderResult,\n SchemaFragmentRequest,\n SubscriptionExecutionResult,\n TotalExecutionResult,\n UserResolvers,\n DocumentWithMinimalViableSchema,\n DefinitionNodeWithMinimalViableSchema,\n} from \"./types\";\n\nexport type { PromiseOrValue } from \"./jsutils/PromiseOrValue\";\n\nexport type {\n ArgumentNode,\n BooleanValueNode,\n DirectiveDefinitionNode,\n DirectiveNode,\n DocumentNode,\n EnumTypeDefinitionNode,\n EnumTypeExtensionNode,\n EnumValueDefinitionNode,\n EnumValueNode,\n FieldDefinitionNode,\n FieldNode,\n FloatValueNode,\n FragmentDefinitionNode,\n FragmentSpreadNode,\n InlineFragmentNode,\n InputObjectTypeDefinitionNode,\n InputObjectTypeExtensionNode,\n InputValueDefinitionNode,\n IntValueNode,\n InterfaceTypeDefinitionNode,\n InterfaceTypeExtensionNode,\n ListTypeNode,\n ListValueNode,\n NameNode,\n NamedTypeNode,\n NonNullTypeNode,\n NullValueNode,\n ObjectFieldNode,\n ObjectTypeDefinitionNode,\n ObjectTypeExtensionNode,\n ObjectValueNode,\n OperationDefinitionNode,\n OperationTypeDefinitionNode,\n ScalarTypeDefinitionNode,\n ScalarTypeExtensionNode,\n SchemaDefinitionNode,\n SchemaExtensionNode,\n SelectionSetNode,\n StringValueNode,\n UnionTypeDefinitionNode,\n UnionTypeExtensionNode,\n VariableDefinitionNode,\n VariableNode,\n} from \"graphql\";\n\nexport type {\n AfterFieldCompleteHook,\n AfterFieldCompleteHookArgs,\n AfterFieldResolveHook,\n AfterFieldResolveHookArgs,\n BeforeFieldResolveHook,\n
|
|
5
|
-
"mappings": ";AAAA,SAAS,yBAAyB;AAClC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAMP,SAAS,gCAAgC;AACzC,SAAS,2BAA2B;AACpC,SAAS,8BAA8B;AACvC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,wCAAwC;AACjD,SAAS,uBAAuB;AAChC,SAAS,uBAAuB;AAChC,SAAS,oDAAoD;AAC7D,SAAS,sBAAsB;AAC/B;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,qDAAqD;
|
|
4
|
+
"sourcesContent": ["export { executeWithSchema } from \"./executeWithSchema\";\nexport {\n executeWithoutSchema,\n isIncrementalExecutionResult,\n isTotalExecutionResult,\n} from \"./executeWithoutSchema\";\nexport {\n isListType,\n isNonNullType,\n typeNameFromReference,\n typeReferenceFromName,\n typeReferenceFromNode,\n unwrap,\n unwrapAll,\n} from \"./schema/reference\";\nexport type {\n SpecTypeIndex,\n TypeName,\n TypeReference,\n} from \"./schema/reference\";\nexport { specifiedScalarResolvers } from \"./schema/resolvers\";\nexport { subscribeWithSchema } from \"./subscribeWithSchema\";\nexport { subscribeWithoutSchema } from \"./subscribeWithoutSchema\";\nexport {\n addMinimalViableSchemaToExecutableDefinitionNode,\n addMinimalViableSchemaToRequestDocument,\n} from \"./utilities/addMinimalViableSchemaToRequestDocument\";\nexport { annotateDocumentGraphQLTransform } from \"./utilities/annotateDocumentGraphQLTransform\";\nexport { decodeASTSchema } from \"./utilities/decodeASTSchema\";\nexport { encodeASTSchema } from \"./utilities/encodeASTSchema\";\nexport { extractMinimalViableSchemaForRequestDocument } from \"./utilities/extractMinimalViableSchemaForRequestDocument\";\nexport { mergeResolvers } from \"./utilities/mergeResolvers\";\nexport {\n createSchemaDefinitions,\n mergeSchemaDefinitions,\n} from \"./utilities/mergeSchemaDefinitions\";\nexport { schemaFragmentFromMinimalViableSchemaDocument } from \"./utilities/schemaFragmentFromMinimalViableSchemaDocument\";\nexport { pathToArray } from \"./jsutils/Path\";\nexport { isPromise } from \"./jsutils/isPromise\";\nexport { printPathArray } from \"./jsutils/printPathArray\";\n\nexport type {\n CompositeTypeTuple,\n DirectiveDefinitionTuple,\n DirectiveName,\n DirectiveTuple,\n EnumTypeDefinitionTuple,\n FieldDefinition,\n FieldDefinitionRecord,\n FieldDefinitionTuple,\n InputObjectTypeDefinitionTuple,\n InputValueDefinition,\n InputValueDefinitionRecord,\n InputValueDefinitionTuple,\n InterfaceImplementationsRecord,\n InterfaceTypeDefinitionTuple,\n ObjectTypeDefinitionTuple,\n OperationTypes,\n ScalarTypeDefinitionTuple,\n SchemaDefinitions,\n TypeDefinitionTuple,\n TypeDefinitionsRecord,\n UnionTypeDefinitionTuple,\n} from \"./schema/definition\";\nexport type {\n AddMinimalViableSchemaToRequestDocumentOptions,\n ExecutableDefinitionNodeWithInlinedSchema,\n} from \"./utilities/addMinimalViableSchemaToRequestDocument\";\nexport type { ExtractMinimalViableSchemaResult } from \"./utilities/extractMinimalViableSchemaForRequestDocument\";\n\nexport type {\n EnumTypeResolver,\n ExecutionResult,\n FunctionFieldResolver,\n IncrementalExecutionResult,\n ObjectTypeResolver,\n ResolveInfo,\n Resolvers,\n ScalarTypeResolver,\n SchemaFragment,\n SchemaFragmentForReturnTypeRequest,\n SchemaFragmentForRuntimeTypeRequest,\n SchemaFragmentLoader,\n SchemaFragmentLoaderResult,\n SchemaFragmentRequest,\n SubscriptionExecutionResult,\n TotalExecutionResult,\n UserResolvers,\n DocumentWithMinimalViableSchema,\n DefinitionNodeWithMinimalViableSchema,\n} from \"./types\";\n\nexport type { PromiseOrValue } from \"./jsutils/PromiseOrValue\";\nexport type { Path } from \"./jsutils/Path\";\n\nexport type {\n ArgumentNode,\n BooleanValueNode,\n DirectiveDefinitionNode,\n DirectiveNode,\n DocumentNode,\n EnumTypeDefinitionNode,\n EnumTypeExtensionNode,\n EnumValueDefinitionNode,\n EnumValueNode,\n FieldDefinitionNode,\n FieldNode,\n FloatValueNode,\n FragmentDefinitionNode,\n FragmentSpreadNode,\n InlineFragmentNode,\n InputObjectTypeDefinitionNode,\n InputObjectTypeExtensionNode,\n InputValueDefinitionNode,\n IntValueNode,\n InterfaceTypeDefinitionNode,\n InterfaceTypeExtensionNode,\n ListTypeNode,\n ListValueNode,\n NameNode,\n NamedTypeNode,\n NonNullTypeNode,\n NullValueNode,\n ObjectFieldNode,\n ObjectTypeDefinitionNode,\n ObjectTypeExtensionNode,\n ObjectValueNode,\n OperationDefinitionNode,\n OperationTypeDefinitionNode,\n ScalarTypeDefinitionNode,\n ScalarTypeExtensionNode,\n SchemaDefinitionNode,\n SchemaExtensionNode,\n SelectionSetNode,\n StringValueNode,\n UnionTypeDefinitionNode,\n UnionTypeExtensionNode,\n VariableDefinitionNode,\n VariableNode,\n} from \"graphql\";\n\nexport type {\n AfterFieldCompleteHook,\n AfterFieldCompleteHookArgs,\n AfterFieldResolveHook,\n AfterFieldResolveHookArgs,\n BeforeFieldResolveHook,\n BaseExecuteFieldHookArgs,\n ExecutionHooks,\n} from \"./hooks/types\";\n\nexport * as LegacyTypedAST from \"./legacyAST/TypedAST\";\nexport { addTypesToRequestDocument as addSupermassiveLegacyTypesToRequestDocument } from \"./legacyAST/addTypesToRequestDocument\";\nexport { annotateDocumentGraphQLTransform as annotateDocumentWithSupermassiveLegacyTypesGraphQLTransform } from \"./legacyAST/annotateDocumentGraphQLTransform\";\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,yBAAyB;AAClC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAMP,SAAS,gCAAgC;AACzC,SAAS,2BAA2B;AACpC,SAAS,8BAA8B;AACvC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,wCAAwC;AACjD,SAAS,uBAAuB;AAChC,SAAS,uBAAuB;AAChC,SAAS,oDAAoD;AAC7D,SAAS,sBAAsB;AAC/B;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,qDAAqD;AAC9D,SAAS,mBAAmB;AAC5B,SAAS,iBAAiB;AAC1B,SAAS,sBAAsB;AAgH/B,YAAY,oBAAoB;AAChC,SAAsC,iCAAmD;AACzF,SAA6C,oCAApCA,yCAAuG;",
|
|
6
6
|
"names": ["annotateDocumentGraphQLTransform"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"printPathArray.d.ts","sourceRoot":"","sources":["../../src/jsutils/printPathArray.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"printPathArray.d.ts","sourceRoot":"","sources":["../../src/jsutils/printPathArray.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAa3E"}
|
|
@@ -22,7 +22,16 @@ __export(printPathArray_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(printPathArray_exports);
|
|
24
24
|
function printPathArray(path) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
let result = "";
|
|
26
|
+
for (let i = 0; i < path.length; i++) {
|
|
27
|
+
if (typeof path[i] === "number") {
|
|
28
|
+
result += `[${path[i].toString()}]`;
|
|
29
|
+
} else {
|
|
30
|
+
if (i > 0) {
|
|
31
|
+
result += ".";
|
|
32
|
+
}
|
|
33
|
+
result += path[i];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return result;
|
|
28
37
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/jsutils/printPathArray.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Build a string describing the path.\n */\nexport function printPathArray(path: ReadonlyArray<string | number>): string {\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,SAAS,eAAe,MAA8C;AAC3E,
|
|
4
|
+
"sourcesContent": ["/**\n * Build a string describing the path.\n */\nexport function printPathArray(path: ReadonlyArray<string | number>): string {\n let result = \"\";\n for (let i = 0; i < path.length; i++) {\n if (typeof path[i] === \"number\") {\n result += `[${path[i].toString()}]`;\n } else {\n if (i > 0) {\n result += \".\";\n }\n result += path[i];\n }\n }\n return result;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,SAAS,eAAe,MAA8C;AAC3E,MAAI,SAAS;AACb,WAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;AACpC,QAAI,OAAO,KAAK,CAAC,MAAM,UAAU;AAC/B,gBAAU,IAAI,KAAK,CAAC,EAAE,SAAS;AAAA,IACjC,OAAO;AACL,UAAI,IAAI,GAAG;AACT,kBAAU;AAAA,MACZ;AACA,gBAAU,KAAK,CAAC;AAAA,IAClB;AAAA,EACF;AACA,SAAO;AACT;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
// src/jsutils/printPathArray.ts
|
|
2
2
|
function printPathArray(path) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
let result = "";
|
|
4
|
+
for (let i = 0; i < path.length; i++) {
|
|
5
|
+
if (typeof path[i] === "number") {
|
|
6
|
+
result += `[${path[i].toString()}]`;
|
|
7
|
+
} else {
|
|
8
|
+
if (i > 0) {
|
|
9
|
+
result += ".";
|
|
10
|
+
}
|
|
11
|
+
result += path[i];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return result;
|
|
6
15
|
}
|
|
7
16
|
export {
|
|
8
17
|
printPathArray
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/jsutils/printPathArray.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Build a string describing the path.\n */\nexport function printPathArray(path: ReadonlyArray<string | number>): string {\n
|
|
5
|
-
"mappings": ";AAGO,SAAS,eAAe,MAA8C;AAC3E,
|
|
4
|
+
"sourcesContent": ["/**\n * Build a string describing the path.\n */\nexport function printPathArray(path: ReadonlyArray<string | number>): string {\n let result = \"\";\n for (let i = 0; i < path.length; i++) {\n if (typeof path[i] === \"number\") {\n result += `[${path[i].toString()}]`;\n } else {\n if (i > 0) {\n result += \".\";\n }\n result += path[i];\n }\n }\n return result;\n}\n"],
|
|
5
|
+
"mappings": ";AAGO,SAAS,eAAe,MAA8C;AAC3E,MAAI,SAAS;AACb,WAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;AACpC,QAAI,OAAO,KAAK,CAAC,MAAM,UAAU;AAC/B,gBAAU,IAAI,KAAK,CAAC,EAAE,SAAS;AAAA,IACjC,OAAO;AACL,UAAI,IAAI,GAAG;AACT,kBAAU;AAAA,MACZ;AACA,gBAAU,KAAK,CAAC;AAAA,IAClB;AAAA,EACF;AACA,SAAO;AACT;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|