Skip to content

Commit 35dace0

Browse files
committed
Fix
1 parent dcf7024 commit 35dace0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

juniper/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ graphiql:
4141
$(eval graphiql-react-ver := $(strip \
4242
$(shell curl -fsL https://raw.githubusercontent.com/graphql/graphiql/refs/tags/graphiql%40$(GRAPHIQL_VER)/packages/graphiql/package.json \
4343
| grep -m1 '"@graphiql/react": "' | cut -d '"' -f4 | cut -d '^' -f2)))
44+
$(eval graphiql-toolkit-ver := $(strip \
45+
$(shell curl -fsL https://raw.githubusercontent.com/graphql/graphiql/refs/tags/graphiql%40$(GRAPHIQL_VER)/packages/graphiql/package.json \
46+
| grep -m1 '"@graphiql/toolkit": "' | cut -d '"' -f4 | cut -d '^' -f2)))
4447
curl -fsL -o src/http/graphiql.html \
4548
https://raw.githubusercontent.com/graphql/graphiql/graphiql%40$(GRAPHIQL_VER)/examples/graphiql-cdn/index.html
4649
$(sed-i) 's|esm.sh/[email protected]|esm.sh/graphiql@$(GRAPHIQL_VER)|g' \
@@ -51,6 +54,8 @@ graphiql:
5154
src/http/graphiql.html
5255
$(sed-i) 's|esm.sh/@graphiql/[email protected]|esm.sh/@graphiql/react@$(graphiql-react-ver)|g' \
5356
src/http/graphiql.html
57+
$(sed-i) 's|esm.sh/@graphiql/toolkit|esm.sh/@graphiql/toolkit@$(graphiql-toolkit-ver)|g' \
58+
src/http/graphiql.html
5459
$(sed-i) "s|'https://countries.trevorblades.com'|JUNIPER_URL|g" \
5560
src/http/graphiql.html
5661
$(sed-i) 's|url: JUNIPER_URL,|url: JUNIPER_URL,\n subscriptionUrl: normalizeSubscriptionEndpoint(JUNIPER_URL, JUNIPER_SUBSCRIPTIONS_URL)|' \

juniper/src/http/graphiql.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@graphiql/plugin-explorer": "https://esm.sh/@graphiql/[email protected]?standalone&external=react,@graphiql/react,graphql",
5151
"@graphiql/react": "https://esm.sh/@graphiql/[email protected]?standalone&external=react,react-dom,graphql",
5252

53-
"@graphiql/toolkit": "https://esm.sh/@graphiql/toolkit?standalone&external=graphql",
53+
"@graphiql/toolkit": "https://esm.sh/@graphiql/toolkit@0.11.3?standalone&external=graphql",
5454
"graphql": "https://esm.sh/[email protected]"
5555
}
5656
}

0 commit comments

Comments
 (0)