diff options
| author | netop://ウィビ <paul@webb.page> | 2026-10-21 16:47:38 -0700 |
|---|---|---|
| committer | netop://ウィビ <paul@webb.page> | 2026-10-21 16:47:38 -0700 |
| commit | 389ad1349c4ff245a3466a2e361c1cd1dd11d2ba (patch) | |
| tree | 0ad0638f60ab0a77c7a095e96b472312ab39f83b /source/gql.ts | |
| parent | bbcbb02ef64d094f0f13de22ae135eeba1ff4c5d (diff) | |
| download | gq-389ad1349c4ff245a3466a2e361c1cd1dd11d2ba.tar.gz gq-389ad1349c4ff245a3466a2e361c1cd1dd11d2ba.zip | |
- inlined vendored dependencies from npm
- makes this module work in Ende
Diffstat (limited to '')
| -rw-r--r-- | source/gql.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/gql.ts b/source/gql.ts index f88d8ff..823f73a 100644 --- a/source/gql.ts +++ b/source/gql.ts @@ -8,7 +8,7 @@ import { type DefinitionNode, type DocumentNode, type Location -} from "graphql"; +} from "#deps"; /*** UTILITY ------------------------------------------ ***/ @@ -143,6 +143,7 @@ function parseDocument(source: string) { const cacheKey = normalize(source); if (!docCache.has(cacheKey)) { + // @ts-ignore: TS2353 const parsed = parse(source, { allowLegacyFragmentVariables }); if (!parsed || parsed.kind !== "Document") |