diff --git a/__tests__/__snapshots__/babel.ts.snap b/__tests__/__snapshots__/babel.ts.snap index 39adb3d8..08d773f1 100644 --- a/__tests__/__snapshots__/babel.ts.snap +++ b/__tests__/__snapshots__/babel.ts.snap @@ -40,8 +40,8 @@ function nest1() { ↓ ↓ ↓ ↓ ↓ ↓ -import * as Ved68302f0b7c4c812ed026e4ca84e5c30072a6ca from './node_modules/.cache/graphql-let/input-Viewer-Partial.ts'; -const { useViewerQuery } = Ved68302f0b7c4c812ed026e4ca84e5c30072a6ca; +import * as Vc32847a88b2fa71e5454830d34259a5bc60114db from './node_modules/.cache/graphql-let/input-Viewer-Partial.ts'; +const { useViewerQuery } = Vc32847a88b2fa71e5454830d34259a5bc60114db; function nest1() { function nest2() { @@ -61,7 +61,7 @@ function nest1() { `; exports[`graphql-let macro-gql: node_modules/.cache/graphql-let/__types__.tsx 1`] = ` -/* 497fd3cc5b4adebcf3aada3a62576980d87716cf +/* 8ccc57a676cae37de529cf6255eca4f83f2dd47f * This file is automatically generated by graphql-let. */ import { GraphQLResolveInfo } from 'graphql'; @@ -211,7 +211,7 @@ export type IResolvers = Resolvers; `; exports[`graphql-let macro-gql: node_modules/.cache/graphql-let/input-Viewer-Partial.ts 1`] = ` -/* ed68302f0b7c4c812ed026e4ca84e5c30072a6ca +/* c32847a88b2fa71e5454830d34259a5bc60114db * This file is automatically generated by graphql-let. */ import * as Types from './__types__'; @@ -279,7 +279,7 @@ export type ViewerQueryResult = Apollo.QueryResult = Resolvers; `; exports[`graphql-let macro-gql: node_modules/@types/graphql-let/__generated__/input-Viewer-Partial.d.ts 1`] = ` -/* ed68302f0b7c4c812ed026e4ca84e5c30072a6ca +/* c32847a88b2fa71e5454830d34259a5bc60114db * This file is automatically generated by graphql-let. */ import * as Types from "./__types__"; @@ -432,7 +432,7 @@ export declare type __GraphQLLetTypeInjection = { `; exports[`graphql-let macro-gql: node_modules/@types/graphql-let/index.d.ts 1`] = ` -import Ted68302f0b7c4c812ed026e4ca84e5c30072a6ca from './__generated__/input-Viewer-Partial'; +import Tc32847a88b2fa71e5454830d34259a5bc60114db from './__generated__/input-Viewer-Partial'; export function gql(gql: \` # import Partial from './documents/partial.graphql' query Viewer { @@ -440,7 +440,7 @@ export function gql(gql: \` ...Partial } } -\`): Ted68302f0b7c4c812ed026e4ca84e5c30072a6ca.__GraphQLLetTypeInjection; +\`): Tc32847a88b2fa71e5454830d34259a5bc60114db.__GraphQLLetTypeInjection; `; @@ -482,8 +482,8 @@ function nest1() { ↓ ↓ ↓ ↓ ↓ ↓ -import * as V479e1b051ff6ed35fa952ede1d8cda20a5b8d114 from './node_modules/.cache/graphql-let/input-Viewer-Partial.ts'; -const { useViewerQuery } = V479e1b051ff6ed35fa952ede1d8cda20a5b8d114; +import * as V543c0feb9af268a54dd482a31d349212e219a42e from './node_modules/.cache/graphql-let/input-Viewer-Partial.ts'; +const { useViewerQuery } = V543c0feb9af268a54dd482a31d349212e219a42e; function nest1() { function nest2() { @@ -503,7 +503,7 @@ function nest1() { `; exports[`graphql-let macro-load: node_modules/.cache/graphql-let/__types__.tsx 1`] = ` -/* 497fd3cc5b4adebcf3aada3a62576980d87716cf +/* 8ccc57a676cae37de529cf6255eca4f83f2dd47f * This file is automatically generated by graphql-let. */ import { GraphQLResolveInfo } from 'graphql'; @@ -653,7 +653,7 @@ export type IResolvers = Resolvers; `; exports[`graphql-let macro-load: node_modules/.cache/graphql-let/input-Viewer-Partial.ts 1`] = ` -/* 479e1b051ff6ed35fa952ede1d8cda20a5b8d114 +/* 543c0feb9af268a54dd482a31d349212e219a42e * This file is automatically generated by graphql-let. */ import * as Types from './__types__'; @@ -721,7 +721,7 @@ export type ViewerQueryResult = Apollo.QueryResult = Resolvers; `; exports[`graphql-let macro-load: node_modules/@types/graphql-let/__generated__/input-Viewer-Partial.d.ts 1`] = ` -/* 479e1b051ff6ed35fa952ede1d8cda20a5b8d114 +/* 543c0feb9af268a54dd482a31d349212e219a42e * This file is automatically generated by graphql-let. */ import * as Types from "./__types__"; @@ -874,8 +874,8 @@ export declare type __GraphQLLetTypeInjection = { `; exports[`graphql-let macro-load: node_modules/@types/graphql-let/index.d.ts 1`] = ` -import T479e1b051ff6ed35fa952ede1d8cda20a5b8d114 from './__generated__/input-Viewer-Partial'; -export function load(load: \`./documents/viewer.graphql\`): T479e1b051ff6ed35fa952ede1d8cda20a5b8d114.__GraphQLLetTypeInjection; +import T543c0feb9af268a54dd482a31d349212e219a42e from './__generated__/input-Viewer-Partial'; +export function load(load: \`./documents/viewer.graphql\`): T543c0feb9af268a54dd482a31d349212e219a42e.__GraphQLLetTypeInjection; `; @@ -896,7 +896,7 @@ Array [ `; exports[`graphql-let plugin: node_modules/.cache/graphql-let/__types__.tsx 1`] = ` -/* 497fd3cc5b4adebcf3aada3a62576980d87716cf +/* 8ccc57a676cae37de529cf6255eca4f83f2dd47f * This file is automatically generated by graphql-let. */ import { GraphQLResolveInfo } from 'graphql'; @@ -1046,7 +1046,7 @@ export type IResolvers = Resolvers; `; exports[`graphql-let plugin: node_modules/.cache/graphql-let/input-Viewer.ts 1`] = ` -/* af49db201f15491f76f205723da63c0469e1a52e +/* 29cce2371467ad0780bd7b0f5d9182cba42ce3e1 * This file is automatically generated by graphql-let. */ import * as Types from './__types__'; @@ -1103,7 +1103,7 @@ export type ViewerQueryResult = Apollo.QueryResult = Resolvers; `; exports[`graphql-let plugin: node_modules/@types/graphql-let/__generated__/input-Viewer.d.ts 1`] = ` -/* af49db201f15491f76f205723da63c0469e1a52e +/* 29cce2371467ad0780bd7b0f5d9182cba42ce3e1 * This file is automatically generated by graphql-let. */ import * as Types from "./__types__"; @@ -1251,8 +1251,8 @@ export declare type __GraphQLLetTypeInjection = { `; exports[`graphql-let plugin: node_modules/@types/graphql-let/index.d.ts 1`] = ` -import Taf49db201f15491f76f205723da63c0469e1a52e from './__generated__/input-Viewer'; -export function gql(gql: \`query Viewer { viewer { name } }\`): Taf49db201f15491f76f205723da63c0469e1a52e.__GraphQLLetTypeInjection; +import T29cce2371467ad0780bd7b0f5d9182cba42ce3e1 from './__generated__/input-Viewer'; +export function gql(gql: \`query Viewer { viewer { name } }\`): T29cce2371467ad0780bd7b0f5d9182cba42ce3e1.__GraphQLLetTypeInjection; `; @@ -1283,8 +1283,8 @@ function nest1() { ↓ ↓ ↓ ↓ ↓ ↓ -import * as Vaf49db201f15491f76f205723da63c0469e1a52e from './node_modules/.cache/graphql-let/input-Viewer.ts'; -const { useViewerQuery } = Vaf49db201f15491f76f205723da63c0469e1a52e; +import * as V29cce2371467ad0780bd7b0f5d9182cba42ce3e1 from './node_modules/.cache/graphql-let/input-Viewer.ts'; +const { useViewerQuery } = V29cce2371467ad0780bd7b0f5d9182cba42ce3e1; function nest1() { function nest2() { diff --git a/__tests__/__snapshots__/hmr.ts.snap b/__tests__/__snapshots__/hmr.ts.snap index 25992965..74ccd7f4 100644 --- a/__tests__/__snapshots__/hmr.ts.snap +++ b/__tests__/__snapshots__/hmr.ts.snap @@ -2,7 +2,7 @@ exports[`HMR should effect to both schema and documents properly 1`] = ` Object { - "document": "/* ed4a8c87ea91744c5a0da500b4e2241a9e274fe4 + "document": "/* 81d9f5a2c409d51ec80fb127e2ba3084cdf32df4 * This file is automatically generated by graphql-let. */ import * as Types from \\"graphql-let/__generated__/__types__\\"; @@ -44,7 +44,7 @@ export declare type ViewerQueryHookResult = ReturnType; export declare type ViewerLazyQueryHookResult = ReturnType; export declare type ViewerQueryResult = Apollo.QueryResult;", "documentDtsPath": "src/viewer.graphql.d.ts", - "schema": "/* ef793228f2d1b2eead0e43c1a0fde16030975126 + "schema": "/* 8a40de3bd5cb7be935ca4231de35e15c1d42c906 * This file is automatically generated by graphql-let. */ import { GraphQLResolveInfo } from 'graphql'; @@ -144,7 +144,7 @@ export declare type IResolvers = Resolvers;", exports[`HMR should effect to both schema and documents properly 2`] = ` Object { - "document": "/* 32aaf391d0a955fdd8f7194ff429aa3e85625b6c + "document": "/* 8329e70ab73821fd3cf81bd1961ddfaa6df5a13f * This file is automatically generated by graphql-let. */ import * as Types from \\"graphql-let/__generated__/__types__\\"; @@ -186,7 +186,7 @@ export declare type ViewerQueryHookResult = ReturnType; export declare type ViewerLazyQueryHookResult = ReturnType; export declare type ViewerQueryResult = Apollo.QueryResult;", "documentDtsPath": "src/viewer.graphql.d.ts", - "schema": "/* ef793228f2d1b2eead0e43c1a0fde16030975126 + "schema": "/* 8a40de3bd5cb7be935ca4231de35e15c1d42c906 * This file is automatically generated by graphql-let. */ import { GraphQLResolveInfo } from 'graphql'; @@ -286,7 +286,7 @@ export declare type IResolvers = Resolvers;", exports[`HMR should effect to both schema and documents properly 3`] = ` Object { - "document": "/* a293e11847f8d46befbb501df4f1624af820a68d + "document": "/* f83c2c1a943dd8fce4f4c1125fd4932be5db2317 * This file is automatically generated by graphql-let. */ import * as Types from \\"graphql-let/__generated__/__types__\\"; @@ -328,7 +328,7 @@ export declare type ViewerQueryHookResult = ReturnType; export declare type ViewerLazyQueryHookResult = ReturnType; export declare type ViewerQueryResult = Apollo.QueryResult;", "documentDtsPath": "src/viewer.graphql.d.ts", - "schema": "/* e5b0eef82543e1120efe07c2db4de3dd4f97abfc + "schema": "/* 8d18fb828b21c0c966d4a480b96ddea493cc61b2 * This file is automatically generated by graphql-let. */ import { GraphQLResolveInfo } from 'graphql'; diff --git a/__tests__/tsconfig.ts b/__tests__/tsconfig.ts index 0067bae0..b508c841 100644 --- a/__tests__/tsconfig.ts +++ b/__tests__/tsconfig.ts @@ -5,8 +5,9 @@ import { createSystem, createVirtualCompilerHost, } from '@typescript/vfs'; +import { fetch as nodeFetch } from '@whatwg-node/fetch'; import { ok } from 'assert'; -import { fetch } from 'cross-fetch'; +import { fetch as crossFetch } from 'cross-fetch'; import fs, { Dirent } from 'fs'; import makeDir from 'make-dir'; import { dirname, join } from 'path'; @@ -15,6 +16,7 @@ import gen from '../src/gen'; import { AbsFn, prepareFixtures } from '../src/lib/__tools/file'; jest.mock('cross-fetch'); +jest.mock('@whatwg-node/fetch'); const getLib = (name: string) => { const lib = dirname(require.resolve('typescript')); @@ -115,11 +117,22 @@ describe('"graphql-let" command', () => { test('handles schema objects', async () => { // eslint-disable-next-line const schemaJson = require('./__fixtures/tsconfig/schema.json'); - (fetch as any).mockReturnValue({ + (crossFetch as any).mockReturnValue({ json() { return { data: schemaJson }; }, }); + + // This fetch is used by the schema loader + (nodeFetch as any).mockReturnValue({ + headers: new Map([['content-type', 'application/json']]), + status: 200, + statusText: 'OK', + text() { + return JSON.stringify({ data: schemaJson }); + }, + }); + let error = null; try { await gen({ @@ -130,10 +143,19 @@ describe('"graphql-let" command', () => { console.log(e); error = e; } + ok(error === null, error); // It's called twice in the library. Why? // expect(fetch).toHaveBeenCalledTimes(1); - expect(fetch).toHaveBeenCalledWith( + expect(nodeFetch).toHaveBeenCalledWith( + 'http://localhost:3000/graphql', + expect.objectContaining({ + headers: expect.objectContaining({ + Authorization: 'GRAPHQL-LET', + }), + }), + ); + expect(crossFetch).toHaveBeenCalledWith( 'http://localhost:3000/graphql', expect.objectContaining({ headers: expect.objectContaining({ diff --git a/package.json b/package.json index c90479be..3b047037 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,15 @@ "@babel/helper-plugin-utils": "7.14.5", "@babel/parser": "7.15.5", "@babel/traverse": "7.15.4", - "@graphql-tools/import": "6.4.0", + "@graphql-tools/apollo-engine-loader": "^7.0.0", + "@graphql-tools/code-file-loader": "^7.0.0", + "@graphql-tools/git-loader": "^7.0.0", + "@graphql-tools/github-loader": "^7.0.0", + "@graphql-tools/graphql-file-loader": "^7.0.0", + "@graphql-tools/import": "^6.7.0", + "@graphql-tools/json-file-loader": "^7.0.0", + "@graphql-tools/load": "^7.0.0", + "@graphql-tools/url-loader": "^7.0.0", "caller": "1.0.1", "gensync": "1.0.0-beta.2", "globby": "11.0.4", @@ -65,8 +73,6 @@ "@graphql-codegen/typescript-operations": "1.18.4", "@graphql-codegen/typescript-react-apollo": "2.3.1", "@graphql-codegen/typescript-resolvers": "1.19.1", - "@graphql-tools/graphql-file-loader": "6.2.7", - "@graphql-tools/import": "6.4.0", "@jest/transform": "27.2.0", "@jest/types": "27.1.0", "@types/babel-plugin-macros": "2.8.5", diff --git a/src/__snapshots__/gen.test.ts.snap b/src/__snapshots__/gen.test.ts.snap index 3a605bd0..ac1b2bf2 100644 --- a/src/__snapshots__/gen.test.ts.snap +++ b/src/__snapshots__/gen.test.ts.snap @@ -8,7 +8,7 @@ Array [ `; exports[`"graphql-let" command Basic command usage results in generating d.ts and passing tsc type check: pages/partial.graphql.d.ts 1`] = ` -"/* b1d182e4016dbcf4c946280198ae4047d06b270c +"/* a16cbb92bb41140d8d8b0776a08c1933eb84534b * This file is automatically generated by graphql-let. */ import * as Types from \\"graphql-let/__generated__/__types__\\"; @@ -19,7 +19,7 @@ export declare const PartialFragmentDoc: import(\\"@apollo/client\\").DocumentNo `; exports[`"graphql-let" command Basic command usage results in generating d.ts and passing tsc type check: pages/viewer.graphql.d.ts 1`] = ` -"/* 1e62d753794cf1ecc137bf843923ac261246923f +"/* 836e6100ad6bbc94a493b84a2dcd506885d1bcb5 * This file is automatically generated by graphql-let. */ import * as Types from \\"graphql-let/__generated__/__types__\\"; @@ -83,12 +83,12 @@ exports[`"graphql-let" command Runs twice and keeps valid caches 1`] = ` Array [ Object { "dtsRelPath": "__types__.d.ts", - "gqlHash": "f1329092fd6497d27c446729b442e24da40b28c7", + "gqlHash": "14f29168f013dfed4cfcc292a82d55478b04c520", "tsxRelPath": "__types__.tsx", }, Object { "dtsRelPath": "pages/viewer.graphql.d.ts", - "gqlHash": "48b0428a522b818dfb803bae0c6d649abb40e31d", + "gqlHash": "a09fc1810ab842c9791fcbcdbe23bf31b35e8993", "gqlRelPath": "pages/viewer.graphql", "tsxRelPath": "pages/viewer.graphql.tsx", }, @@ -99,12 +99,12 @@ exports[`"graphql-let" command Runs twice and keeps valid caches 2`] = ` Array [ Object { "dtsRelPath": "__types__.d.ts", - "gqlHash": "f1329092fd6497d27c446729b442e24da40b28c7", + "gqlHash": "14f29168f013dfed4cfcc292a82d55478b04c520", "tsxRelPath": "__types__.tsx", }, Object { "dtsRelPath": "pages/viewer.graphql.d.ts", - "gqlHash": "48b0428a522b818dfb803bae0c6d649abb40e31d", + "gqlHash": "a09fc1810ab842c9791fcbcdbe23bf31b35e8993", "gqlRelPath": "pages/viewer.graphql", "tsxRelPath": "pages/viewer.graphql.tsx", }, @@ -119,7 +119,7 @@ Array [ `; exports[`"graphql-let" command Use types and Resolver Types: pages/partial.graphql.d.ts 1`] = ` -"/* 8c73bcfe4e8554faa485435fc7d666373aadaa17 +"/* a5c2e557cabf8cb25eac1215e7406c8ff60a7fc2 * This file is automatically generated by graphql-let. */ import * as Types from \\"graphql-let/__generated__/__types__\\"; @@ -130,7 +130,7 @@ export declare const PartialFragmentDoc: import(\\"@apollo/client\\").DocumentNo `; exports[`"graphql-let" command Use types and Resolver Types: pages/viewer.graphql.d.ts 1`] = ` -"/* 9a3469f23fffcea0e7fcaa8c00a0d83ac12a80e4 +"/* fefba0fa14679aed38a73fbb7c9202bf9d28bed4 * This file is automatically generated by graphql-let. */ import * as Types from \\"graphql-let/__generated__/__types__\\"; @@ -198,7 +198,7 @@ Array [ `; exports[`"graphql-let" command documents: **/*.tsx generates .d.ts for babel: node_modules/.cache/graphql-let/__types__.tsx 1`] = ` -"/* 27569d60e28f4880a230cd26da042acd54d303af +"/* e4a444d763027ea226d1f96a7b7ebba147a75f45 * This file is automatically generated by graphql-let. */ import { GraphQLResolveInfo } from 'graphql'; @@ -347,7 +347,7 @@ export type IResolvers = Resolvers; `; exports[`"graphql-let" command documents: **/*.tsx generates .d.ts for babel: node_modules/.cache/graphql-let/pages/from-macro-ViewerFromMacro-Partial.tsx 1`] = ` -"/* e5e32f3604cc484c9547619cce01529a47277836 +"/* d777d1b7a62fa1ab6df407b82cd8e22180a53759 * This file is automatically generated by graphql-let. */ import * as Types from '../__types__'; @@ -414,7 +414,7 @@ export type ViewerFromMacroQueryResult = Apollo.QueryResult = Resolvers;" `; exports[`"graphql-let" command documents: **/*.tsx generates .d.ts for babel: node_modules/@types/graphql-let/__generated__/pages/from-macro-ViewerFromMacro-Partial.d.ts 1`] = ` -"/* e5e32f3604cc484c9547619cce01529a47277836 +"/* d777d1b7a62fa1ab6df407b82cd8e22180a53759 * This file is automatically generated by graphql-let. */ import * as Types from \\"../__types__\\"; @@ -920,7 +920,7 @@ export declare type __GraphQLLetTypeInjection = { `; exports[`"graphql-let" command documents: **/*.tsx generates .d.ts for babel: node_modules/@types/graphql-let/__generated__/pages/from-macro-ViewerFromMacro2-Partial.d.ts 1`] = ` -"/* 4e25fb0a41363bd635210a286f24ab81849f99b9 +"/* 1605ad8cbecb23cd6fe6855014f40f11b20273d5 * This file is automatically generated by graphql-let. */ import * as Types from \\"../__types__\\"; @@ -974,7 +974,7 @@ export declare type __GraphQLLetTypeInjection = { `; exports[`"graphql-let" command documents: **/*.tsx generates .d.ts for babel: node_modules/@types/graphql-let/__generated__/pages/index-Viewer-Partial.d.ts 1`] = ` -"/* b808b9cd1cc51ee9dacb9a8ad4ad31c6816d8169 +"/* 2709593b4f7174d52c8363d352c661b41f272464 * This file is automatically generated by graphql-let. */ import * as Types from \\"../__types__\\"; @@ -1028,7 +1028,7 @@ export declare type __GraphQLLetTypeInjection = { `; exports[`"graphql-let" command documents: **/*.tsx generates .d.ts for babel: node_modules/@types/graphql-let/__generated__/pages/index-ViewerY-Partial.d.ts 1`] = ` -"/* b045ed587f3be8783c00b58d261fec11d1a550f8 +"/* f52e3511143630b8d6ea468551a608ae7bb60ed9 * This file is automatically generated by graphql-let. */ import * as Types from \\"../__types__\\"; @@ -1082,9 +1082,9 @@ export declare type __GraphQLLetTypeInjection = { `; exports[`"graphql-let" command documents: **/*.tsx generates .d.ts for babel: node_modules/@types/graphql-let/index.d.ts 1`] = ` -"import Te5e32f3604cc484c9547619cce01529a47277836 from './__generated__/pages/from-macro-ViewerFromMacro-Partial'; -export function load(load: \`./viewer-from-macro.graphql\`): Te5e32f3604cc484c9547619cce01529a47277836.__GraphQLLetTypeInjection; -import T4e25fb0a41363bd635210a286f24ab81849f99b9 from './__generated__/pages/from-macro-ViewerFromMacro2-Partial'; +"import Td777d1b7a62fa1ab6df407b82cd8e22180a53759 from './__generated__/pages/from-macro-ViewerFromMacro-Partial'; +export function load(load: \`./viewer-from-macro.graphql\`): Td777d1b7a62fa1ab6df407b82cd8e22180a53759.__GraphQLLetTypeInjection; +import T1605ad8cbecb23cd6fe6855014f40f11b20273d5 from './__generated__/pages/from-macro-ViewerFromMacro2-Partial'; export function gql(gql: \` # import Partial from './partial.graphql' query ViewerFromMacro2 { @@ -1092,10 +1092,10 @@ export function gql(gql: \` ...Partial } } -\`): T4e25fb0a41363bd635210a286f24ab81849f99b9.__GraphQLLetTypeInjection; -import Tb808b9cd1cc51ee9dacb9a8ad4ad31c6816d8169 from './__generated__/pages/index-Viewer-Partial'; -export function load(load: \`./viewer.graphql\`): Tb808b9cd1cc51ee9dacb9a8ad4ad31c6816d8169.__GraphQLLetTypeInjection; -import Tb045ed587f3be8783c00b58d261fec11d1a550f8 from './__generated__/pages/index-ViewerY-Partial'; +\`): T1605ad8cbecb23cd6fe6855014f40f11b20273d5.__GraphQLLetTypeInjection; +import T2709593b4f7174d52c8363d352c661b41f272464 from './__generated__/pages/index-Viewer-Partial'; +export function load(load: \`./viewer.graphql\`): T2709593b4f7174d52c8363d352c661b41f272464.__GraphQLLetTypeInjection; +import Tf52e3511143630b8d6ea468551a608ae7bb60ed9 from './__generated__/pages/index-ViewerY-Partial'; export function gql(gql: \` # import Partial from './partial.graphql' query ViewerY { @@ -1103,7 +1103,7 @@ export function gql(gql: \` ...Partial } } -\`): Tb045ed587f3be8783c00b58d261fec11d1a550f8.__GraphQLLetTypeInjection; +\`): Tf52e3511143630b8d6ea468551a608ae7bb60ed9.__GraphQLLetTypeInjection; " `; diff --git a/src/__snapshots__/loader.test.ts.snap b/src/__snapshots__/loader.test.ts.snap index 7332af3e..6bab0c7a 100644 --- a/src/__snapshots__/loader.test.ts.snap +++ b/src/__snapshots__/loader.test.ts.snap @@ -16,7 +16,7 @@ Array [ `; exports[`graphql-let/loader generates .tsx and .d.ts: .cache/__types__.tsx 1`] = ` -"/* a4d778477a352acf8f4280c7fd1e75fafe04f50f +"/* 98eccc79263ea44d36aa7dcaf10f77a43f82c99c * This file is automatically generated by graphql-let. */ import { GraphQLResolveInfo } from 'graphql'; @@ -165,7 +165,7 @@ export type IResolvers = Resolvers; `; exports[`graphql-let/loader generates .tsx and .d.ts: .cache/pages/index-Viewer-Partial.tsx 1`] = ` -"/* 318db4e25e9707ac68da05f12944235ee95a49e0 +"/* 64483de5188586603cfb963e59c31102cd3ac51f * This file is automatically generated by graphql-let. */ import * as Types from '../__types__'; @@ -232,7 +232,7 @@ export type ViewerQueryResult = Apollo.QueryResult = Resolvers;" `; exports[`graphql-let/loader generates .tsx and .d.ts: node_modules/@types/graphql-let/__generated__/pages/index-Viewer-Partial.d.ts 1`] = ` -"/* 318db4e25e9707ac68da05f12944235ee95a49e0 +"/* 64483de5188586603cfb963e59c31102cd3ac51f * This file is automatically generated by graphql-let. */ import * as Types from \\"../__types__\\"; @@ -517,7 +517,7 @@ export declare type __GraphQLLetTypeInjection = { `; exports[`graphql-let/loader generates .tsx and .d.ts: node_modules/@types/graphql-let/__generated__/pages/index-ViewerY-Partial.d.ts 1`] = ` -"/* 4e59730f20e8cab090a59d3945f4fed42a3afefc +"/* 3d6d9be9141b8f78073434999df090f174f868fd * This file is automatically generated by graphql-let. */ import * as Types from \\"../__types__\\"; @@ -571,9 +571,9 @@ export declare type __GraphQLLetTypeInjection = { `; exports[`graphql-let/loader generates .tsx and .d.ts: node_modules/@types/graphql-let/index.d.ts 1`] = ` -"import T318db4e25e9707ac68da05f12944235ee95a49e0 from './__generated__/pages/index-Viewer-Partial'; -export function load(load: \`./viewer.graphql\`): T318db4e25e9707ac68da05f12944235ee95a49e0.__GraphQLLetTypeInjection; -import T4e59730f20e8cab090a59d3945f4fed42a3afefc from './__generated__/pages/index-ViewerY-Partial'; +"import T64483de5188586603cfb963e59c31102cd3ac51f from './__generated__/pages/index-Viewer-Partial'; +export function load(load: \`./viewer.graphql\`): T64483de5188586603cfb963e59c31102cd3ac51f.__GraphQLLetTypeInjection; +import T3d6d9be9141b8f78073434999df090f174f868fd from './__generated__/pages/index-ViewerY-Partial'; export function gql(gql: \` # import Partial from './partial.graphql' query ViewerY { @@ -581,7 +581,7 @@ export function gql(gql: \` ...Partial } } -\`): T4e59730f20e8cab090a59d3945f4fed42a3afefc.__GraphQLLetTypeInjection; +\`): T3d6d9be9141b8f78073434999df090f174f868fd.__GraphQLLetTypeInjection; " `; @@ -592,7 +592,7 @@ export { load } from \\".\\"; `; exports[`graphql-let/loader generates .tsx and .d.ts: pages/viewer.graphql.d.ts 1`] = ` -"/* 318db4e25e9707ac68da05f12944235ee95a49e0 +"/* 64483de5188586603cfb963e59c31102cd3ac51f * This file is automatically generated by graphql-let. */ import * as Types from \\"graphql-let/__generated__/__types__\\"; @@ -727,7 +727,7 @@ Array [ `; exports[`graphql-let/loader runs well for simultaneous execution, assuming SSR: .cache/__types__.tsx 1`] = ` -"/* a4d778477a352acf8f4280c7fd1e75fafe04f50f +"/* 98eccc79263ea44d36aa7dcaf10f77a43f82c99c * This file is automatically generated by graphql-let. */ import { GraphQLResolveInfo } from 'graphql'; @@ -876,7 +876,7 @@ export type IResolvers = Resolvers; `; exports[`graphql-let/loader runs well for simultaneous execution, assuming SSR: .cache/pages/index-Viewer-Partial.tsx 1`] = ` -"/* 318db4e25e9707ac68da05f12944235ee95a49e0 +"/* 64483de5188586603cfb963e59c31102cd3ac51f * This file is automatically generated by graphql-let. */ import * as Types from '../__types__'; @@ -943,7 +943,7 @@ export type ViewerQueryResult = Apollo.QueryResult = Resolvers;" `; exports[`graphql-let/loader runs well for simultaneous execution, assuming SSR: node_modules/@types/graphql-let/__generated__/pages/index-Viewer-Partial.d.ts 1`] = ` -"/* 318db4e25e9707ac68da05f12944235ee95a49e0 +"/* 64483de5188586603cfb963e59c31102cd3ac51f * This file is automatically generated by graphql-let. */ import * as Types from \\"../__types__\\"; @@ -1295,7 +1295,7 @@ export declare type __GraphQLLetTypeInjection = { `; exports[`graphql-let/loader runs well for simultaneous execution, assuming SSR: node_modules/@types/graphql-let/__generated__/pages/index-ViewerY-Partial.d.ts 1`] = ` -"/* 4e59730f20e8cab090a59d3945f4fed42a3afefc +"/* 3d6d9be9141b8f78073434999df090f174f868fd * This file is automatically generated by graphql-let. */ import * as Types from \\"../__types__\\"; @@ -1349,7 +1349,7 @@ export declare type __GraphQLLetTypeInjection = { `; exports[`graphql-let/loader runs well for simultaneous execution, assuming SSR: pages/viewer.graphql.d.ts 1`] = ` -"/* 318db4e25e9707ac68da05f12944235ee95a49e0 +"/* 64483de5188586603cfb963e59c31102cd3ac51f * This file is automatically generated by graphql-let. */ import * as Types from \\"graphql-let/__generated__/__types__\\"; @@ -1397,7 +1397,7 @@ export declare type ViewerQueryResult = Apollo.QueryResult { await spawn('yarn', ['tsc'], { cwd }); }); - test(`fails with detailed message on codegen error`, async () => { + test(`fails with detailed message on codegen schema load error`, async () => { const [cwd] = await prepareFixtures(__dirname, '__fixtures/gen/7_broken'); - const printedMessages: string[] = []; - const printError = jest.spyOn(prints, 'printError'); - printError.mockImplementation((err: Error) => { - printedMessages.push(err.message); - }); try { await gen({ cwd }); } catch (e) { - // Two for __types__.tsx and viewer.grpahql.tsx - expect(printedMessages.length).toBe(2); - expect(printedMessages[0]).toContain(`Failed to load schema - Failed to load schema from **/*.graphqls: - - Type "Broke" not found in document. - Error: Type "Broke" not found in document.`); + expect(e.message).toContain( + `Unknown type "Broke". Did you mean "Broken"`, + ); } }); diff --git a/src/lib/__snapshots__/codegen.test.ts.snap b/src/lib/__snapshots__/codegen.test.ts.snap index eeee5b76..b8a52228 100644 --- a/src/lib/__snapshots__/codegen.test.ts.snap +++ b/src/lib/__snapshots__/codegen.test.ts.snap @@ -8,7 +8,7 @@ Array [ `; exports[`graphql-codegen.ts works: .cache/__types__.tsx 1`] = ` -"/* fd7087b5b02c68930222c612a1edc1b91ba08dfe +"/* 23fb52c1607ebd4cd39ac05bbd42809ef7dddb02 * This file is automatically generated by graphql-let. */ import { GraphQLResolveInfo } from 'graphql'; diff --git a/src/lib/exec-context.ts b/src/lib/exec-context.ts index b902eae6..d9241fa4 100644 --- a/src/lib/exec-context.ts +++ b/src/lib/exec-context.ts @@ -1,11 +1,20 @@ import { Types } from '@graphql-codegen/plugin-helpers'; -import { readFileSync } from 'fs'; +import { ApolloEngineLoader } from '@graphql-tools/apollo-engine-loader'; +import { CodeFileLoader } from '@graphql-tools/code-file-loader'; +import { GitLoader } from '@graphql-tools/git-loader'; +import { GithubLoader } from '@graphql-tools/github-loader'; +import { GraphQLFileLoader } from '@graphql-tools/graphql-file-loader'; +import { JsonFileLoader } from '@graphql-tools/json-file-loader'; +import { + loadSchema as loadSchemaAsync, + loadSchemaSync, +} from '@graphql-tools/load'; +import { UrlLoader } from '@graphql-tools/url-loader'; import gensync from 'gensync'; -import slash from 'slash'; +import { printSchema } from 'graphql'; import { ConfigTypes } from './config'; -import { globby } from './gensynced'; import { createHash, createHashFromBuffers, readHash } from './hash'; -import { createSchemaPaths, getCacheFullDir, isURL } from './paths'; +import { createSchemaPaths, getCacheFullDir } from './paths'; import { CodegenContext, SchemaImportCodegenContext } from './types'; export type ExecContext = { @@ -15,40 +24,65 @@ export type ExecContext = { cacheFullDir: string; }; +// From @graphql-codegen/plugin-helpers +function normalizeInstanceOrArray(type: T | T[]): T[] { + if (Array.isArray(type)) { + return type; + } + if (!type) { + return []; + } + + return [type]; +} + +type SchemaConfig = { [index: string]: any }; function getSchemaPointers( schema: Types.InstanceOrArray, - _acc: string[] = [], -): string[] { - if (typeof schema === 'string') { - _acc.push(schema); - } else if (Array.isArray(schema)) { - for (const s of schema) getSchemaPointers(s, _acc); - } else if (typeof schema === 'object') { - for (const s of Object.keys(schema)) getSchemaPointers(s, _acc); - } - return _acc; +): SchemaConfig { + const schemaPointerMap: SchemaConfig = {}; + const normalizedSchema = normalizeInstanceOrArray(schema); + + normalizedSchema.forEach((denormalizedPtr) => { + if (typeof denormalizedPtr === 'string') { + schemaPointerMap[denormalizedPtr] = {}; + } else if (typeof denormalizedPtr === 'object') { + Object.assign(schemaPointerMap, denormalizedPtr); + } + }); + + return schemaPointerMap; } -function prepareCreateSchemaHashArgs(execContext: ExecContext) { +const loadSchema = gensync({ + sync: loadSchemaSync, + async: loadSchemaAsync, +}); + +const createSchemaHashGenerator = gensync(function* (execContext: ExecContext) { const { config, configHash, cwd } = execContext; const schemaPointers = getSchemaPointers(config.schema!); - // TODO: How can we detect update of remote GraphQL Schema? ETag? - // It caches the remote introspection forever in the current implementation. - const filePointers = schemaPointers.filter((p) => !isURL(p)); - return { configHash, cwd, filePointers }; -} -const createSchemaHashGenerator = gensync(function* (execContext: ExecContext) { - const { configHash, cwd, filePointers } = prepareCreateSchemaHashArgs( - execContext, - ); + // Uses the same loading mechanism as the underlying graphql-codegen + // See https://github.com/dotansimha/graphql-code-generator/blob/master/packages/graphql-codegen-cli/src/load.ts + const loaders = [ + new CodeFileLoader(), + new GitLoader(), + new GithubLoader(), + new GraphQLFileLoader(), + new JsonFileLoader(), + new UrlLoader(), + new ApolloEngineLoader(), + // new PrismaLoader(), - not Node 12 compatible + ]; + + const parsedSchema = yield* loadSchema(schemaPointers, { + cwd, + loaders, + }); + const schema = printSchema(parsedSchema); - const files: string[] = yield* globby(filePointers, { cwd, absolute: true }); - const contents = files - .map(slash) - .sort() - .map((file) => readFileSync(file, 'utf-8')); - return createHashFromBuffers([configHash, ...contents]); + return createHashFromBuffers([configHash, schema]); }); const appendSchemaImportContextGenerator = gensync(function* ( diff --git a/yarn.lock b/yarn.lock index d302ed58..6d851ba0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -107,6 +107,15 @@ __metadata: languageName: node linkType: hard +"@ardatan/sync-fetch@npm:^0.0.1": + version: 0.0.1 + resolution: "@ardatan/sync-fetch@npm:0.0.1" + dependencies: + node-fetch: ^2.6.1 + checksum: af39bdfb4c2b35bd2c6acc540a5e302730dae17e73d3a18cd1a4aa50c1c741cb1869dffdef1379c491da5ad2e3cfa2bf3a8064e6046c12b46c6a97f54f100a8d + languageName: node + linkType: hard + "@babel/code-frame@npm:7.12.11": version: 7.12.11 resolution: "@babel/code-frame@npm:7.12.11" @@ -134,6 +143,15 @@ __metadata: languageName: node linkType: hard +"@babel/code-frame@npm:^7.18.6": + version: 7.18.6 + resolution: "@babel/code-frame@npm:7.18.6" + dependencies: + "@babel/highlight": ^7.18.6 + checksum: 195e2be3172d7684bf95cff69ae3b7a15a9841ea9d27d3c843662d50cdd7d6470fd9c8e64be84d031117e4a4083486effba39f9aef6bbb2c89f7f21bcfba33ba + languageName: node + linkType: hard + "@babel/compat-data@npm:^7.13.11, @babel/compat-data@npm:^7.13.15, @babel/compat-data@npm:^7.13.8": version: 7.13.15 resolution: "@babel/compat-data@npm:7.13.15" @@ -250,6 +268,18 @@ __metadata: languageName: node linkType: hard +"@babel/generator@npm:^7.21.3": + version: 7.21.3 + resolution: "@babel/generator@npm:7.21.3" + dependencies: + "@babel/types": ^7.21.3 + "@jridgewell/gen-mapping": ^0.3.2 + "@jridgewell/trace-mapping": ^0.3.17 + jsesc: ^2.5.1 + checksum: be6bb5a32a0273260b91210d4137b7b5da148a2db8dd324654275cb0af865ae59de5e1536e93ac83423b2586415059e1c24cf94293026755cf995757238da749 + languageName: node + linkType: hard + "@babel/helper-annotate-as-pure@npm:^7.12.13": version: 7.12.13 resolution: "@babel/helper-annotate-as-pure@npm:7.12.13" @@ -418,6 +448,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-environment-visitor@npm:^7.18.9": + version: 7.18.9 + resolution: "@babel/helper-environment-visitor@npm:7.18.9" + checksum: b25101f6162ddca2d12da73942c08ad203d7668e06663df685634a8fde54a98bc015f6f62938e8554457a592a024108d45b8f3e651fd6dcdb877275b73cc4420 + languageName: node + linkType: hard + "@babel/helper-explode-assignable-expression@npm:^7.14.5": version: 7.14.5 resolution: "@babel/helper-explode-assignable-expression@npm:7.14.5" @@ -460,6 +497,16 @@ __metadata: languageName: node linkType: hard +"@babel/helper-function-name@npm:^7.21.0": + version: 7.21.0 + resolution: "@babel/helper-function-name@npm:7.21.0" + dependencies: + "@babel/template": ^7.20.7 + "@babel/types": ^7.21.0 + checksum: d63e63c3e0e3e8b3138fa47b0cd321148a300ef12b8ee951196994dcd2a492cc708aeda94c2c53759a5c9177fffaac0fd8778791286746f72a000976968daf4e + languageName: node + linkType: hard + "@babel/helper-get-function-arity@npm:^7.12.13": version: 7.12.13 resolution: "@babel/helper-get-function-arity@npm:7.12.13" @@ -505,6 +552,15 @@ __metadata: languageName: node linkType: hard +"@babel/helper-hoist-variables@npm:^7.18.6": + version: 7.18.6 + resolution: "@babel/helper-hoist-variables@npm:7.18.6" + dependencies: + "@babel/types": ^7.18.6 + checksum: fd9c35bb435fda802bf9ff7b6f2df06308a21277c6dec2120a35b09f9de68f68a33972e2c15505c1a1a04b36ec64c9ace97d4a9e26d6097b76b4396b7c5fa20f + languageName: node + linkType: hard + "@babel/helper-member-expression-to-functions@npm:^7.13.0, @babel/helper-member-expression-to-functions@npm:^7.13.12": version: 7.13.12 resolution: "@babel/helper-member-expression-to-functions@npm:7.13.12" @@ -648,6 +704,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-plugin-utils@npm:^7.19.0": + version: 7.20.2 + resolution: "@babel/helper-plugin-utils@npm:7.20.2" + checksum: f6cae53b7fdb1bf3abd50fa61b10b4470985b400cc794d92635da1e7077bb19729f626adc0741b69403d9b6e411cddddb9c0157a709cc7c4eeb41e663be5d74b + languageName: node + linkType: hard + "@babel/helper-remap-async-to-generator@npm:^7.14.5": version: 7.14.5 resolution: "@babel/helper-remap-async-to-generator@npm:7.14.5" @@ -787,6 +850,22 @@ __metadata: languageName: node linkType: hard +"@babel/helper-split-export-declaration@npm:^7.18.6": + version: 7.18.6 + resolution: "@babel/helper-split-export-declaration@npm:7.18.6" + dependencies: + "@babel/types": ^7.18.6 + checksum: c6d3dede53878f6be1d869e03e9ffbbb36f4897c7cc1527dc96c56d127d834ffe4520a6f7e467f5b6f3c2843ea0e81a7819d66ae02f707f6ac057f3d57943a2b + languageName: node + linkType: hard + +"@babel/helper-string-parser@npm:^7.19.4": + version: 7.19.4 + resolution: "@babel/helper-string-parser@npm:7.19.4" + checksum: b2f8a3920b30dfac81ec282ac4ad9598ea170648f8254b10f475abe6d944808fb006aab325d3eb5a8ad3bea8dfa888cfa6ef471050dae5748497c110ec060943 + languageName: node + linkType: hard + "@babel/helper-validator-identifier@npm:^7.12.11, @babel/helper-validator-identifier@npm:^7.14.0, @babel/helper-validator-identifier@npm:^7.14.8": version: 7.14.8 resolution: "@babel/helper-validator-identifier@npm:7.14.8" @@ -801,6 +880,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-validator-identifier@npm:^7.18.6, @babel/helper-validator-identifier@npm:^7.19.1": + version: 7.19.1 + resolution: "@babel/helper-validator-identifier@npm:7.19.1" + checksum: 0eca5e86a729162af569b46c6c41a63e18b43dbe09fda1d2a3c8924f7d617116af39cac5e4cd5d431bb760b4dca3c0970e0c444789b1db42bcf1fa41fbad0a3a + languageName: node + linkType: hard + "@babel/helper-validator-option@npm:^7.12.17": version: 7.12.17 resolution: "@babel/helper-validator-option@npm:7.12.17" @@ -894,6 +980,17 @@ __metadata: languageName: node linkType: hard +"@babel/highlight@npm:^7.18.6": + version: 7.18.6 + resolution: "@babel/highlight@npm:7.18.6" + dependencies: + "@babel/helper-validator-identifier": ^7.18.6 + chalk: ^2.0.0 + js-tokens: ^4.0.0 + checksum: 92d8ee61549de5ff5120e945e774728e5ccd57fd3b2ed6eace020ec744823d4a98e242be1453d21764a30a14769ecd62170fba28539b211799bbaf232bbb2789 + languageName: node + linkType: hard + "@babel/parser@npm:7.12.11": version: 7.12.11 resolution: "@babel/parser@npm:7.12.11" @@ -930,6 +1027,15 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:^7.16.8, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.21.3": + version: 7.21.3 + resolution: "@babel/parser@npm:7.21.3" + bin: + parser: ./bin/babel-parser.js + checksum: a71e6456a1260c2a943736b56cc0acdf5f2a53c6c79e545f56618967e51f9b710d1d3359264e7c979313a7153741b1d95ad8860834cc2ab4ce4f428b13cc07be + languageName: node + linkType: hard + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@npm:^7.15.4": version: 7.15.4 resolution: "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@npm:7.15.4" @@ -1247,6 +1353,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-syntax-import-assertions@npm:7.20.0": + version: 7.20.0 + resolution: "@babel/plugin-syntax-import-assertions@npm:7.20.0" + dependencies: + "@babel/helper-plugin-utils": ^7.19.0 + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 6a86220e0aae40164cd3ffaf80e7c076a1be02a8f3480455dddbae05fda8140f429290027604df7a11b3f3f124866e8a6d69dbfa1dda61ee7377b920ad144d5b + languageName: node + linkType: hard + "@babel/plugin-syntax-import-meta@npm:^7.8.3": version: 7.10.4 resolution: "@babel/plugin-syntax-import-meta@npm:7.10.4" @@ -2268,6 +2385,17 @@ __metadata: languageName: node linkType: hard +"@babel/template@npm:^7.20.7": + version: 7.20.7 + resolution: "@babel/template@npm:7.20.7" + dependencies: + "@babel/code-frame": ^7.18.6 + "@babel/parser": ^7.20.7 + "@babel/types": ^7.20.7 + checksum: 2eb1a0ab8d415078776bceb3473d07ab746e6bb4c2f6ca46ee70efb284d75c4a32bb0cd6f4f4946dec9711f9c0780e8e5d64b743208deac6f8e9858afadc349e + languageName: node + linkType: hard + "@babel/traverse@npm:7.12.12": version: 7.12.12 resolution: "@babel/traverse@npm:7.12.12" @@ -2335,6 +2463,24 @@ __metadata: languageName: node linkType: hard +"@babel/traverse@npm:^7.16.8": + version: 7.21.3 + resolution: "@babel/traverse@npm:7.21.3" + dependencies: + "@babel/code-frame": ^7.18.6 + "@babel/generator": ^7.21.3 + "@babel/helper-environment-visitor": ^7.18.9 + "@babel/helper-function-name": ^7.21.0 + "@babel/helper-hoist-variables": ^7.18.6 + "@babel/helper-split-export-declaration": ^7.18.6 + "@babel/parser": ^7.21.3 + "@babel/types": ^7.21.3 + debug: ^4.1.0 + globals: ^11.1.0 + checksum: 0af5bcd47a2fc501592b90ac1feae9d449afb9ab0772a4f6e68230f4cd3a475795d538c1de3f880fe3414b6c2820bac84d02c6549eea796f39d74a603717447b + languageName: node + linkType: hard + "@babel/types@npm:7.12.12": version: 7.12.12 resolution: "@babel/types@npm:7.12.12" @@ -2376,6 +2522,17 @@ __metadata: languageName: node linkType: hard +"@babel/types@npm:^7.16.8, @babel/types@npm:^7.18.6, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.0, @babel/types@npm:^7.21.3": + version: 7.21.3 + resolution: "@babel/types@npm:7.21.3" + dependencies: + "@babel/helper-string-parser": ^7.19.4 + "@babel/helper-validator-identifier": ^7.19.1 + to-fast-properties: ^2.0.0 + checksum: b750274718ba9cefd0b81836c464009bb6ba339fccce51b9baff497a0a2d96c044c61dc90cf203cec0adc770454b53a9681c3f7716883c802b85ab84c365ba35 + languageName: node + linkType: hard + "@bcoe/v8-coverage@npm:^0.2.3": version: 0.2.3 resolution: "@bcoe/v8-coverage@npm:0.2.3" @@ -2698,6 +2855,20 @@ __metadata: languageName: node linkType: hard +"@graphql-tools/apollo-engine-loader@npm:^7.0.0": + version: 7.3.26 + resolution: "@graphql-tools/apollo-engine-loader@npm:7.3.26" + dependencies: + "@ardatan/sync-fetch": ^0.0.1 + "@graphql-tools/utils": ^9.2.1 + "@whatwg-node/fetch": ^0.8.0 + tslib: ^2.4.0 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 2dd0324cd677c0a399a3cda6f155e4367ac38c8f6ec8a36c50931e97ce93d70f716f95575bcfda33d5a5b3c75f0ba04c73b82d22613f1a89e3c31965f576ae22 + languageName: node + linkType: hard + "@graphql-tools/batch-execute@npm:^7.0.0": version: 7.0.0 resolution: "@graphql-tools/batch-execute@npm:7.0.0" @@ -2712,6 +2883,20 @@ __metadata: languageName: node linkType: hard +"@graphql-tools/batch-execute@npm:^8.5.18": + version: 8.5.18 + resolution: "@graphql-tools/batch-execute@npm:8.5.18" + dependencies: + "@graphql-tools/utils": 9.2.1 + dataloader: 2.2.2 + tslib: ^2.4.0 + value-or-promise: 1.0.12 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 4a5b5dec502a91bd657a4ddad74965d050d3994c89f036225fac58657b5a275bb374224b20484e3ba773525e75a5552c4a5af7b6d52859ce3a3b32aec2412b6e + languageName: node + linkType: hard + "@graphql-tools/code-file-loader@npm:^6": version: 6.2.6 resolution: "@graphql-tools/code-file-loader@npm:6.2.6" @@ -2725,6 +2910,38 @@ __metadata: languageName: node linkType: hard +"@graphql-tools/code-file-loader@npm:^7.0.0": + version: 7.3.21 + resolution: "@graphql-tools/code-file-loader@npm:7.3.21" + dependencies: + "@graphql-tools/graphql-tag-pluck": 7.5.0 + "@graphql-tools/utils": 9.2.1 + globby: ^11.0.3 + tslib: ^2.4.0 + unixify: ^1.0.0 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 5d0d0a70bac673b4925a65f2283e3fcc5c093d2466a144cc577cb515d3de92ca2458d92842e02fe82a95d57d30ce6d2998b8ee5674393f7cd3df52f69671d565 + languageName: node + linkType: hard + +"@graphql-tools/delegate@npm:9.0.28, @graphql-tools/delegate@npm:^9.0.27": + version: 9.0.28 + resolution: "@graphql-tools/delegate@npm:9.0.28" + dependencies: + "@graphql-tools/batch-execute": ^8.5.18 + "@graphql-tools/executor": ^0.0.15 + "@graphql-tools/schema": ^9.0.16 + "@graphql-tools/utils": ^9.2.1 + dataloader: ^2.2.2 + tslib: ^2.5.0 + value-or-promise: ^1.0.12 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: e24c757ea15a2b654268194bbf76188fca6692486d1b019b0ad7d48c264f92b7b681a43c8a8355ace48a29f9dd566c20e8707b6cef281331a813f23ee1c94375 + languageName: node + linkType: hard + "@graphql-tools/delegate@npm:^7.0.1, @graphql-tools/delegate@npm:^7.0.7": version: 7.0.8 resolution: "@graphql-tools/delegate@npm:7.0.8" @@ -2742,6 +2959,71 @@ __metadata: languageName: node linkType: hard +"@graphql-tools/executor-graphql-ws@npm:^0.0.12": + version: 0.0.12 + resolution: "@graphql-tools/executor-graphql-ws@npm:0.0.12" + dependencies: + "@graphql-tools/utils": 9.2.1 + "@repeaterjs/repeater": 3.0.4 + "@types/ws": ^8.0.0 + graphql-ws: 5.12.0 + isomorphic-ws: 5.0.0 + tslib: ^2.4.0 + ws: 8.12.1 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 017f970c19e843c24da9f2b2cf45b5d922f5652b05e34c69fb27c3882618c8cc6a6ee008d4e767c1e74b2ba8630147ec8c7821996ff0eb1724f15dc27b95d1fd + languageName: node + linkType: hard + +"@graphql-tools/executor-http@npm:^0.1.7": + version: 0.1.9 + resolution: "@graphql-tools/executor-http@npm:0.1.9" + dependencies: + "@graphql-tools/utils": ^9.2.1 + "@repeaterjs/repeater": ^3.0.4 + "@whatwg-node/fetch": ^0.8.1 + dset: ^3.1.2 + extract-files: ^11.0.0 + meros: ^1.2.1 + tslib: ^2.4.0 + value-or-promise: ^1.0.12 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: de62f839c3775141f444a6a453bf8cd01e42257a915845180b7f840b59bb781c21eeb59f68b609dcbab5bae73bc9fa40f3d16449f23410bc616b1f347dedf1d1 + languageName: node + linkType: hard + +"@graphql-tools/executor-legacy-ws@npm:^0.0.9": + version: 0.0.9 + resolution: "@graphql-tools/executor-legacy-ws@npm:0.0.9" + dependencies: + "@graphql-tools/utils": 9.2.1 + "@types/ws": ^8.0.0 + isomorphic-ws: 5.0.0 + tslib: ^2.4.0 + ws: 8.12.1 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 9f35a38d1e064d4c82eee8d91d0b12552f75b65a413e1defc3831c726c6304f26b3651d3bd26aff3f58e049e40639ddf9b27f681a8bc49fdf11fb693e0d05392 + languageName: node + linkType: hard + +"@graphql-tools/executor@npm:^0.0.15": + version: 0.0.15 + resolution: "@graphql-tools/executor@npm:0.0.15" + dependencies: + "@graphql-tools/utils": 9.2.1 + "@graphql-typed-document-node/core": 3.1.2 + "@repeaterjs/repeater": 3.0.4 + tslib: ^2.4.0 + value-or-promise: 1.0.12 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 7a963d6fcd00bd9c2a42f35a33bc9178576a1eeac755ce69981aa1e2c61238953b7ab9c11ffcfc86e49fdcf4fc057698c6f7169d6be580298e286076276b1295 + languageName: node + linkType: hard + "@graphql-tools/git-loader@npm:^6": version: 6.2.6 resolution: "@graphql-tools/git-loader@npm:6.2.6" @@ -2755,6 +3037,22 @@ __metadata: languageName: node linkType: hard +"@graphql-tools/git-loader@npm:^7.0.0": + version: 7.2.20 + resolution: "@graphql-tools/git-loader@npm:7.2.20" + dependencies: + "@graphql-tools/graphql-tag-pluck": 7.5.0 + "@graphql-tools/utils": 9.2.1 + is-glob: 4.0.3 + micromatch: ^4.0.4 + tslib: ^2.4.0 + unixify: ^1.0.0 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: a0f16d44c60261eb9680f907d56b86ce3dda4642118ef3c436946f8e5dc1390151b9fd5ae75d34736c78d16e3e1191c1596bd8a86866fe2384ee7b73b9000e29 + languageName: node + linkType: hard + "@graphql-tools/github-loader@npm:^6": version: 6.2.5 resolution: "@graphql-tools/github-loader@npm:6.2.5" @@ -2769,7 +3067,22 @@ __metadata: languageName: node linkType: hard -"@graphql-tools/graphql-file-loader@npm:6.2.7, @graphql-tools/graphql-file-loader@npm:^6, @graphql-tools/graphql-file-loader@npm:^6.0.0": +"@graphql-tools/github-loader@npm:^7.0.0": + version: 7.3.27 + resolution: "@graphql-tools/github-loader@npm:7.3.27" + dependencies: + "@ardatan/sync-fetch": ^0.0.1 + "@graphql-tools/graphql-tag-pluck": ^7.4.6 + "@graphql-tools/utils": ^9.2.1 + "@whatwg-node/fetch": ^0.8.0 + tslib: ^2.4.0 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 467d5c9f0df5a26656dbd5939768335277eb25023331a359fd4748c2cd85de85affe8d7ac93ac9d51202ed208c54357561e32e2520fae28fdbc42dda72dd99f4 + languageName: node + linkType: hard + +"@graphql-tools/graphql-file-loader@npm:^6, @graphql-tools/graphql-file-loader@npm:^6.0.0": version: 6.2.7 resolution: "@graphql-tools/graphql-file-loader@npm:6.2.7" dependencies: @@ -2782,6 +3095,37 @@ __metadata: languageName: node linkType: hard +"@graphql-tools/graphql-file-loader@npm:^7.0.0": + version: 7.5.16 + resolution: "@graphql-tools/graphql-file-loader@npm:7.5.16" + dependencies: + "@graphql-tools/import": 6.7.17 + "@graphql-tools/utils": 9.2.1 + globby: ^11.0.3 + tslib: ^2.4.0 + unixify: ^1.0.0 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 5f9af56511a2f791677ad2601e745053d3f28b3afdf5542261e4bbf9924b9872244dcb0c9f6c7ca7fe91b658c12f4d91529efd9638653e112ad75bf79c915d78 + languageName: node + linkType: hard + +"@graphql-tools/graphql-tag-pluck@npm:7.5.0, @graphql-tools/graphql-tag-pluck@npm:^7.4.6": + version: 7.5.0 + resolution: "@graphql-tools/graphql-tag-pluck@npm:7.5.0" + dependencies: + "@babel/parser": ^7.16.8 + "@babel/plugin-syntax-import-assertions": 7.20.0 + "@babel/traverse": ^7.16.8 + "@babel/types": ^7.16.8 + "@graphql-tools/utils": 9.2.1 + tslib: ^2.4.0 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 47edaacdeafc4a464f8a51e047cafbb82a9a2700536a5b075eb4afad43c80b513a7b0ac4ad49a1e8a74b566ed7dfd677ebb0d0a967fe1e2ee66408cd5d4f294b + languageName: node + linkType: hard + "@graphql-tools/graphql-tag-pluck@npm:^6.2.6": version: 6.4.0 resolution: "@graphql-tools/graphql-tag-pluck@npm:6.4.0" @@ -2801,15 +3145,16 @@ __metadata: languageName: node linkType: hard -"@graphql-tools/import@npm:6.4.0": - version: 6.4.0 - resolution: "@graphql-tools/import@npm:6.4.0" +"@graphql-tools/import@npm:6.7.17, @graphql-tools/import@npm:^6.7.0": + version: 6.7.17 + resolution: "@graphql-tools/import@npm:6.7.17" dependencies: + "@graphql-tools/utils": 9.2.1 resolve-from: 5.0.0 - tslib: ~2.3.0 + tslib: ^2.4.0 peerDependencies: - graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 - checksum: f2fd8b0a192a324637a638c4218d62f8a16824749b5ca796f46be34a539a745c3ac8e5fb38757ee774205fca23c500c7d063d206875e85a21e8f150b8c185a46 + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 232debc4abed340f9ab04a9474e6f1af0f50d5b6b66dc6f7b7307872a27bd00745bc4fad1d7d00bf3503686766d2e26c9c42c4f1e2409111799ad80119a8303a languageName: node linkType: hard @@ -2837,6 +3182,20 @@ __metadata: languageName: node linkType: hard +"@graphql-tools/json-file-loader@npm:^7.0.0": + version: 7.4.17 + resolution: "@graphql-tools/json-file-loader@npm:7.4.17" + dependencies: + "@graphql-tools/utils": 9.2.1 + globby: ^11.0.3 + tslib: ^2.4.0 + unixify: ^1.0.0 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 54e4d1acf5bb1b55d72500b2ebb521d821edfb99ad7c1b0f0d6b2e3f87cfcda2d61ce6d4a886117ac11fb94354da6f7435f35a1ffdc359cf2e39da1d0fde76c5 + languageName: node + linkType: hard + "@graphql-tools/load@npm:^6, @graphql-tools/load@npm:^6.0.0": version: 6.2.5 resolution: "@graphql-tools/load@npm:6.2.5" @@ -2856,6 +3215,32 @@ __metadata: languageName: node linkType: hard +"@graphql-tools/load@npm:^7.0.0": + version: 7.8.13 + resolution: "@graphql-tools/load@npm:7.8.13" + dependencies: + "@graphql-tools/schema": 9.0.17 + "@graphql-tools/utils": 9.2.1 + p-limit: 3.1.0 + tslib: ^2.4.0 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: f8dafe3b1575a33234b798751a6ec4ee9d78bfb32055395da45f7081737d30f863fe5bb2cc8c2aadd5b46d3a443d1dec75d7f2cc58399c071ac35c8470cb7ff6 + languageName: node + linkType: hard + +"@graphql-tools/merge@npm:8.4.0": + version: 8.4.0 + resolution: "@graphql-tools/merge@npm:8.4.0" + dependencies: + "@graphql-tools/utils": 9.2.1 + tslib: ^2.4.0 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 32265749833615ac2cb3d958318f5c46b7bd5ec858acfbad7136d379594ec3c98ba67ba5f04f4061187e5dfd52bb277155cd98fdeb2b4c5535c16bdb4f117ae0 + languageName: node + linkType: hard + "@graphql-tools/merge@npm:^6, @graphql-tools/merge@npm:^6.0.0, @graphql-tools/merge@npm:^6.2.5": version: 6.2.6 resolution: "@graphql-tools/merge@npm:6.2.6" @@ -2926,6 +3311,20 @@ __metadata: languageName: node linkType: hard +"@graphql-tools/schema@npm:9.0.17, @graphql-tools/schema@npm:^9.0.16": + version: 9.0.17 + resolution: "@graphql-tools/schema@npm:9.0.17" + dependencies: + "@graphql-tools/merge": 8.4.0 + "@graphql-tools/utils": 9.2.1 + tslib: ^2.4.0 + value-or-promise: 1.0.12 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 1c6513dd88b47d07702d01a48941ee164c4090c69b2475b1dde48a3d8866ed48fd39a33d15510682f6d8c18d19ceb72b77104eb4edbb194f96a129cc03909e89 + languageName: node + linkType: hard + "@graphql-tools/schema@npm:^7.0.0, @graphql-tools/schema@npm:^7.1.2": version: 7.1.2 resolution: "@graphql-tools/schema@npm:7.1.2" @@ -2965,6 +3364,41 @@ __metadata: languageName: node linkType: hard +"@graphql-tools/url-loader@npm:^7.0.0": + version: 7.17.14 + resolution: "@graphql-tools/url-loader@npm:7.17.14" + dependencies: + "@ardatan/sync-fetch": ^0.0.1 + "@graphql-tools/delegate": ^9.0.27 + "@graphql-tools/executor-graphql-ws": ^0.0.12 + "@graphql-tools/executor-http": ^0.1.7 + "@graphql-tools/executor-legacy-ws": ^0.0.9 + "@graphql-tools/utils": ^9.2.1 + "@graphql-tools/wrap": ^9.3.8 + "@types/ws": ^8.0.0 + "@whatwg-node/fetch": ^0.8.0 + isomorphic-ws: ^5.0.0 + tslib: ^2.4.0 + value-or-promise: ^1.0.11 + ws: ^8.12.0 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: a9473c0d49299d4807c5ab881407b7e96989a06cc583bddd34eb059295fd847df982bf95b82fc713150ac60fe1ccdd1db78bc17e3903db44684b5cce0f7cb82a + languageName: node + linkType: hard + +"@graphql-tools/utils@npm:9.2.1, @graphql-tools/utils@npm:^9.2.1": + version: 9.2.1 + resolution: "@graphql-tools/utils@npm:9.2.1" + dependencies: + "@graphql-typed-document-node/core": ^3.1.1 + tslib: ^2.4.0 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 94ed12df5f49e5c338322ffd931236a687a3d5c443bf499f9baab5d4fcd9792234111142be8aa506a01ca2e82732996c4e1d8f6159ff9cc7fdc5c97f63e55226 + languageName: node + linkType: hard + "@graphql-tools/utils@npm:^6, @graphql-tools/utils@npm:^6.0.0": version: 6.2.4 resolution: "@graphql-tools/utils@npm:6.2.4" @@ -3006,6 +3440,30 @@ __metadata: languageName: node linkType: hard +"@graphql-tools/wrap@npm:^9.3.8": + version: 9.3.8 + resolution: "@graphql-tools/wrap@npm:9.3.8" + dependencies: + "@graphql-tools/delegate": 9.0.28 + "@graphql-tools/schema": 9.0.17 + "@graphql-tools/utils": 9.2.1 + tslib: ^2.4.0 + value-or-promise: 1.0.12 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 1f280b939f1c8c33be8fbd92c0584e9125e30c59ce6f75f20657235d24e5a2c01eb3214eda9ae74d431d9da072cdfa6cedeafdc5b352dd33de439ba42402efcb + languageName: node + linkType: hard + +"@graphql-typed-document-node/core@npm:3.1.2": + version: 3.1.2 + resolution: "@graphql-typed-document-node/core@npm:3.1.2" + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: a61afa025acdabd7833e4f654a5802fc1a526171f81e0c435c8e651050a5a0682499a2c7a51304ceb61fde36cd69fc7975ce5e1b16b9ba7ea474c649f33eea8b + languageName: node + linkType: hard + "@graphql-typed-document-node/core@npm:^3.0.0": version: 3.1.0 resolution: "@graphql-typed-document-node/core@npm:3.1.0" @@ -3015,6 +3473,15 @@ __metadata: languageName: node linkType: hard +"@graphql-typed-document-node/core@npm:^3.1.1": + version: 3.2.0 + resolution: "@graphql-typed-document-node/core@npm:3.2.0" + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: fa44443accd28c8cf4cb96aaaf39d144a22e8b091b13366843f4e97d19c7bfeaf609ce3c7603a4aeffe385081eaf8ea245d078633a7324c11c5ec4b2011bb76d + languageName: node + linkType: hard + "@hapi/hoek@npm:^9.0.0": version: 9.1.1 resolution: "@hapi/hoek@npm:9.1.1" @@ -3295,6 +3762,48 @@ __metadata: languageName: node linkType: hard +"@jridgewell/gen-mapping@npm:^0.3.2": + version: 0.3.2 + resolution: "@jridgewell/gen-mapping@npm:0.3.2" + dependencies: + "@jridgewell/set-array": ^1.0.1 + "@jridgewell/sourcemap-codec": ^1.4.10 + "@jridgewell/trace-mapping": ^0.3.9 + checksum: 1832707a1c476afebe4d0fbbd4b9434fdb51a4c3e009ab1e9938648e21b7a97049fa6009393bdf05cab7504108413441df26d8a3c12193996e65493a4efb6882 + languageName: node + linkType: hard + +"@jridgewell/resolve-uri@npm:3.1.0": + version: 3.1.0 + resolution: "@jridgewell/resolve-uri@npm:3.1.0" + checksum: b5ceaaf9a110fcb2780d1d8f8d4a0bfd216702f31c988d8042e5f8fbe353c55d9b0f55a1733afdc64806f8e79c485d2464680ac48a0d9fcadb9548ee6b81d267 + languageName: node + linkType: hard + +"@jridgewell/set-array@npm:^1.0.1": + version: 1.1.2 + resolution: "@jridgewell/set-array@npm:1.1.2" + checksum: 69a84d5980385f396ff60a175f7177af0b8da4ddb81824cb7016a9ef914eee9806c72b6b65942003c63f7983d4f39a5c6c27185bbca88eb4690b62075602e28e + languageName: node + linkType: hard + +"@jridgewell/sourcemap-codec@npm:1.4.14, @jridgewell/sourcemap-codec@npm:^1.4.10": + version: 1.4.14 + resolution: "@jridgewell/sourcemap-codec@npm:1.4.14" + checksum: 61100637b6d173d3ba786a5dff019e1a74b1f394f323c1fee337ff390239f053b87266c7a948777f4b1ee68c01a8ad0ab61e5ff4abb5a012a0b091bec391ab97 + languageName: node + linkType: hard + +"@jridgewell/trace-mapping@npm:^0.3.17, @jridgewell/trace-mapping@npm:^0.3.9": + version: 0.3.17 + resolution: "@jridgewell/trace-mapping@npm:0.3.17" + dependencies: + "@jridgewell/resolve-uri": 3.1.0 + "@jridgewell/sourcemap-codec": 1.4.14 + checksum: 9d703b859cff5cd83b7308fd457a431387db5db96bd781a63bf48e183418dd9d3d44e76b9e4ae13237f6abeeb25d739ec9215c1d5bfdd08f66f750a50074a339 + languageName: node + linkType: hard + "@nodelib/fs.scandir@npm:2.1.4": version: 2.1.4 resolution: "@nodelib/fs.scandir@npm:2.1.4" @@ -3332,6 +3841,46 @@ __metadata: languageName: node linkType: hard +"@peculiar/asn1-schema@npm:^2.1.6, @peculiar/asn1-schema@npm:^2.3.0": + version: 2.3.6 + resolution: "@peculiar/asn1-schema@npm:2.3.6" + dependencies: + asn1js: ^3.0.5 + pvtsutils: ^1.3.2 + tslib: ^2.4.0 + checksum: fc09387c6e3dea07fca21b54ea8c71ce3ec0f8c92377237e51aef729f0c2df92781aa7a18a546a6fe809519faeaa222df576ec21a35c6095037a78677204a55b + languageName: node + linkType: hard + +"@peculiar/json-schema@npm:^1.1.12": + version: 1.1.12 + resolution: "@peculiar/json-schema@npm:1.1.12" + dependencies: + tslib: ^2.0.0 + checksum: b26ececdc23c5ef25837f8be8d1eb5e1c8bb6e9ae7227ac59ffea57fff56bd05137734e7685e9100595d3d88d906dff638ef8d1df54264c388d3eac1b05aa060 + languageName: node + linkType: hard + +"@peculiar/webcrypto@npm:^1.4.0": + version: 1.4.1 + resolution: "@peculiar/webcrypto@npm:1.4.1" + dependencies: + "@peculiar/asn1-schema": ^2.3.0 + "@peculiar/json-schema": ^1.1.12 + pvtsutils: ^1.3.2 + tslib: ^2.4.1 + webcrypto-core: ^1.7.4 + checksum: cfcd49f6bd199016de83445f1786b17c49d02aee74b400e7e03ba3bc3707457bdebd23bbaba0e2ff3becdcd769d71b79ec64ae35e0acb80b4ab3ed6326ab111c + languageName: node + linkType: hard + +"@repeaterjs/repeater@npm:3.0.4, @repeaterjs/repeater@npm:^3.0.4": + version: 3.0.4 + resolution: "@repeaterjs/repeater@npm:3.0.4" + checksum: cca0db3e802bc26fcce0b4a574074d9956da53bf43094de03c0e4732d05e13441279a92f0b96e2a7a39da50933684947a138c1213406eaafe39cfd4683d6c0df + languageName: node + linkType: hard + "@samverschueren/stream-to-observable@npm:^0.3.0": version: 0.3.1 resolution: "@samverschueren/stream-to-observable@npm:0.3.1" @@ -3993,6 +4542,15 @@ __metadata: languageName: node linkType: hard +"@types/ws@npm:^8.0.0": + version: 8.5.4 + resolution: "@types/ws@npm:8.5.4" + dependencies: + "@types/node": "*" + checksum: fefbad20d211929bb996285c4e6f699b12192548afedbe4930ab4384f8a94577c9cd421acaad163cacd36b88649509970a05a0b8f20615b30c501ed5269038d1 + languageName: node + linkType: hard + "@types/yaml@npm:1.9.7": version: 1.9.7 resolution: "@types/yaml@npm:1.9.7" @@ -4466,6 +5024,39 @@ __metadata: languageName: node linkType: hard +"@whatwg-node/events@npm:^0.0.2": + version: 0.0.2 + resolution: "@whatwg-node/events@npm:0.0.2" + checksum: 6d491801d36967d5d62443cca6ef39d41cf882d575839d2e9d1a5f394722cd24ef84fe9e897bb72c01bd198871fda9ff0e8b1ac5aa6f3f814f87d92b7f28fdcc + languageName: node + linkType: hard + +"@whatwg-node/fetch@npm:^0.8.0, @whatwg-node/fetch@npm:^0.8.1": + version: 0.8.3 + resolution: "@whatwg-node/fetch@npm:0.8.3" + dependencies: + "@peculiar/webcrypto": ^1.4.0 + "@whatwg-node/node-fetch": ^0.3.3 + busboy: ^1.6.0 + urlpattern-polyfill: ^6.0.2 + web-streams-polyfill: ^3.2.1 + checksum: 1b12abaf8113634201d4fceba378c0e859d86a71876cf5ba17af73d7c6c18129c98e27e10959a36893472b4b2648c82d651b2dd5681ed4beacb193e18aa91685 + languageName: node + linkType: hard + +"@whatwg-node/node-fetch@npm:^0.3.3": + version: 0.3.4 + resolution: "@whatwg-node/node-fetch@npm:0.3.4" + dependencies: + "@whatwg-node/events": ^0.0.2 + busboy: ^1.6.0 + fast-querystring: ^1.1.1 + fast-url-parser: ^1.1.3 + tslib: ^2.3.1 + checksum: 11bcb83eddc9276ce3c97ae63c015dc1aacaa81210bd0986a53ca5fd290fe470d3f937432e3d84cc3c0ad6e8431ef5e0a2c6115e99b1863076c13d5584c8f6fb + languageName: node + linkType: hard + "@wry/context@npm:^0.5.2": version: 0.5.3 resolution: "@wry/context@npm:0.5.3" @@ -4929,6 +5520,17 @@ __metadata: languageName: node linkType: hard +"asn1js@npm:^3.0.1, asn1js@npm:^3.0.5": + version: 3.0.5 + resolution: "asn1js@npm:3.0.5" + dependencies: + pvtsutils: ^1.3.2 + pvutils: ^1.1.3 + tslib: ^2.4.0 + checksum: 3b6af1bbadd5762ef8ead5daf2f6bda1bc9e23bc825c4dcc996aa1f9521ad7390a64028565d95d98090d69c8431f004c71cccb866004759169d7c203cf9075eb + languageName: node + linkType: hard + "assert@npm:^1.1.1": version: 1.5.0 resolution: "assert@npm:1.5.0" @@ -5381,7 +5983,7 @@ __metadata: languageName: node linkType: hard -"braces@npm:^3.0.1, braces@npm:~3.0.2": +"braces@npm:^3.0.1, braces@npm:^3.0.2, braces@npm:~3.0.2": version: 3.0.2 resolution: "braces@npm:3.0.2" dependencies: @@ -5590,6 +6192,15 @@ __metadata: languageName: node linkType: hard +"busboy@npm:^1.6.0": + version: 1.6.0 + resolution: "busboy@npm:1.6.0" + dependencies: + streamsearch: ^1.1.0 + checksum: 32801e2c0164e12106bf236291a00795c3c4e4b709ae02132883fe8478ba2ae23743b11c5735a0aae8afe65ac4b6ca4568b91f0d9fed1fdbc32ede824a73746e + languageName: node + linkType: hard + "bytes@npm:3.0.0": version: 3.0.0 resolution: "bytes@npm:3.0.0" @@ -6618,6 +7229,13 @@ __metadata: languageName: node linkType: hard +"dataloader@npm:2.2.2, dataloader@npm:^2.2.2": + version: 2.2.2 + resolution: "dataloader@npm:2.2.2" + checksum: 4dabd247089c29f194e94d5434d504f99156c5c214a03463c20f3f17f40398d7e179edee69a27c16e315519ac8739042a810090087ae26449a0e685156a02c65 + languageName: node + linkType: hard + "date-fns@npm:^1.27.2": version: 1.30.1 resolution: "date-fns@npm:1.30.1" @@ -6994,6 +7612,13 @@ __metadata: languageName: node linkType: hard +"dset@npm:^3.1.2": + version: 3.1.2 + resolution: "dset@npm:3.1.2" + checksum: 4f8066f517aa0a70af688c66e9a0a5590f0aada76f6edc7ba9ddb309e27d3a6d65c0a2e31ab2a84005d4c791e5327773cdde59b8ab169050330a0dc283663e87 + languageName: node + linkType: hard + "duplexer3@npm:^0.1.4": version: 0.1.4 resolution: "duplexer3@npm:0.1.4" @@ -7740,6 +8365,20 @@ __metadata: languageName: node linkType: hard +"extract-files@npm:^11.0.0": + version: 11.0.0 + resolution: "extract-files@npm:11.0.0" + checksum: 39ebd92772e9a1e30d1e3112fb7db85d353c8243640635668b615ac1d605ceb79fbb13d17829dd308993ef37bb189ad99817f79ab164ae95c9bb3df9f440bd16 + languageName: node + linkType: hard + +"fast-decode-uri-component@npm:^1.0.1": + version: 1.0.1 + resolution: "fast-decode-uri-component@npm:1.0.1" + checksum: 427a48fe0907e76f0e9a2c228e253b4d8a8ab21d130ee9e4bb8339c5ba4086235cf9576831f7b20955a752eae4b525a177ff9d5825dd8d416e7726939194fbee + languageName: node + linkType: hard + "fast-deep-equal@npm:^3.1.1": version: 3.1.3 resolution: "fast-deep-equal@npm:3.1.3" @@ -7782,6 +8421,24 @@ __metadata: languageName: node linkType: hard +"fast-querystring@npm:^1.1.1": + version: 1.1.1 + resolution: "fast-querystring@npm:1.1.1" + dependencies: + fast-decode-uri-component: ^1.0.1 + checksum: 86d2b75b9b299a552353532fb1a542f09730ee2a61e657d68710971d9a2afc9a3c5c7b7e106b6534f4cc506d2ff1c08ab0fda4ae614b4e7720798c9ac2a88e02 + languageName: node + linkType: hard + +"fast-url-parser@npm:^1.1.3": + version: 1.1.3 + resolution: "fast-url-parser@npm:1.1.3" + dependencies: + punycode: ^1.3.2 + checksum: 5043d0c4a8d775ff58504d56c096563c11b113e4cb8a2668c6f824a1cd4fb3812e2fdf76537eb24a7ce4ae7def6bd9747da630c617cf2a4b6ce0c42514e4f21c + languageName: node + linkType: hard + "fastest-levenshtein@npm:^1.0.12": version: 1.0.12 resolution: "fastest-levenshtein@npm:1.0.12" @@ -8483,8 +9140,15 @@ fsevents@~2.3.1: "@graphql-codegen/typescript-operations": 1.18.4 "@graphql-codegen/typescript-react-apollo": 2.3.1 "@graphql-codegen/typescript-resolvers": 1.19.1 - "@graphql-tools/graphql-file-loader": 6.2.7 - "@graphql-tools/import": 6.4.0 + "@graphql-tools/apollo-engine-loader": ^7.0.0 + "@graphql-tools/code-file-loader": ^7.0.0 + "@graphql-tools/git-loader": ^7.0.0 + "@graphql-tools/github-loader": ^7.0.0 + "@graphql-tools/graphql-file-loader": ^7.0.0 + "@graphql-tools/import": ^6.7.0 + "@graphql-tools/json-file-loader": ^7.0.0 + "@graphql-tools/load": ^7.0.0 + "@graphql-tools/url-loader": ^7.0.0 "@jest/transform": 27.2.0 "@jest/types": 27.1.0 "@types/babel-plugin-macros": 2.8.5 @@ -8639,6 +9303,15 @@ fsevents@~2.3.1: languageName: node linkType: hard +"graphql-ws@npm:5.12.0": + version: 5.12.0 + resolution: "graphql-ws@npm:5.12.0" + peerDependencies: + graphql: ">=0.11 <=16" + checksum: 5c683e2d5bdadfcfec0639eda69b8a66ef275e68e64f662bd75da6779a87b34395cbce8e37cb66830a9febca1871f7dc2575e6814f6f6e899904fe72e245f216 + languageName: node + linkType: hard + "graphql@npm:14.7.0": version: 14.7.0 resolution: "graphql@npm:14.7.0" @@ -9502,6 +10175,15 @@ fsevents@~2.3.1: languageName: node linkType: hard +"is-glob@npm:4.0.3": + version: 4.0.3 + resolution: "is-glob@npm:4.0.3" + dependencies: + is-extglob: ^2.1.1 + checksum: d381c1319fcb69d341cc6e6c7cd588e17cd94722d9a32dbd60660b993c4fb7d0f19438674e68dfec686d09b7c73139c9166b47597f846af387450224a8101ab4 + languageName: node + linkType: hard + "is-glob@npm:^3.1.0": version: 3.1.0 resolution: "is-glob@npm:3.1.0" @@ -9794,6 +10476,15 @@ fsevents@~2.3.1: languageName: node linkType: hard +"isomorphic-ws@npm:5.0.0, isomorphic-ws@npm:^5.0.0": + version: 5.0.0 + resolution: "isomorphic-ws@npm:5.0.0" + peerDependencies: + ws: "*" + checksum: e20eb2aee09ba96247465fda40c6d22c1153394c0144fa34fe6609f341af4c8c564f60ea3ba762335a7a9c306809349f9b863c8beedf2beea09b299834ad5398 + languageName: node + linkType: hard + "istanbul-lib-coverage@npm:^3.0.0": version: 3.0.0 resolution: "istanbul-lib-coverage@npm:3.0.0" @@ -11323,6 +12014,18 @@ fsevents@~2.3.1: languageName: node linkType: hard +"meros@npm:^1.2.1": + version: 1.2.1 + resolution: "meros@npm:1.2.1" + peerDependencies: + "@types/node": ">=13" + peerDependenciesMeta: + "@types/node": + optional: true + checksum: 2201c3f7c58ad2a5b5f7d6b1c644d79bde513e25cb64b51a8c41381ec74bc02cd3423425e34f60c96bf3991f1ec51d65dc8b8e3354cbb060cc9f8226b4666a5a + languageName: node + linkType: hard + "methods@npm:~1.1.2": version: 1.1.2 resolution: "methods@npm:1.1.2" @@ -12163,6 +12866,15 @@ fsevents@~2.3.1: languageName: node linkType: hard +"p-limit@npm:3.1.0": + version: 3.1.0 + resolution: "p-limit@npm:3.1.0" + dependencies: + yocto-queue: ^0.1.0 + checksum: 7c3690c4dbf62ef625671e20b7bdf1cbc9534e83352a2780f165b0d3ceba21907e77ad63401708145ca4e25bfc51636588d89a8c0aeb715e6c37d1c066430360 + languageName: node + linkType: hard + "p-limit@npm:^2.0.0, p-limit@npm:^2.2.0": version: 2.3.0 resolution: "p-limit@npm:2.3.0" @@ -12888,7 +13600,7 @@ fsevents@~2.3.1: languageName: node linkType: hard -"punycode@npm:^1.2.4": +"punycode@npm:^1.2.4, punycode@npm:^1.3.2": version: 1.4.1 resolution: "punycode@npm:1.4.1" checksum: fa6e698cb53db45e4628559e557ddaf554103d2a96a1d62892c8f4032cd3bc8871796cae9eabc1bc700e2b6677611521ce5bb1d9a27700086039965d0cf34518 @@ -12902,6 +13614,22 @@ fsevents@~2.3.1: languageName: node linkType: hard +"pvtsutils@npm:^1.3.2": + version: 1.3.2 + resolution: "pvtsutils@npm:1.3.2" + dependencies: + tslib: ^2.4.0 + checksum: 9b8155611363e2f40276879f2454e60204b45be0cd0482f9373f369308a2e9c76d5d74cdf661a3f5aae8022d75ea159eb0ba38ee78fc782ee3051e4722db98d0 + languageName: node + linkType: hard + +"pvutils@npm:^1.1.3": + version: 1.1.3 + resolution: "pvutils@npm:1.1.3" + checksum: 2ee26a9e5176c348977d6ec00d8ee80bff62f51743b1c5fe8abeeb4c5d29d9959cdfe0ce146707a9e6801bce88190fed3002d720b072dc87d031c692820b44c9 + languageName: node + linkType: hard + "qs@npm:6.7.0": version: 6.7.0 resolution: "qs@npm:6.7.0" @@ -14261,6 +14989,13 @@ fsevents@~2.3.1: languageName: node linkType: hard +"streamsearch@npm:^1.1.0": + version: 1.1.0 + resolution: "streamsearch@npm:1.1.0" + checksum: 1cce16cea8405d7a233d32ca5e00a00169cc0e19fbc02aa839959985f267335d435c07f96e5e0edd0eadc6d39c98d5435fb5bbbdefc62c41834eadc5622ad942 + languageName: node + linkType: hard + "string-argv@npm:0.3.1": version: 0.3.1 resolution: "string-argv@npm:0.3.1" @@ -14961,6 +15696,13 @@ fsevents@~2.3.1: languageName: node linkType: hard +"tslib@npm:^2.3.1, tslib@npm:^2.4.0, tslib@npm:^2.4.1, tslib@npm:^2.5.0": + version: 2.5.0 + resolution: "tslib@npm:2.5.0" + checksum: ae3ed5f9ce29932d049908ebfdf21b3a003a85653a9a140d614da6b767a93ef94f460e52c3d787f0e4f383546981713f165037dc2274df212ea9f8a4541004e1 + languageName: node + linkType: hard + "tslib@npm:~2.0.1": version: 2.0.3 resolution: "tslib@npm:2.0.3" @@ -15275,7 +16017,7 @@ typescript@4.2.3: languageName: node linkType: hard -"unixify@npm:1.0.0": +"unixify@npm:1.0.0, unixify@npm:^1.0.0": version: 1.0.0 resolution: "unixify@npm:1.0.0" dependencies: @@ -15378,6 +16120,15 @@ typescript@4.2.3: languageName: node linkType: hard +"urlpattern-polyfill@npm:^6.0.2": + version: 6.0.2 + resolution: "urlpattern-polyfill@npm:6.0.2" + dependencies: + braces: ^3.0.2 + checksum: 564fb223761b67ea76d015f11dfec145db98c71cc35641015d1c9ec164da494b1fab614e652a844e14a72cda31236b9c3a59b22fdcca71166c315ab059fab676 + languageName: node + linkType: hard + "use@npm:^3.1.0": version: 3.1.1 resolution: "use@npm:3.1.1" @@ -15451,6 +16202,13 @@ typescript@4.2.3: languageName: node linkType: hard +"value-or-promise@npm:1.0.12, value-or-promise@npm:^1.0.11, value-or-promise@npm:^1.0.12": + version: 1.0.12 + resolution: "value-or-promise@npm:1.0.12" + checksum: f53a66c75b7447c90bbaf946a757ca09c094629cb80ba742f59c980ec3a69be0a385a0e75505dedb4e757862f1a994ca4beaf083a831f24d3ffb3d4bb18cd1e1 + languageName: node + linkType: hard + "vary@npm:~1.1.2": version: 1.1.2 resolution: "vary@npm:1.1.2" @@ -15592,6 +16350,26 @@ typescript@4.2.3: languageName: node linkType: hard +"web-streams-polyfill@npm:^3.2.1": + version: 3.2.1 + resolution: "web-streams-polyfill@npm:3.2.1" + checksum: b119c78574b6d65935e35098c2afdcd752b84268e18746606af149e3c424e15621b6f1ff0b42b2676dc012fc4f0d313f964b41a4b5031e525faa03997457da02 + languageName: node + linkType: hard + +"webcrypto-core@npm:^1.7.4": + version: 1.7.6 + resolution: "webcrypto-core@npm:1.7.6" + dependencies: + "@peculiar/asn1-schema": ^2.1.6 + "@peculiar/json-schema": ^1.1.12 + asn1js: ^3.0.1 + pvtsutils: ^1.3.2 + tslib: ^2.4.0 + checksum: 0503c92cd1fc8861383872774963104bf3d7ddf0a35cadd841862f0488e4613bdf23499d06b31938a4f2cf333bfde8dacc24e349c5e943e44246f3fcb623c7d0 + languageName: node + linkType: hard + "webidl-conversions@npm:^5.0.0": version: 5.0.0 resolution: "webidl-conversions@npm:5.0.0" @@ -15979,6 +16757,21 @@ typescript@4.2.3: languageName: node linkType: hard +"ws@npm:8.12.1": + version: 8.12.1 + resolution: "ws@npm:8.12.1" + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ">=5.0.2" + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + checksum: 97301c1c4d838fc81bd413f370f75c12aabe44527b31323b761eab3043a9ecb7e32ffd668548382c9a6a5ad3a1c3a9249608e8338e6b939f2f9540f1e21970b5 + languageName: node + linkType: hard + "ws@npm:^6.2.1": version: 6.2.2 resolution: "ws@npm:6.2.2" @@ -16003,6 +16796,21 @@ typescript@4.2.3: languageName: node linkType: hard +"ws@npm:^8.12.0": + version: 8.13.0 + resolution: "ws@npm:8.13.0" + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ">=5.0.2" + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + checksum: 53e991bbf928faf5dc6efac9b8eb9ab6497c69feeb94f963d648b7a3530a720b19ec2e0ec037344257e05a4f35bd9ad04d9de6f289615ffb133282031b18c61c + languageName: node + linkType: hard + "xml-name-validator@npm:^3.0.0": version: 3.0.0 resolution: "xml-name-validator@npm:3.0.0" @@ -16152,6 +16960,13 @@ typescript@4.2.3: languageName: node linkType: hard +"yocto-queue@npm:^0.1.0": + version: 0.1.0 + resolution: "yocto-queue@npm:0.1.0" + checksum: f77b3d8d00310def622123df93d4ee654fc6a0096182af8bd60679ddcdfb3474c56c6c7190817c84a2785648cdee9d721c0154eb45698c62176c322fb46fc700 + languageName: node + linkType: hard + "zen-observable-ts@npm:^1.1.0": version: 1.2.0 resolution: "zen-observable-ts@npm:1.2.0"