1 | {"version":3,"file":"index.cjs.js","sources":["../../../dist/utils/src/read-file-or-url.js","../../../dist/utils/src/string-interpolator.js","../../../dist/utils/src/load-from-module-export-expression.js","../../../dist/utils/src/resolver-data-factory.js","../../../dist/utils/src/with-cancel.js","../../../dist/utils/src/extract-resolvers.js","../../../dist/utils/src/ensure-document-node.js","../../../dist/utils/src/group-transforms.js","../../../dist/utils/src/apply-transforms.js","../../../dist/utils/src/flat-string.js","../../../dist/utils/src/fs-operations.js","../../../dist/utils/src/global-lru-cache.js","../../../dist/utils/src/jitExecute.js"],"sourcesContent":["import { fetchFactory } from 'fetchache';\nimport { fetch, Request, Response } from 'cross-fetch';\nimport isUrl from 'is-url';\nimport { load as loadYaml } from 'js-yaml';\nimport { isAbsolute, resolve } from 'path';\nimport { promises as fsPromises } from 'fs';\nconst { readFile, stat } = fsPromises || {};\nexport { isUrl };\nexport function getCachedFetch(cache) {\n return fetchFactory({\n fetch,\n Request,\n Response,\n cache,\n });\n}\nexport async function readFileOrUrlWithCache(filePathOrUrl, cache, config) {\n if (isUrl(filePathOrUrl)) {\n return readUrlWithCache(filePathOrUrl, cache, config);\n }\n else {\n return readFileWithCache(filePathOrUrl, cache, config);\n }\n}\nexport async function readFileWithCache(filePath, cache, config) {\n const { allowUnknownExtensions, cwd, fallbackFormat } = config || {};\n const actualPath = isAbsolute(filePath) ? filePath : resolve(cwd || process.cwd(), filePath);\n const cachedObj = await cache.get(actualPath);\n const stats = await stat(actualPath);\n if (cachedObj) {\n if (stats.mtimeMs <= cachedObj.mtimeMs) {\n return cachedObj.result;\n }\n }\n let result = await readFile(actualPath, 'utf-8');\n if (/json$/.test(filePath)) {\n result = JSON.parse(result);\n }\n else if (/yaml$/.test(filePath) || /yml$/.test(filePath)) {\n result = loadYaml(result);\n }\n else if (fallbackFormat) {\n switch (fallbackFormat) {\n case 'json':\n result = JSON.parse(result);\n break;\n case 'yaml':\n result = loadYaml(result);\n break;\n }\n }\n else if (!allowUnknownExtensions) {\n throw new Error(`Failed to parse JSON/YAML. Ensure file '${filePath}' has ` +\n `the correct extension (i.e. '.json', '.yaml', or '.yml).`);\n }\n cache.set(filePath, { result, mtimeMs: stats.mtimeMs });\n return result;\n}\nexport async function readUrlWithCache(path, cache, config) {\n var _a;\n const { allowUnknownExtensions, fallbackFormat } = config || {};\n const fetch = (config === null || config === void 0 ? void 0 : config.fetch) || getCachedFetch(cache);\n const response = await fetch(path, config);\n const contentType = ((_a = response.headers) === null || _a === void 0 ? void 0 : _a.get('content-type')) || '';\n const responseText = await response.text();\n if (/json$/.test(path) || contentType.startsWith('application/json') || fallbackFormat === 'json') {\n return JSON.parse(responseText);\n }\n else if (/yaml$/.test(path) ||\n /yml$/.test(path) ||\n contentType.includes('yaml') ||\n contentType.includes('yml') ||\n fallbackFormat === 'yaml') {\n return loadYaml(responseText);\n }\n else if (!allowUnknownExtensions) {\n throw new Error(`Failed to parse JSON/YAML. Ensure URL '${path}' has ` +\n `the correct extension (i.e. '.json', '.yaml', or '.yml) or mime type in the response headers.`);\n }\n return responseText;\n}\n//# sourceMappingURL=read-file-or-url.js.map","import { Interpolator } from '@ardatan/string-interpolation';\nimport { format } from 'date-fns';\nimport objectHash from 'object-hash';\nexport const stringInterpolator = new Interpolator({\n delimiter: ['{', '}'],\n});\nstringInterpolator.addAlias('typeName', 'info.parentType.name');\nstringInterpolator.addAlias('type', 'info.parentType.name');\nstringInterpolator.addAlias('parentType', 'info.parentType.name');\nstringInterpolator.addAlias('fieldName', 'info.fieldName');\nstringInterpolator.registerModifier('date', (formatStr) => format(new Date(), formatStr));\nstringInterpolator.registerModifier('hash', (value) => objectHash(value, { ignoreUnknown: true }));\n//# sourceMappingURL=string-interpolator.js.map","import { isAbsolute, join } from 'path';\nexport async function loadFromModuleExportExpression(expression, options) {\n if (typeof expression !== 'string') {\n return expression;\n }\n const { defaultExportName, cwd } = options || {};\n const [modulePath, exportName = defaultExportName] = expression.split('#');\n const mod = await tryImport(modulePath, cwd);\n if (exportName === 'default' || !exportName) {\n return mod.default || mod;\n }\n else {\n return mod[exportName] || (mod.default && mod.default[exportName]);\n }\n}\nasync function tryImport(modulePath, cwd) {\n try {\n return await import(modulePath);\n }\n catch (e1) {\n if (!isAbsolute(modulePath)) {\n try {\n const absoluteModulePath = isAbsolute(modulePath) ? modulePath : join(cwd || process.cwd(), modulePath);\n return await import(absoluteModulePath);\n }\n catch (e2) {\n if (e2.message.includes('Cannot find module')) {\n throw e1;\n }\n else {\n throw e2;\n }\n }\n }\n throw e1;\n }\n}\nexport function loadFromModuleExportExpressionSync(expression, options) {\n if (typeof expression !== 'string') {\n return expression;\n }\n const { defaultExportName, cwd } = options || {};\n const [modulePath, exportName = defaultExportName] = expression.split('#');\n const mod = tryImportSync(modulePath, cwd);\n if (exportName === 'default' || !exportName) {\n return mod.default || mod;\n }\n else {\n return mod[exportName] || (mod.default && mod.default[exportName]);\n }\n}\nfunction tryImportSync(modulePath, cwd) {\n try {\n return require(modulePath);\n }\n catch (e1) {\n if (!isAbsolute(modulePath)) {\n try {\n const absoluteModulePath = isAbsolute(modulePath) ? modulePath : join(cwd || process.cwd(), modulePath);\n return require(absoluteModulePath);\n }\n catch (e2) {\n if (e2.message.includes('Cannot find module')) {\n throw e1;\n }\n else {\n throw e2;\n }\n }\n }\n throw e1;\n }\n}\n//# sourceMappingURL=load-from-module-export-expression.js.map","import { GraphQLID, isInputType, GraphQLString, GraphQLBoolean, GraphQLFloat, GraphQLInt, } from 'graphql';\nimport { stringInterpolator } from './string-interpolator';\nimport { Headers } from 'cross-fetch';\nexport var ArgType;\n(function (ArgType) {\n ArgType[\"ID\"] = \"ID\";\n ArgType[\"String\"] = \"String\";\n ArgType[\"Boolean\"] = \"Boolean\";\n ArgType[\"Float\"] = \"Float\";\n ArgType[\"Int\"] = \"Int\";\n})(ArgType || (ArgType = {}));\nexport function getInputTypeFromTypeName(typeName) {\n if (isInputType(typeName)) {\n return typeName;\n }\n else {\n switch (typeName) {\n case ArgType.ID:\n return GraphQLID;\n case ArgType.String:\n return GraphQLString;\n case ArgType.Boolean:\n return GraphQLBoolean;\n case ArgType.Float:\n return GraphQLFloat;\n case ArgType.Int:\n return GraphQLInt;\n }\n }\n}\nexport function parseInterpolationStrings(interpolationStrings, argTypeMap) {\n const interpolationKeys = interpolationStrings.reduce((keys, str) => [...keys, ...(str ? stringInterpolator.parseRules(str).map((match) => match.key) : [])], []);\n const args = {};\n const contextVariables = [];\n for (const interpolationKey of interpolationKeys) {\n const interpolationKeyParts = interpolationKey.split('.');\n const varName = interpolationKeyParts[interpolationKeyParts.length - 1];\n if (interpolationKeyParts[0] === 'args') {\n const argType = argTypeMap && varName in argTypeMap ? getInputTypeFromTypeName(argTypeMap[varName]) : GraphQLID;\n args[varName] = {\n type: argType,\n };\n }\n else if (interpolationKeyParts[0] === 'context') {\n contextVariables.push(varName);\n }\n }\n return {\n args,\n contextVariables,\n };\n}\nexport function getInterpolatedStringFactory(nonInterpolatedString) {\n return resolverData => stringInterpolator.parse(nonInterpolatedString, resolverData);\n}\nexport function getInterpolatedHeadersFactory(nonInterpolatedHeaders = {}) {\n return resolverData => {\n const headers = new Headers();\n for (const headerName in nonInterpolatedHeaders) {\n const headerValue = nonInterpolatedHeaders[headerName];\n if (headerValue) {\n headers.set(headerName, stringInterpolator.parse(headerValue, resolverData));\n }\n }\n return headers;\n };\n}\nexport function getHeadersObject(headers) {\n const headersObj = {};\n headers.forEach((value, key) => {\n headersObj[key] = value;\n });\n return headersObj;\n}\n//# sourceMappingURL=resolver-data-factory.js.map","export function withCancel(asyncIteratorLike, onCancel) {\n const asyncIterator = asyncIteratorLike[Symbol.asyncIterator]();\n if (!asyncIterator.return) {\n asyncIterator.return = () => Promise.resolve({ value: undefined, done: true });\n }\n const savedReturn = asyncIterator.return.bind(asyncIterator);\n asyncIterator.return = () => {\n onCancel();\n return savedReturn();\n };\n return asyncIterator;\n}\n//# sourceMappingURL=with-cancel.js.map","import { getResolversFromSchema } from '@graphql-tools/utils';\nexport function extractResolvers(schema) {\n const allResolvers = getResolversFromSchema(schema);\n const filteredResolvers = {};\n for (const prop in allResolvers) {\n if (!prop.startsWith('_')) {\n filteredResolvers[prop] = allResolvers[prop];\n }\n }\n return filteredResolvers;\n}\n//# sourceMappingURL=extract-resolvers.js.map","import { parse } from 'graphql';\nexport function ensureDocumentNode(document) {\n return typeof document === 'string' ? parse(document) : document;\n}\n//# sourceMappingURL=ensure-document-node.js.map","export function groupTransforms(transforms) {\n const wrapTransforms = [];\n const noWrapTransforms = [];\n transforms === null || transforms === void 0 ? void 0 : transforms.forEach(transform => {\n if (transform.noWrap) {\n noWrapTransforms.push(transform);\n }\n else {\n wrapTransforms.push(transform);\n }\n });\n return { wrapTransforms, noWrapTransforms };\n}\n//# sourceMappingURL=group-transforms.js.map","export function applySchemaTransforms(originalWrappingSchema, subschemaConfig, transformedSchema, transforms) {\n return transforms.reduce((schema, transform) => 'transformSchema' in transform ? transform.transformSchema(schema, subschemaConfig, transformedSchema) : schema, originalWrappingSchema);\n}\nexport function applyRequestTransforms(originalRequest, delegationContext, transformationContext, transforms) {\n transformationContext.contextMap = transformationContext.contextMap || new WeakMap();\n const contextMap = transformationContext.contextMap;\n transforms === null || transforms === void 0 ? void 0 : transforms.forEach(transform => {\n if (!contextMap.has(transform)) {\n contextMap.set(transform, {\n nextIndex: 0,\n paths: {},\n });\n }\n });\n return transforms.reduceRight((request, transform) => 'transformRequest' in transform\n ? transform.transformRequest(request, delegationContext, contextMap.get(transform))\n : request, originalRequest);\n}\nexport function applyResultTransforms(originalResult, delegationContext, transformationContext, transforms) {\n const contextMap = transformationContext.contextMap;\n return transforms.reduceRight((result, transform) => 'transformResult' in transform\n ? transform.transformResult(result, delegationContext, contextMap.get(transform))\n : result, originalResult);\n}\n//# sourceMappingURL=apply-transforms.js.map","import flatstr from 'flatstr';\nexport function flatString(str) {\n return flatstr(str);\n}\nexport function jsonFlatStringify(data, replacer, space) {\n return flatString(JSON.stringify(data, replacer, space));\n}\n//# sourceMappingURL=flat-string.js.map","import { promises as fsPromises, readFileSync } from 'fs';\nimport { dirname } from 'path';\nimport { jsonFlatStringify } from './flat-string';\nconst { stat, writeFile: fsWriteFile, readFile, mkdir: fsMkdir } = fsPromises || {};\nexport async function pathExists(path) {\n if (!path) {\n return false;\n }\n try {\n await stat(path);\n return true;\n }\n catch (e) {\n if (e.toString().includes('ENOENT')) {\n return false;\n }\n else {\n throw e;\n }\n }\n}\nexport function readJSONSync(path) {\n const fileContent = readFileSync(path, 'utf-8');\n return JSON.parse(fileContent);\n}\nexport async function readJSON(path) {\n const fileContent = await readFile(path, 'utf-8');\n return JSON.parse(fileContent);\n}\nexport function writeJSON(path, data, replacer, space) {\n const stringified = jsonFlatStringify(data, replacer, space);\n return writeFile(path, stringified, 'utf-8');\n}\nexport const writeFile = async (path, ...args) => {\n if (typeof path === 'string') {\n const containingDir = dirname(path);\n if (!(await pathExists(containingDir))) {\n await mkdir(containingDir);\n }\n }\n return fsWriteFile(path, ...args);\n};\nexport async function mkdir(path, options = { recursive: true }) {\n const ifExists = await pathExists(path);\n if (!ifExists) {\n await fsMkdir(path, options);\n }\n}\n//# sourceMappingURL=fs-operations.js.map","import lru from 'tiny-lru';\nexport const globalLruCache = lru();\n//# sourceMappingURL=global-lru-cache.js.map","import { compileQuery, isCompiledQuery } from 'graphql-jit';\nimport { globalLruCache } from './global-lru-cache';\nimport { print } from 'graphql';\nexport const jitExecutorFactory = (schema, prefix) => ({ document, variables, context }, operationName, rootValue) => {\n const documentStr = print(document);\n const cacheKey = [prefix, documentStr, operationName].join('_');\n if (!globalLruCache.has(cacheKey)) {\n const compiledQuery = compileQuery(schema, document, operationName, {\n disableLeafSerialization: true,\n customJSONSerializer: true,\n });\n globalLruCache.set(cacheKey, compiledQuery);\n }\n const cachedQuery = globalLruCache.get(cacheKey);\n if (isCompiledQuery(cachedQuery)) {\n return cachedQuery.query(rootValue, context, variables);\n }\n return cachedQuery;\n};\n//# sourceMappingURL=jitExecute.js.map"],"names":["fsPromises","fetchFactory","fetch","Request","Response","isAbsolute","resolve","loadYaml","Interpolator","format","join","ArgType","isInputType","GraphQLID","GraphQLString","GraphQLBoolean","GraphQLFloat","GraphQLInt","Headers","getResolversFromSchema","parse","stat","readFile","readFileSync","path","dirname","print","compileQuery","isCompiledQuery"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAGA,WAAU,IAAI,EAAE,CAAC;AAErC,SAAS,cAAc,CAAC,KAAK,EAAE;AACtC,IAAI,OAAOC,sBAAY,CAAC;AACxB,eAAQC,gBAAK;AACb,iBAAQC,kBAAO;AACf,kBAAQC,mBAAQ;AAChB,QAAQ,KAAK;AACb,KAAK,CAAC,CAAC;AACP,CAAC;AACM,eAAe,sBAAsB,CAAC,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE;AAC3E,IAAI,IAAI,KAAK,CAAC,aAAa,CAAC,EAAE;AAC9B,QAAQ,OAAO,gBAAgB,CAAC,aAAa,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAC9D,KAAK;AACL,SAAS;AACT,QAAQ,OAAO,iBAAiB,CAAC,aAAa,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAC/D,KAAK;AACL,CAAC;AACM,eAAe,iBAAiB,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE;AACjE,IAAI,MAAM,EAAE,sBAAsB,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;AACzE,IAAI,MAAM,UAAU,GAAGC,eAAU,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAGC,YAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,EAAE,QAAQ,CAAC,CAAC;AACjG,IAAI,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AAClD,IAAI,MAAM,KAAK,GAAG,MAAM,IAAI,CAA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