Initial Save
This commit is contained in:
4
node_modules/apollo-graphql/lib/index.d.ts
generated
vendored
Normal file
4
node_modules/apollo-graphql/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export { defaultOperationRegistrySignature, defaultUsageReportingSignature, operationRegistrySignature, operationHash, defaultUsageReportingSignature as defaultEngineReportingSignature, } from "./operationId";
|
||||
export * from "./schema";
|
||||
export { printWithReducedWhitespace, hideStringAndNumericLiterals, hideLiterals, } from "./transforms";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/apollo-graphql/lib/index.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,8BAA8B,EAC9B,0BAA0B,EAC1B,aAAa,EAEb,8BAA8B,IAAI,+BAA+B,GAClE,MAAM,eAAe,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,YAAY,GACb,MAAM,cAAc,CAAC"}
|
||||
29
node_modules/apollo-graphql/lib/index.js
generated
vendored
Normal file
29
node_modules/apollo-graphql/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.hideLiterals = exports.hideStringAndNumericLiterals = exports.printWithReducedWhitespace = exports.defaultEngineReportingSignature = exports.operationHash = exports.operationRegistrySignature = exports.defaultUsageReportingSignature = exports.defaultOperationRegistrySignature = void 0;
|
||||
var operationId_1 = require("./operationId");
|
||||
Object.defineProperty(exports, "defaultOperationRegistrySignature", { enumerable: true, get: function () { return operationId_1.defaultOperationRegistrySignature; } });
|
||||
Object.defineProperty(exports, "defaultUsageReportingSignature", { enumerable: true, get: function () { return operationId_1.defaultUsageReportingSignature; } });
|
||||
Object.defineProperty(exports, "operationRegistrySignature", { enumerable: true, get: function () { return operationId_1.operationRegistrySignature; } });
|
||||
Object.defineProperty(exports, "operationHash", { enumerable: true, get: function () { return operationId_1.operationHash; } });
|
||||
Object.defineProperty(exports, "defaultEngineReportingSignature", { enumerable: true, get: function () { return operationId_1.defaultUsageReportingSignature; } });
|
||||
__exportStar(require("./schema"), exports);
|
||||
var transforms_1 = require("./transforms");
|
||||
Object.defineProperty(exports, "printWithReducedWhitespace", { enumerable: true, get: function () { return transforms_1.printWithReducedWhitespace; } });
|
||||
Object.defineProperty(exports, "hideStringAndNumericLiterals", { enumerable: true, get: function () { return transforms_1.hideStringAndNumericLiterals; } });
|
||||
Object.defineProperty(exports, "hideLiterals", { enumerable: true, get: function () { return transforms_1.hideLiterals; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/apollo-graphql/lib/index.js.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAOuB;AANrB,gIAAA,iCAAiC,OAAA;AACjC,6HAAA,8BAA8B,OAAA;AAC9B,yHAAA,0BAA0B,OAAA;AAC1B,4GAAA,aAAa,OAAA;AAEb,8HAAA,8BAA8B,OAAmC;AAEnE,2CAAyB;AACzB,2CAIsB;AAHpB,wHAAA,0BAA0B,OAAA;AAC1B,0HAAA,4BAA4B,OAAA;AAC5B,0GAAA,YAAY,OAAA"}
|
||||
8
node_modules/apollo-graphql/lib/operationId.d.ts
generated
vendored
Normal file
8
node_modules/apollo-graphql/lib/operationId.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { DocumentNode } from "graphql";
|
||||
export declare function defaultUsageReportingSignature(ast: DocumentNode, operationName: string): string;
|
||||
export declare function operationRegistrySignature(ast: DocumentNode, operationName: string, options?: {
|
||||
preserveStringAndNumericLiterals: boolean;
|
||||
}): string;
|
||||
export declare function defaultOperationRegistrySignature(ast: DocumentNode, operationName: string): string;
|
||||
export declare function operationHash(operation: string): string;
|
||||
//# sourceMappingURL=operationId.d.ts.map
|
||||
1
node_modules/apollo-graphql/lib/operationId.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/operationId.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"operationId.d.ts","sourceRoot":"","sources":["../src/operationId.ts"],"names":[],"mappings":"AAsDA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAcvC,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,YAAY,EACjB,aAAa,EAAE,MAAM,GACpB,MAAM,CAMR;AAMD,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,YAAY,EACjB,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE;IAAE,gCAAgC,EAAE,OAAO,CAAA;CAEnD,GACA,MAAM,CAMR;AAED,wBAAgB,iCAAiC,CAC/C,GAAG,EAAE,YAAY,EACjB,aAAa,EAAE,MAAM,GACpB,MAAM,CAIR;AAED,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEvD"}
|
||||
30
node_modules/apollo-graphql/lib/operationId.js
generated
vendored
Normal file
30
node_modules/apollo-graphql/lib/operationId.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.operationHash = exports.defaultOperationRegistrySignature = exports.operationRegistrySignature = exports.defaultUsageReportingSignature = void 0;
|
||||
const transforms_1 = require("./transforms");
|
||||
const createHash_1 = require("./utilities/createHash");
|
||||
function defaultUsageReportingSignature(ast, operationName) {
|
||||
return (0, transforms_1.printWithReducedWhitespace)((0, transforms_1.sortAST)((0, transforms_1.removeAliases)((0, transforms_1.hideLiterals)((0, transforms_1.dropUnusedDefinitions)(ast, operationName)))));
|
||||
}
|
||||
exports.defaultUsageReportingSignature = defaultUsageReportingSignature;
|
||||
function operationRegistrySignature(ast, operationName, options = {
|
||||
preserveStringAndNumericLiterals: false,
|
||||
}) {
|
||||
const withoutUnusedDefs = (0, transforms_1.dropUnusedDefinitions)(ast, operationName);
|
||||
const maybeWithLiterals = options.preserveStringAndNumericLiterals
|
||||
? withoutUnusedDefs
|
||||
: (0, transforms_1.hideStringAndNumericLiterals)(withoutUnusedDefs);
|
||||
return (0, transforms_1.printWithReducedWhitespace)((0, transforms_1.sortAST)(maybeWithLiterals));
|
||||
}
|
||||
exports.operationRegistrySignature = operationRegistrySignature;
|
||||
function defaultOperationRegistrySignature(ast, operationName) {
|
||||
return operationRegistrySignature(ast, operationName, {
|
||||
preserveStringAndNumericLiterals: false,
|
||||
});
|
||||
}
|
||||
exports.defaultOperationRegistrySignature = defaultOperationRegistrySignature;
|
||||
function operationHash(operation) {
|
||||
return (0, createHash_1.createHash)("sha256").update(operation).digest("hex");
|
||||
}
|
||||
exports.operationHash = operationHash;
|
||||
//# sourceMappingURL=operationId.js.map
|
||||
1
node_modules/apollo-graphql/lib/operationId.js.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/operationId.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"operationId.js","sourceRoot":"","sources":["../src/operationId.ts"],"names":[],"mappings":";;;AAuDA,6CAOsB;AACtB,uDAAoD;AAKpD,SAAgB,8BAA8B,CAC5C,GAAiB,EACjB,aAAqB;IAErB,OAAO,IAAA,uCAA0B,EAC/B,IAAA,oBAAO,EACL,IAAA,0BAAa,EAAC,IAAA,yBAAY,EAAC,IAAA,kCAAqB,EAAC,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,CACvE,CACF,CAAC;AACJ,CAAC;AATD,wEASC;AAMD,SAAgB,0BAA0B,CACxC,GAAiB,EACjB,aAAqB,EACrB,UAAyD;IACvD,gCAAgC,EAAE,KAAK;CACxC;IAED,MAAM,iBAAiB,GAAG,IAAA,kCAAqB,EAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IACpE,MAAM,iBAAiB,GAAG,OAAO,CAAC,gCAAgC;QAChE,CAAC,CAAC,iBAAiB;QACnB,CAAC,CAAC,IAAA,yCAA4B,EAAC,iBAAiB,CAAC,CAAC;IACpD,OAAO,IAAA,uCAA0B,EAAC,IAAA,oBAAO,EAAC,iBAAiB,CAAC,CAAC,CAAC;AAChE,CAAC;AAZD,gEAYC;AAED,SAAgB,iCAAiC,CAC/C,GAAiB,EACjB,aAAqB;IAErB,OAAO,0BAA0B,CAAC,GAAG,EAAE,aAAa,EAAE;QACpD,gCAAgC,EAAE,KAAK;KACxC,CAAC,CAAC;AACL,CAAC;AAPD,8EAOC;AAED,SAAgB,aAAa,CAAC,SAAiB;IAC7C,OAAO,IAAA,uBAAU,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC9D,CAAC;AAFD,sCAEC"}
|
||||
6
node_modules/apollo-graphql/lib/schema/GraphQLSchemaValidationError.d.ts
generated
vendored
Normal file
6
node_modules/apollo-graphql/lib/schema/GraphQLSchemaValidationError.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { GraphQLError } from "graphql";
|
||||
export declare class GraphQLSchemaValidationError extends Error {
|
||||
errors: ReadonlyArray<GraphQLError>;
|
||||
constructor(errors: ReadonlyArray<GraphQLError>);
|
||||
}
|
||||
//# sourceMappingURL=GraphQLSchemaValidationError.d.ts.map
|
||||
1
node_modules/apollo-graphql/lib/schema/GraphQLSchemaValidationError.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/schema/GraphQLSchemaValidationError.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"GraphQLSchemaValidationError.d.ts","sourceRoot":"","sources":["../../src/schema/GraphQLSchemaValidationError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,qBAAa,4BAA6B,SAAQ,KAAK;IAClC,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC;gBAAnC,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC;CAOvD"}
|
||||
14
node_modules/apollo-graphql/lib/schema/GraphQLSchemaValidationError.js
generated
vendored
Normal file
14
node_modules/apollo-graphql/lib/schema/GraphQLSchemaValidationError.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.GraphQLSchemaValidationError = void 0;
|
||||
class GraphQLSchemaValidationError extends Error {
|
||||
constructor(errors) {
|
||||
super();
|
||||
this.errors = errors;
|
||||
this.name = this.constructor.name;
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
this.message = errors.map((error) => error.message).join("\n\n");
|
||||
}
|
||||
}
|
||||
exports.GraphQLSchemaValidationError = GraphQLSchemaValidationError;
|
||||
//# sourceMappingURL=GraphQLSchemaValidationError.js.map
|
||||
1
node_modules/apollo-graphql/lib/schema/GraphQLSchemaValidationError.js.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/schema/GraphQLSchemaValidationError.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"GraphQLSchemaValidationError.js","sourceRoot":"","sources":["../../src/schema/GraphQLSchemaValidationError.ts"],"names":[],"mappings":";;;AAEA,MAAa,4BAA6B,SAAQ,KAAK;IACrD,YAAmB,MAAmC;QACpD,KAAK,EAAE,CAAC;QADS,WAAM,GAAN,MAAM,CAA6B;QAGpD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACnE,CAAC;CACF;AARD,oEAQC"}
|
||||
10
node_modules/apollo-graphql/lib/schema/buildSchemaFromSDL.d.ts
generated
vendored
Normal file
10
node_modules/apollo-graphql/lib/schema/buildSchemaFromSDL.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { DocumentNode, GraphQLSchema } from "graphql";
|
||||
import { GraphQLResolverMap } from "./resolverMap";
|
||||
export interface GraphQLSchemaModule {
|
||||
typeDefs: DocumentNode;
|
||||
resolvers?: GraphQLResolverMap<any>;
|
||||
}
|
||||
export declare function modulesFromSDL(modulesOrSDL: (GraphQLSchemaModule | DocumentNode)[] | DocumentNode): GraphQLSchemaModule[];
|
||||
export declare function buildSchemaFromSDL(modulesOrSDL: (GraphQLSchemaModule | DocumentNode)[] | DocumentNode, schemaToExtend?: GraphQLSchema): GraphQLSchema;
|
||||
export declare function addResolversToSchema(schema: GraphQLSchema, resolvers: GraphQLResolverMap<any>): void;
|
||||
//# sourceMappingURL=buildSchemaFromSDL.d.ts.map
|
||||
1
node_modules/apollo-graphql/lib/schema/buildSchemaFromSDL.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/schema/buildSchemaFromSDL.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"buildSchemaFromSDL.d.ts","sourceRoot":"","sources":["../../src/schema/buildSchemaFromSDL.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAEZ,aAAa,EAkBd,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAgBnD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,CAAC,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC;CACrC;AA0BD,wBAAgB,cAAc,CAC5B,YAAY,EAAE,CAAC,mBAAmB,GAAG,YAAY,CAAC,EAAE,GAAG,YAAY,GAClE,mBAAmB,EAAE,CAYvB;AAED,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,CAAC,mBAAmB,GAAG,YAAY,CAAC,EAAE,GAAG,YAAY,EACnE,cAAc,CAAC,EAAE,aAAa,GAC7B,aAAa,CA+If;AAWD,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,aAAa,EACrB,SAAS,EAAE,kBAAkB,CAAC,GAAG,CAAC,QAoEnC"}
|
||||
217
node_modules/apollo-graphql/lib/schema/buildSchemaFromSDL.js
generated
vendored
Normal file
217
node_modules/apollo-graphql/lib/schema/buildSchemaFromSDL.js
generated
vendored
Normal file
@@ -0,0 +1,217 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.addResolversToSchema = exports.buildSchemaFromSDL = exports.modulesFromSDL = void 0;
|
||||
const graphql_1 = require("graphql");
|
||||
const validate_1 = require("graphql/validation/validate");
|
||||
const graphql_2 = require("../utilities/graphql");
|
||||
const GraphQLSchemaValidationError_1 = require("./GraphQLSchemaValidationError");
|
||||
const specifiedRules_1 = require("graphql/validation/specifiedRules");
|
||||
const flat_1 = __importDefault(require("core-js-pure/features/array/flat"));
|
||||
const validation_1 = require("graphql/validation");
|
||||
const mapValues_1 = require("../utilities/mapValues");
|
||||
const skippedSDLRules = [
|
||||
validation_1.KnownTypeNamesRule,
|
||||
validation_1.UniqueDirectivesPerLocationRule,
|
||||
];
|
||||
try {
|
||||
const PossibleTypeExtensions = require("graphql/validation/rules/PossibleTypeExtensions").PossibleTypeExtensions;
|
||||
if (PossibleTypeExtensions) {
|
||||
skippedSDLRules.push(PossibleTypeExtensions);
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
}
|
||||
const sdlRules = specifiedRules_1.specifiedSDLRules.filter((rule) => !skippedSDLRules.includes(rule));
|
||||
function modulesFromSDL(modulesOrSDL) {
|
||||
if (Array.isArray(modulesOrSDL)) {
|
||||
return modulesOrSDL.map((moduleOrSDL) => {
|
||||
if ((0, graphql_2.isNode)(moduleOrSDL) && (0, graphql_2.isDocumentNode)(moduleOrSDL)) {
|
||||
return { typeDefs: moduleOrSDL };
|
||||
}
|
||||
else {
|
||||
return moduleOrSDL;
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
return [{ typeDefs: modulesOrSDL }];
|
||||
}
|
||||
}
|
||||
exports.modulesFromSDL = modulesFromSDL;
|
||||
function buildSchemaFromSDL(modulesOrSDL, schemaToExtend) {
|
||||
const modules = modulesFromSDL(modulesOrSDL);
|
||||
const documentAST = (0, graphql_1.concatAST)(modules.map((module) => module.typeDefs));
|
||||
const errors = (0, validate_1.validateSDL)(documentAST, schemaToExtend, sdlRules);
|
||||
if (errors.length > 0) {
|
||||
throw new GraphQLSchemaValidationError_1.GraphQLSchemaValidationError(errors);
|
||||
}
|
||||
const definitionsMap = Object.create(null);
|
||||
const extensionsMap = Object.create(null);
|
||||
const directiveDefinitions = [];
|
||||
const schemaDefinitions = [];
|
||||
const schemaExtensions = [];
|
||||
const schemaDirectives = [];
|
||||
for (const definition of documentAST.definitions) {
|
||||
if ((0, graphql_1.isTypeDefinitionNode)(definition)) {
|
||||
const typeName = definition.name.value;
|
||||
if (definitionsMap[typeName]) {
|
||||
definitionsMap[typeName].push(definition);
|
||||
}
|
||||
else {
|
||||
definitionsMap[typeName] = [definition];
|
||||
}
|
||||
}
|
||||
else if ((0, graphql_1.isTypeExtensionNode)(definition)) {
|
||||
const typeName = definition.name.value;
|
||||
if (extensionsMap[typeName]) {
|
||||
extensionsMap[typeName].push(definition);
|
||||
}
|
||||
else {
|
||||
extensionsMap[typeName] = [definition];
|
||||
}
|
||||
}
|
||||
else if (definition.kind === graphql_1.Kind.DIRECTIVE_DEFINITION) {
|
||||
directiveDefinitions.push(definition);
|
||||
}
|
||||
else if (definition.kind === graphql_1.Kind.SCHEMA_DEFINITION) {
|
||||
schemaDefinitions.push(definition);
|
||||
schemaDirectives.push(...(definition.directives ? definition.directives : []));
|
||||
}
|
||||
else if (definition.kind === graphql_1.Kind.SCHEMA_EXTENSION) {
|
||||
schemaExtensions.push(definition);
|
||||
}
|
||||
}
|
||||
let schema = schemaToExtend
|
||||
? schemaToExtend
|
||||
: new graphql_1.GraphQLSchema({
|
||||
query: undefined,
|
||||
});
|
||||
const missingTypeDefinitions = [];
|
||||
for (const [extendedTypeName, extensions] of Object.entries(extensionsMap)) {
|
||||
if (!definitionsMap[extendedTypeName]) {
|
||||
const extension = extensions[0];
|
||||
const kind = extension.kind;
|
||||
const definition = {
|
||||
kind: extKindToDefKind[kind],
|
||||
name: extension.name,
|
||||
};
|
||||
missingTypeDefinitions.push(definition);
|
||||
}
|
||||
}
|
||||
schema = (0, graphql_1.extendSchema)(schema, {
|
||||
kind: graphql_1.Kind.DOCUMENT,
|
||||
definitions: [
|
||||
...(0, flat_1.default)(Object.values(definitionsMap)),
|
||||
...missingTypeDefinitions,
|
||||
...directiveDefinitions,
|
||||
],
|
||||
}, {
|
||||
assumeValidSDL: true,
|
||||
});
|
||||
schema = (0, graphql_1.extendSchema)(schema, {
|
||||
kind: graphql_1.Kind.DOCUMENT,
|
||||
definitions: (0, flat_1.default)(Object.values(extensionsMap)),
|
||||
}, {
|
||||
assumeValidSDL: true,
|
||||
});
|
||||
let operationTypeMap;
|
||||
if (schemaDefinitions.length > 0 || schemaExtensions.length > 0) {
|
||||
operationTypeMap = {};
|
||||
const operationTypes = (0, flat_1.default)([...schemaDefinitions, ...schemaExtensions]
|
||||
.map((node) => node.operationTypes)
|
||||
.filter(isNotNullOrUndefined));
|
||||
for (const { operation, type } of operationTypes) {
|
||||
operationTypeMap[operation] = type.name.value;
|
||||
}
|
||||
}
|
||||
else {
|
||||
operationTypeMap = {
|
||||
query: "Query",
|
||||
mutation: "Mutation",
|
||||
subscription: "Subscription",
|
||||
};
|
||||
}
|
||||
schema = new graphql_1.GraphQLSchema(Object.assign(Object.assign(Object.assign({}, schema.toConfig()), (0, mapValues_1.mapValues)(operationTypeMap, (typeName) => typeName
|
||||
? schema.getType(typeName)
|
||||
: undefined)), { astNode: {
|
||||
kind: graphql_1.Kind.SCHEMA_DEFINITION,
|
||||
directives: schemaDirectives,
|
||||
operationTypes: [],
|
||||
} }));
|
||||
for (const module of modules) {
|
||||
if (!module.resolvers)
|
||||
continue;
|
||||
addResolversToSchema(schema, module.resolvers);
|
||||
}
|
||||
return schema;
|
||||
}
|
||||
exports.buildSchemaFromSDL = buildSchemaFromSDL;
|
||||
const extKindToDefKind = {
|
||||
[graphql_1.Kind.SCALAR_TYPE_EXTENSION]: graphql_1.Kind.SCALAR_TYPE_DEFINITION,
|
||||
[graphql_1.Kind.OBJECT_TYPE_EXTENSION]: graphql_1.Kind.OBJECT_TYPE_DEFINITION,
|
||||
[graphql_1.Kind.INTERFACE_TYPE_EXTENSION]: graphql_1.Kind.INTERFACE_TYPE_DEFINITION,
|
||||
[graphql_1.Kind.UNION_TYPE_EXTENSION]: graphql_1.Kind.UNION_TYPE_DEFINITION,
|
||||
[graphql_1.Kind.ENUM_TYPE_EXTENSION]: graphql_1.Kind.ENUM_TYPE_DEFINITION,
|
||||
[graphql_1.Kind.INPUT_OBJECT_TYPE_EXTENSION]: graphql_1.Kind.INPUT_OBJECT_TYPE_DEFINITION,
|
||||
};
|
||||
function addResolversToSchema(schema, resolvers) {
|
||||
for (const [typeName, fieldConfigs] of Object.entries(resolvers)) {
|
||||
const type = schema.getType(typeName);
|
||||
if ((0, graphql_1.isAbstractType)(type)) {
|
||||
for (const [fieldName, fieldConfig] of Object.entries(fieldConfigs)) {
|
||||
if (fieldName.startsWith("__")) {
|
||||
type[fieldName.substring(2)] = fieldConfig;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((0, graphql_1.isScalarType)(type)) {
|
||||
for (const fn in fieldConfigs) {
|
||||
type[fn] = fieldConfigs[fn];
|
||||
}
|
||||
}
|
||||
if ((0, graphql_1.isEnumType)(type)) {
|
||||
const values = type.getValues();
|
||||
const newValues = {};
|
||||
values.forEach((value) => {
|
||||
let newValue = fieldConfigs[value.name];
|
||||
if (newValue === undefined) {
|
||||
newValue = value.name;
|
||||
}
|
||||
newValues[value.name] = {
|
||||
value: newValue,
|
||||
deprecationReason: value.deprecationReason,
|
||||
description: value.description,
|
||||
astNode: value.astNode,
|
||||
extensions: undefined,
|
||||
};
|
||||
});
|
||||
Object.assign(type, new graphql_1.GraphQLEnumType(Object.assign(Object.assign({}, type.toConfig()), { values: newValues })));
|
||||
}
|
||||
if (!(0, graphql_1.isObjectType)(type))
|
||||
continue;
|
||||
const fieldMap = type.getFields();
|
||||
for (const [fieldName, fieldConfig] of Object.entries(fieldConfigs)) {
|
||||
if (fieldName.startsWith("__")) {
|
||||
type[fieldName.substring(2)] = fieldConfig;
|
||||
continue;
|
||||
}
|
||||
const field = fieldMap[fieldName];
|
||||
if (!field)
|
||||
continue;
|
||||
if (typeof fieldConfig === "function") {
|
||||
field.resolve = fieldConfig;
|
||||
}
|
||||
else {
|
||||
field.resolve = fieldConfig.resolve;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.addResolversToSchema = addResolversToSchema;
|
||||
function isNotNullOrUndefined(value) {
|
||||
return value !== null && typeof value !== "undefined";
|
||||
}
|
||||
//# sourceMappingURL=buildSchemaFromSDL.js.map
|
||||
1
node_modules/apollo-graphql/lib/schema/buildSchemaFromSDL.js.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/schema/buildSchemaFromSDL.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
6
node_modules/apollo-graphql/lib/schema/index.d.ts
generated
vendored
Normal file
6
node_modules/apollo-graphql/lib/schema/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export * from "./buildSchemaFromSDL";
|
||||
export * from "./GraphQLSchemaValidationError";
|
||||
export * from "./transformSchema";
|
||||
export * from "./resolverMap";
|
||||
export * from "./resolveObject";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/apollo-graphql/lib/schema/index.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/schema/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
||||
22
node_modules/apollo-graphql/lib/schema/index.js
generated
vendored
Normal file
22
node_modules/apollo-graphql/lib/schema/index.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__exportStar(require("./buildSchemaFromSDL"), exports);
|
||||
__exportStar(require("./GraphQLSchemaValidationError"), exports);
|
||||
__exportStar(require("./transformSchema"), exports);
|
||||
__exportStar(require("./resolverMap"), exports);
|
||||
__exportStar(require("./resolveObject"), exports);
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/apollo-graphql/lib/schema/index.js.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/schema/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,iEAA+C;AAC/C,oDAAkC;AAClC,gDAA8B;AAC9B,kDAAgC"}
|
||||
11
node_modules/apollo-graphql/lib/schema/resolveObject.d.ts
generated
vendored
Normal file
11
node_modules/apollo-graphql/lib/schema/resolveObject.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { GraphQLResolveInfo, FieldNode } from "graphql";
|
||||
export declare type GraphQLObjectResolver<TSource, TContext> = (source: TSource, fields: Record<string, ReadonlyArray<FieldNode>>, context: TContext, info: GraphQLResolveInfo) => any;
|
||||
declare module "graphql/type/definition" {
|
||||
interface GraphQLObjectType {
|
||||
resolveObject?: GraphQLObjectResolver<any, any>;
|
||||
}
|
||||
interface GraphQLObjectTypeConfig<TSource, TContext> {
|
||||
resolveObject?: GraphQLObjectResolver<TSource, TContext>;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=resolveObject.d.ts.map
|
||||
1
node_modules/apollo-graphql/lib/schema/resolveObject.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/schema/resolveObject.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"resolveObject.d.ts","sourceRoot":"","sources":["../../src/schema/resolveObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAExD,oBAAY,qBAAqB,CAAC,OAAO,EAAE,QAAQ,IAAI,CACrD,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC,EAChD,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,kBAAkB,KACrB,GAAG,CAAC;AAET,OAAO,QAAQ,yBAAyB,CAAC;IACvC,UAAU,iBAAiB;QACzB,aAAa,CAAC,EAAE,qBAAqB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;KACjD;IAED,UAAU,uBAAuB,CAAC,OAAO,EAAE,QAAQ;QACjD,aAAa,CAAC,EAAE,qBAAqB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;KAC1D;CACF"}
|
||||
3
node_modules/apollo-graphql/lib/schema/resolveObject.js
generated
vendored
Normal file
3
node_modules/apollo-graphql/lib/schema/resolveObject.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=resolveObject.js.map
|
||||
1
node_modules/apollo-graphql/lib/schema/resolveObject.js.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/schema/resolveObject.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"resolveObject.js","sourceRoot":"","sources":["../../src/schema/resolveObject.ts"],"names":[],"mappings":""}
|
||||
12
node_modules/apollo-graphql/lib/schema/resolverMap.d.ts
generated
vendored
Normal file
12
node_modules/apollo-graphql/lib/schema/resolverMap.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { GraphQLFieldResolver, GraphQLScalarType } from "graphql";
|
||||
export interface GraphQLResolverMap<TContext = {}> {
|
||||
[typeName: string]: {
|
||||
[fieldName: string]: GraphQLFieldResolver<any, TContext> | {
|
||||
requires?: string;
|
||||
resolve: GraphQLFieldResolver<any, TContext>;
|
||||
};
|
||||
} | GraphQLScalarType | {
|
||||
[enumValue: string]: string | number;
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=resolverMap.d.ts.map
|
||||
1
node_modules/apollo-graphql/lib/schema/resolverMap.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/schema/resolverMap.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"resolverMap.d.ts","sourceRoot":"","sources":["../../src/schema/resolverMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAElE,MAAM,WAAW,kBAAkB,CAAC,QAAQ,GAAG,EAAE;IAC/C,CAAC,QAAQ,EAAE,MAAM,GACb;QACE,CAAC,SAAS,EAAE,MAAM,GACd,oBAAoB,CAAC,GAAG,EAAE,QAAQ,CAAC,GACnC;YACE,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,OAAO,EAAE,oBAAoB,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;SAC9C,CAAC;KACP,GACD,iBAAiB,GACjB;QACE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;KACtC,CAAC;CACP"}
|
||||
3
node_modules/apollo-graphql/lib/schema/resolverMap.js
generated
vendored
Normal file
3
node_modules/apollo-graphql/lib/schema/resolverMap.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=resolverMap.js.map
|
||||
1
node_modules/apollo-graphql/lib/schema/resolverMap.js.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/schema/resolverMap.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"resolverMap.js","sourceRoot":"","sources":["../../src/schema/resolverMap.ts"],"names":[],"mappings":""}
|
||||
5
node_modules/apollo-graphql/lib/schema/transformSchema.d.ts
generated
vendored
Normal file
5
node_modules/apollo-graphql/lib/schema/transformSchema.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { GraphQLSchema, GraphQLNamedType } from "graphql";
|
||||
declare type TypeTransformer = (type: GraphQLNamedType) => GraphQLNamedType | null | undefined;
|
||||
export declare function transformSchema(schema: GraphQLSchema, transformType: TypeTransformer): GraphQLSchema;
|
||||
export {};
|
||||
//# sourceMappingURL=transformSchema.d.ts.map
|
||||
1
node_modules/apollo-graphql/lib/schema/transformSchema.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/schema/transformSchema.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"transformSchema.d.ts","sourceRoot":"","sources":["../../src/schema/transformSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,gBAAgB,EAqBjB,MAAM,SAAS,CAAC;AAGjB,aAAK,eAAe,GAAG,CACrB,IAAI,EAAE,gBAAgB,KACnB,gBAAgB,GAAG,IAAI,GAAG,SAAS,CAAC;AAEzC,wBAAgB,eAAe,CAC7B,MAAM,EAAE,aAAa,EACrB,aAAa,EAAE,eAAe,GAC7B,aAAa,CA+Hf"}
|
||||
71
node_modules/apollo-graphql/lib/schema/transformSchema.js
generated
vendored
Normal file
71
node_modules/apollo-graphql/lib/schema/transformSchema.js
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.transformSchema = void 0;
|
||||
const graphql_1 = require("graphql");
|
||||
const mapValues_1 = require("../utilities/mapValues");
|
||||
function transformSchema(schema, transformType) {
|
||||
const typeMap = Object.create(null);
|
||||
for (const oldType of Object.values(schema.getTypeMap())) {
|
||||
if ((0, graphql_1.isIntrospectionType)(oldType))
|
||||
continue;
|
||||
const result = transformType(oldType);
|
||||
if (result === null)
|
||||
continue;
|
||||
const newType = result || oldType;
|
||||
typeMap[newType.name] = recreateNamedType(newType);
|
||||
}
|
||||
const schemaConfig = schema.toConfig();
|
||||
return new graphql_1.GraphQLSchema(Object.assign(Object.assign({}, schemaConfig), { types: Object.values(typeMap), query: replaceMaybeType(schemaConfig.query), mutation: replaceMaybeType(schemaConfig.mutation), subscription: replaceMaybeType(schemaConfig.subscription), directives: replaceDirectives(schemaConfig.directives) }));
|
||||
function recreateNamedType(type) {
|
||||
if ((0, graphql_1.isObjectType)(type)) {
|
||||
const config = type.toConfig();
|
||||
return new graphql_1.GraphQLObjectType(Object.assign(Object.assign({}, config), { interfaces: () => config.interfaces.map(replaceNamedType), fields: () => replaceFields(config.fields) }));
|
||||
}
|
||||
else if ((0, graphql_1.isInterfaceType)(type)) {
|
||||
const config = type.toConfig();
|
||||
return new graphql_1.GraphQLInterfaceType(Object.assign(Object.assign({}, config), { interfaces: () => config.interfaces.map(replaceNamedType), fields: () => replaceFields(config.fields) }));
|
||||
}
|
||||
else if ((0, graphql_1.isUnionType)(type)) {
|
||||
const config = type.toConfig();
|
||||
return new graphql_1.GraphQLUnionType(Object.assign(Object.assign({}, config), { types: () => config.types.map(replaceNamedType) }));
|
||||
}
|
||||
else if ((0, graphql_1.isInputObjectType)(type)) {
|
||||
const config = type.toConfig();
|
||||
return new graphql_1.GraphQLInputObjectType(Object.assign(Object.assign({}, config), { fields: () => replaceInputFields(config.fields) }));
|
||||
}
|
||||
return type;
|
||||
}
|
||||
function replaceType(type) {
|
||||
if ((0, graphql_1.isListType)(type)) {
|
||||
return new graphql_1.GraphQLList(replaceType(type.ofType));
|
||||
}
|
||||
else if ((0, graphql_1.isNonNullType)(type)) {
|
||||
return new graphql_1.GraphQLNonNull(replaceType(type.ofType));
|
||||
}
|
||||
return replaceNamedType(type);
|
||||
}
|
||||
function replaceNamedType(type) {
|
||||
const newType = typeMap[type.name];
|
||||
return newType ? newType : type;
|
||||
}
|
||||
function replaceMaybeType(type) {
|
||||
return type ? replaceNamedType(type) : undefined;
|
||||
}
|
||||
function replaceFields(fieldsMap) {
|
||||
return (0, mapValues_1.mapValues)(fieldsMap, (field) => (Object.assign(Object.assign({}, field), { type: replaceType(field.type), args: field.args ? replaceArgs(field.args) : undefined })));
|
||||
}
|
||||
function replaceInputFields(fieldsMap) {
|
||||
return (0, mapValues_1.mapValues)(fieldsMap, (field) => (Object.assign(Object.assign({}, field), { type: replaceType(field.type) })));
|
||||
}
|
||||
function replaceArgs(args) {
|
||||
return (0, mapValues_1.mapValues)(args, (arg) => (Object.assign(Object.assign({}, arg), { type: replaceType(arg.type) })));
|
||||
}
|
||||
function replaceDirectives(directives) {
|
||||
return directives.map((directive) => {
|
||||
const config = directive.toConfig();
|
||||
return new graphql_1.GraphQLDirective(Object.assign(Object.assign({}, config), { args: replaceArgs(config.args) }));
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.transformSchema = transformSchema;
|
||||
//# sourceMappingURL=transformSchema.js.map
|
||||
1
node_modules/apollo-graphql/lib/schema/transformSchema.js.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/schema/transformSchema.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"transformSchema.js","sourceRoot":"","sources":["../../src/schema/transformSchema.ts"],"names":[],"mappings":";;;AAAA,qCAuBiB;AACjB,sDAAmD;AAMnD,SAAgB,eAAe,CAC7B,MAAqB,EACrB,aAA8B;IAE9B,MAAM,OAAO,GAA6C,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAE9E,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,EAAE;QACxD,IAAI,IAAA,6BAAmB,EAAC,OAAO,CAAC;YAAE,SAAS;Q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AC,CAAC,CAAC,CAAC,SAAS,CAAC;IACnD,CAAC;IAED,SAAS,aAAa,CACpB,SAAmD;QAEnD,OAAO,IAAA,qBAAS,EAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,iCAClC,KAAK,KACR,IAAI,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,EAC7B,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,IACtD,CAAC,CAAC;IACN,CAAC;IAED,SAAS,kBAAkB,CACzB,SAAqC;QAErC,OAAO,IAAA,qBAAS,EAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,iCAClC,KAAK,KACR,IAAI,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,IAC7B,CAAC,CAAC;IACN,CAAC;IAED,SAAS,WAAW,CAAC,IAAmC;QACtD,OAAO,IAAA,qBAAS,EAAC,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,iCAC3B,GAAG,KACN,IAAI,EAAE,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,IAC3B,CAAC,CAAC;IACN,CAAC;IAED,SAAS,iBAAiB,CAAC,UAA8B;QACvD,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;YAClC,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;YACpC,OAAO,IAAI,0BAAgB,iCACtB,MAAM,KACT,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,IAC9B,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAlID,0CAkIC"}
|
||||
8
node_modules/apollo-graphql/lib/transforms.d.ts
generated
vendored
Normal file
8
node_modules/apollo-graphql/lib/transforms.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { DocumentNode } from "graphql/language/ast";
|
||||
export declare function hideLiterals(ast: DocumentNode): DocumentNode;
|
||||
export declare function hideStringAndNumericLiterals(ast: DocumentNode): DocumentNode;
|
||||
export declare function dropUnusedDefinitions(ast: DocumentNode, operationName: string): DocumentNode;
|
||||
export declare function sortAST(ast: DocumentNode): DocumentNode;
|
||||
export declare function removeAliases(ast: DocumentNode): DocumentNode;
|
||||
export declare function printWithReducedWhitespace(ast: DocumentNode): string;
|
||||
//# sourceMappingURL=transforms.d.ts.map
|
||||
1
node_modules/apollo-graphql/lib/transforms.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/transforms.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"transforms.d.ts","sourceRoot":"","sources":["../src/transforms.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EAab,MAAM,sBAAsB,CAAC;AAe9B,wBAAgB,YAAY,CAAC,GAAG,EAAE,YAAY,GAAG,YAAY,CAkB5D;AAID,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,YAAY,GAAG,YAAY,CAY5E;AAOD,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,YAAY,EACjB,aAAa,EAAE,MAAM,GACpB,YAAY,CAQd;AAmBD,wBAAgB,OAAO,CAAC,GAAG,EAAE,YAAY,GAAG,YAAY,CAyDvD;AAMD,wBAAgB,aAAa,CAAC,GAAG,EAAE,YAAY,GAAG,YAAY,CAS7D;AAMD,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,CA2BpE"}
|
||||
110
node_modules/apollo-graphql/lib/transforms.js
generated
vendored
Normal file
110
node_modules/apollo-graphql/lib/transforms.js
generated
vendored
Normal file
@@ -0,0 +1,110 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.printWithReducedWhitespace = exports.removeAliases = exports.sortAST = exports.dropUnusedDefinitions = exports.hideStringAndNumericLiterals = exports.hideLiterals = void 0;
|
||||
const visitor_1 = require("graphql/language/visitor");
|
||||
const printer_1 = require("graphql/language/printer");
|
||||
const utilities_1 = require("graphql/utilities");
|
||||
const lodash_sortby_1 = __importDefault(require("lodash.sortby"));
|
||||
function hideLiterals(ast) {
|
||||
return (0, visitor_1.visit)(ast, {
|
||||
IntValue(node) {
|
||||
return Object.assign(Object.assign({}, node), { value: "0" });
|
||||
},
|
||||
FloatValue(node) {
|
||||
return Object.assign(Object.assign({}, node), { value: "0" });
|
||||
},
|
||||
StringValue(node) {
|
||||
return Object.assign(Object.assign({}, node), { value: "", block: false });
|
||||
},
|
||||
ListValue(node) {
|
||||
return Object.assign(Object.assign({}, node), { values: [] });
|
||||
},
|
||||
ObjectValue(node) {
|
||||
return Object.assign(Object.assign({}, node), { fields: [] });
|
||||
},
|
||||
});
|
||||
}
|
||||
exports.hideLiterals = hideLiterals;
|
||||
function hideStringAndNumericLiterals(ast) {
|
||||
return (0, visitor_1.visit)(ast, {
|
||||
IntValue(node) {
|
||||
return Object.assign(Object.assign({}, node), { value: "0" });
|
||||
},
|
||||
FloatValue(node) {
|
||||
return Object.assign(Object.assign({}, node), { value: "0" });
|
||||
},
|
||||
StringValue(node) {
|
||||
return Object.assign(Object.assign({}, node), { value: "", block: false });
|
||||
},
|
||||
});
|
||||
}
|
||||
exports.hideStringAndNumericLiterals = hideStringAndNumericLiterals;
|
||||
function dropUnusedDefinitions(ast, operationName) {
|
||||
const separated = (0, utilities_1.separateOperations)(ast)[operationName];
|
||||
if (!separated) {
|
||||
return ast;
|
||||
}
|
||||
return separated;
|
||||
}
|
||||
exports.dropUnusedDefinitions = dropUnusedDefinitions;
|
||||
function sorted(items, ...iteratees) {
|
||||
if (items) {
|
||||
return (0, lodash_sortby_1.default)(items, ...iteratees);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
function sortAST(ast) {
|
||||
return (0, visitor_1.visit)(ast, {
|
||||
Document(node) {
|
||||
return Object.assign(Object.assign({}, node), { definitions: (0, lodash_sortby_1.default)(node.definitions, "kind", "name.value") });
|
||||
},
|
||||
OperationDefinition(node) {
|
||||
return Object.assign(Object.assign({}, node), { variableDefinitions: sorted(node.variableDefinitions, "variable.name.value") });
|
||||
},
|
||||
SelectionSet(node) {
|
||||
return Object.assign(Object.assign({}, node), { selections: (0, lodash_sortby_1.default)(node.selections, "kind", "name.value") });
|
||||
},
|
||||
Field(node) {
|
||||
return Object.assign(Object.assign({}, node), { arguments: sorted(node.arguments, "name.value") });
|
||||
},
|
||||
FragmentSpread(node) {
|
||||
return Object.assign(Object.assign({}, node), { directives: sorted(node.directives, "name.value") });
|
||||
},
|
||||
InlineFragment(node) {
|
||||
return Object.assign(Object.assign({}, node), { directives: sorted(node.directives, "name.value") });
|
||||
},
|
||||
FragmentDefinition(node) {
|
||||
return Object.assign(Object.assign({}, node), { directives: sorted(node.directives, "name.value"), variableDefinitions: sorted(node.variableDefinitions, "variable.name.value") });
|
||||
},
|
||||
Directive(node) {
|
||||
return Object.assign(Object.assign({}, node), { arguments: sorted(node.arguments, "name.value") });
|
||||
},
|
||||
});
|
||||
}
|
||||
exports.sortAST = sortAST;
|
||||
function removeAliases(ast) {
|
||||
return (0, visitor_1.visit)(ast, {
|
||||
Field(node) {
|
||||
return Object.assign(Object.assign({}, node), { alias: undefined });
|
||||
},
|
||||
});
|
||||
}
|
||||
exports.removeAliases = removeAliases;
|
||||
function printWithReducedWhitespace(ast) {
|
||||
const sanitizedAST = (0, visitor_1.visit)(ast, {
|
||||
StringValue(node) {
|
||||
return Object.assign(Object.assign({}, node), { value: Buffer.from(node.value, "utf8").toString("hex"), block: false });
|
||||
},
|
||||
});
|
||||
const withWhitespace = (0, printer_1.print)(sanitizedAST);
|
||||
const minimizedButStillHex = withWhitespace
|
||||
.replace(/\s+/g, " ")
|
||||
.replace(/([^_a-zA-Z0-9]) /g, (_, c) => c)
|
||||
.replace(/ ([^_a-zA-Z0-9])/g, (_, c) => c);
|
||||
return minimizedButStillHex.replace(/"([a-f0-9]+)"/g, (_, hex) => JSON.stringify(Buffer.from(hex, "hex").toString("utf8")));
|
||||
}
|
||||
exports.printWithReducedWhitespace = printWithReducedWhitespace;
|
||||
//# sourceMappingURL=transforms.js.map
|
||||
1
node_modules/apollo-graphql/lib/transforms.js.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/transforms.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"transforms.js","sourceRoot":"","sources":["../src/transforms.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAiD;AAgBjD,sDAAiD;AACjD,iDAAuD;AAKvD,kEAAmC;AAQnC,SAAgB,YAAY,CAAC,GAAiB;IAC5C,OAAO,IAAA,eAAK,EAAC,GAAG,EAAE;QAChB,QAAQ,CAAC,IAAkB;YACzB,uCAAY,IAAI,KAAE,KAAK,EAAE,GAAG,IAAG;QACjC,CAAC;QACD,UAAU,CAAC,IAAoB;YAC7B,uCAAY,IAAI,KAAE,KAAK,EAAE,GAAG,IAAG;QACjC,CAAC;QACD,WAAW,CAAC,IAAqB;YAC/B,uCAAY,IAAI,KAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,IAAG;QAC9C,CAAC;QACD,SAAS,CAAC,IAAmB;YAC3B,uCAAY,IAAI,KAAE,MAAM,EAAE,EAAE,IAAG;QACjC,CAAC;QACD,WAAW,CAAC,IAAqB;YAC/B,uCAAY,IAAI,KAAE,MAAM,EAAE,EAAE,IAAG;QACjC,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAlBD,oCAkBC;AAID,SAAgB,4BAA4B,CAAC,GAAiB;IAC5D,OAAO,IAAA,eAAK,EAAC,GAAG,EAAE;QAChB,QAAQ,CAAC,IAAkB;YACzB,uCAAY,IAAI,KAAE,KAAK,EAAE,GAAG,IAAG;QACjC,CAAC;QACD,UAAU,CAAC,IAAoB;YAC7B,uCAAY,IAAI,KAAE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OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;SACpB,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;SACzC,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IAC7C,OAAO,oBAAoB,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAC/D,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CACzD,CAAC;AACJ,CAAC;AA3BD,gEA2BC"}
|
||||
2
node_modules/apollo-graphql/lib/utilities/createHash.d.ts
generated
vendored
Normal file
2
node_modules/apollo-graphql/lib/utilities/createHash.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function createHash(kind: string): import("crypto").Hash;
|
||||
//# sourceMappingURL=createHash.d.ts.map
|
||||
1
node_modules/apollo-graphql/lib/utilities/createHash.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/utilities/createHash.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"createHash.d.ts","sourceRoot":"","sources":["../../src/utilities/createHash.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,QAAQ,EAAE,IAAI,CAU9D"}
|
||||
12
node_modules/apollo-graphql/lib/utilities/createHash.js
generated
vendored
Normal file
12
node_modules/apollo-graphql/lib/utilities/createHash.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.createHash = void 0;
|
||||
const isNodeLike_1 = require("./isNodeLike");
|
||||
function createHash(kind) {
|
||||
if (isNodeLike_1.isNodeLike) {
|
||||
return module.require("crypto").createHash(kind);
|
||||
}
|
||||
return require("sha.js")(kind);
|
||||
}
|
||||
exports.createHash = createHash;
|
||||
//# sourceMappingURL=createHash.js.map
|
||||
1
node_modules/apollo-graphql/lib/utilities/createHash.js.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/utilities/createHash.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"createHash.js","sourceRoot":"","sources":["../../src/utilities/createHash.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,SAAgB,UAAU,CAAC,IAAY;IACrC,IAAI,uBAAU,EAAE;QAGd,OAAQ,MAAM,CAAC,OAAO,CAAC,QAAQ,CAA6B,CAAC,UAAU,CACrE,IAAI,CACL,CAAC;KACH;IAED,OAAQ,OAAO,CAAC,QAAQ,CAA6B,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC;AAVD,gCAUC"}
|
||||
4
node_modules/apollo-graphql/lib/utilities/graphql.d.ts
generated
vendored
Normal file
4
node_modules/apollo-graphql/lib/utilities/graphql.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { ASTNode, DocumentNode } from "graphql";
|
||||
export declare function isNode(maybeNode: any): maybeNode is ASTNode;
|
||||
export declare function isDocumentNode(node: ASTNode): node is DocumentNode;
|
||||
//# sourceMappingURL=graphql.d.ts.map
|
||||
1
node_modules/apollo-graphql/lib/utilities/graphql.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/utilities/graphql.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../src/utilities/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAQ,MAAM,SAAS,CAAC;AAEtD,wBAAgB,MAAM,CAAC,SAAS,EAAE,GAAG,GAAG,SAAS,IAAI,OAAO,CAE3D;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,YAAY,CAElE"}
|
||||
13
node_modules/apollo-graphql/lib/utilities/graphql.js
generated
vendored
Normal file
13
node_modules/apollo-graphql/lib/utilities/graphql.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isDocumentNode = exports.isNode = void 0;
|
||||
const graphql_1 = require("graphql");
|
||||
function isNode(maybeNode) {
|
||||
return maybeNode && typeof maybeNode.kind === "string";
|
||||
}
|
||||
exports.isNode = isNode;
|
||||
function isDocumentNode(node) {
|
||||
return isNode(node) && node.kind === graphql_1.Kind.DOCUMENT;
|
||||
}
|
||||
exports.isDocumentNode = isDocumentNode;
|
||||
//# sourceMappingURL=graphql.js.map
|
||||
1
node_modules/apollo-graphql/lib/utilities/graphql.js.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/utilities/graphql.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/utilities/graphql.ts"],"names":[],"mappings":";;;AAAA,qCAAsD;AAEtD,SAAgB,MAAM,CAAC,SAAc;IACnC,OAAO,SAAS,IAAI,OAAO,SAAS,CAAC,IAAI,KAAK,QAAQ,CAAC;AACzD,CAAC;AAFD,wBAEC;AAED,SAAgB,cAAc,CAAC,IAAa;IAC1C,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,KAAK,cAAI,CAAC,QAAQ,CAAC;AACrD,CAAC;AAFD,wCAEC"}
|
||||
2
node_modules/apollo-graphql/lib/utilities/isNodeLike.d.ts
generated
vendored
Normal file
2
node_modules/apollo-graphql/lib/utilities/isNodeLike.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare const isNodeLike: boolean;
|
||||
//# sourceMappingURL=isNodeLike.d.ts.map
|
||||
1
node_modules/apollo-graphql/lib/utilities/isNodeLike.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/utilities/isNodeLike.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"isNodeLike.d.ts","sourceRoot":"","sources":["../../src/utilities/isNodeLike.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,SAKoB,CAAC"}
|
||||
9
node_modules/apollo-graphql/lib/utilities/isNodeLike.js
generated
vendored
Normal file
9
node_modules/apollo-graphql/lib/utilities/isNodeLike.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isNodeLike = void 0;
|
||||
exports.isNodeLike = typeof process === "object" &&
|
||||
process &&
|
||||
process.release &&
|
||||
process.versions &&
|
||||
typeof process.versions.node === "string";
|
||||
//# sourceMappingURL=isNodeLike.js.map
|
||||
1
node_modules/apollo-graphql/lib/utilities/isNodeLike.js.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/utilities/isNodeLike.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"isNodeLike.js","sourceRoot":"","sources":["../../src/utilities/isNodeLike.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GACrB,OAAO,OAAO,KAAK,QAAQ;IAC3B,OAAO;IACP,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,QAAQ;IAChB,OAAO,OAAO,CAAC,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC"}
|
||||
2
node_modules/apollo-graphql/lib/utilities/mapValues.d.ts
generated
vendored
Normal file
2
node_modules/apollo-graphql/lib/utilities/mapValues.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function mapValues<T, U = T>(object: Record<string, T>, callback: (value: T) => U): Record<string, U>;
|
||||
//# sourceMappingURL=mapValues.d.ts.map
|
||||
1
node_modules/apollo-graphql/lib/utilities/mapValues.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/utilities/mapValues.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mapValues.d.ts","sourceRoot":"","sources":["../../src/utilities/mapValues.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAChC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,EACzB,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GACxB,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAQnB"}
|
||||
12
node_modules/apollo-graphql/lib/utilities/mapValues.js
generated
vendored
Normal file
12
node_modules/apollo-graphql/lib/utilities/mapValues.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.mapValues = void 0;
|
||||
function mapValues(object, callback) {
|
||||
const result = Object.create(null);
|
||||
for (const [key, value] of Object.entries(object)) {
|
||||
result[key] = callback(value);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
exports.mapValues = mapValues;
|
||||
//# sourceMappingURL=mapValues.js.map
|
||||
1
node_modules/apollo-graphql/lib/utilities/mapValues.js.map
generated
vendored
Normal file
1
node_modules/apollo-graphql/lib/utilities/mapValues.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mapValues.js","sourceRoot":"","sources":["../../src/utilities/mapValues.ts"],"names":[],"mappings":";;;AAAA,SAAgB,SAAS,CACvB,MAAyB,EACzB,QAAyB;IAEzB,MAAM,MAAM,GAAsB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAEtD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;QACjD,MAAM,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC/B;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAXD,8BAWC"}
|
||||
Reference in New Issue
Block a user