Skip to content

Commit f57311a

Browse files
committed
fix: disable fragment warnings
database-playground/frontend-next@26abde8
1 parent 98dfa6b commit f57311a

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

patches/graphql-tag.patch

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
diff --git a/CHANGELOG.md b/CHANGELOG.md
2+
deleted file mode 100644
3+
index 38eb0a30adc11115065227c1f65d361996d50c18..0000000000000000000000000000000000000000
4+
diff --git a/lib/index.js b/lib/index.js
5+
index 54a1f96bc76d6f128958a053d791158974485ff8..6f130cc65e48ff2638d2d987a0ee67940a72bc2b 100644
6+
--- a/lib/index.js
7+
+++ b/lib/index.js
8+
@@ -2,7 +2,7 @@ import { __assign } from "tslib";
9+
import { parse } from 'graphql';
10+
var docCache = new Map();
11+
var fragmentSourceMap = new Map();
12+
-var printFragmentWarnings = true;
13+
+var printFragmentWarnings = false;
14+
var experimentalFragmentVariables = false;
15+
function normalize(string) {
16+
return string.replace(/[\s,]+/g, ' ').trim();
17+
diff --git a/src/index.ts b/src/index.ts
18+
index 90ba15be21b5390e0a9acf70986af15060ff3cdf..38c4535325cc1bdc24d354ce243a539215e15084 100644
19+
--- a/src/index.ts
20+
+++ b/src/index.ts
21+
@@ -12,7 +12,7 @@ const docCache = new Map<string, DocumentNode>();
22+
// A map fragmentName -> [normalized source]
23+
const fragmentSourceMap = new Map<string, Set<string>>();
24+
25+
-let printFragmentWarnings = true;
26+
+let printFragmentWarnings = false;
27+
let experimentalFragmentVariables = false;
28+
29+
// Strip insignificant whitespace

pnpm-lock.yaml

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ onlyBuiltDependencies:
66
- dprint
77
- sharp
88
- unrs-resolver
9+
10+
patchedDependencies:
11+
graphql-tag: patches/graphql-tag.patch

0 commit comments

Comments
 (0)