ponder 0.13.5 → 0.13.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/esm/graphql/graphiql.html.js +2 -2
- package/dist/esm/graphql/graphiql.html.js.map +1 -1
- package/dist/esm/graphql/middleware.js +1 -1
- package/dist/esm/graphql/middleware.js.map +1 -1
- package/dist/types/graphql/graphiql.html.d.ts +1 -1
- package/dist/types/graphql/graphiql.html.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/graphql/graphiql.html.ts +2 -2
- package/src/graphql/middleware.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# ponder
|
|
2
2
|
|
|
3
|
+
## 0.13.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2066](https://github.com/ponder-sh/ponder/pull/2066) [`a2ca732`](https://github.com/ponder-sh/ponder/commit/a2ca732fbf36de4cab16622dc28ccfc1206378ba) Thanks [@typedarray](https://github.com/typedarray)! - Fixed an issue where the GraphiQL interface would fail to fetch the schema. This often happened when using a reverse proxy.
|
|
8
|
+
|
|
3
9
|
## 0.13.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// https://github.com/graphql/graphiql/blob/main/examples/graphiql-cdn/index.html
|
|
2
|
-
export const graphiQLHtml =
|
|
2
|
+
export const graphiQLHtml = `<!--
|
|
3
3
|
* Copyright (c) 2021 GraphQL Contributors
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
*
|
|
@@ -43,7 +43,7 @@ export const graphiQLHtml = (path) => `<!--
|
|
|
43
43
|
<script src="https://cdn.jsdelivr.net/npm/graphiql@3.7.2/graphiql.min.js" crossorigin="anonymous"></script>
|
|
44
44
|
<script src="https://cdn.jsdelivr.net/npm/@graphiql/plugin-explorer@3.2.3/dist/index.umd.js" crossorigin="anonymous"></script>
|
|
45
45
|
<script>
|
|
46
|
-
const fetcher = GraphiQL.createFetcher({ url: "
|
|
46
|
+
const fetcher = GraphiQL.createFetcher({ url: "" });
|
|
47
47
|
const explorerPlugin = GraphiQLPluginExplorer.explorerPlugin();
|
|
48
48
|
const root = ReactDOM.createRoot(document.getElementById("graphiql"));
|
|
49
49
|
root.render(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphiql.html.js","sourceRoot":"","sources":["../../../src/graphql/graphiql.html.ts"],"names":[],"mappings":"AAAA,iFAAiF;AAEjF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC
|
|
1
|
+
{"version":3,"file":"graphiql.html.js","sourceRoot":"","sources":["../../../src/graphql/graphiql.html.ts"],"names":[],"mappings":"AAAA,iFAAiF;AAEjF,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAwDpB,CAAC"}
|
|
@@ -55,7 +55,7 @@ export const graphql = ({ schema }, { maxOperationTokens = 1000, maxOperationDep
|
|
|
55
55
|
});
|
|
56
56
|
return createMiddleware(async (c) => {
|
|
57
57
|
if (c.req.method === "GET") {
|
|
58
|
-
return c.html(graphiQLHtml
|
|
58
|
+
return c.html(graphiQLHtml);
|
|
59
59
|
}
|
|
60
60
|
const response = await yoga.handle(c.req.raw);
|
|
61
61
|
// TODO: Figure out why Yoga is returning 500 status codes for GraphQL errors.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../../src/graphql/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE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AC9C,8EAA8E;QAC9E,mBAAmB;QACnB,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAC;QACtB,mBAAmB;QACnB,QAAQ,CAAC,UAAU,GAAG,IAAI,CAAC;QAE3B,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,KAAK,UAAU,cAAc,CAAC,EAC5B,aAAa,GACoB;IACjC,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,SAAS,CAAC,CAAC;IAC7D,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,WAAW,CAAC,CAAC;IAEjE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,WAAW,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACzE,EAAE,CAAC,aAAa,CACd,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,WAAW,EAAE,gBAAgB,CAAC,EACvD,WAAW,CAAC,aAAa,CAAC,EAC1B,OAAO,CACR,CAAC;IAEF,wBAAwB;IACxB,wBAAwB;IACxB,uDAAuD;IACvD,MAAM;AACR,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const graphiQLHtml: (
|
|
1
|
+
export declare const graphiQLHtml = "<!--\n * Copyright (c) 2021 GraphQL Contributors\n * All rights reserved.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n-->\n<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <title>Ponder Playground</title>\n <style>\n body {\n height: 100%;\n margin: 0;\n width: 100%;\n overflow: hidden;\n }\n #graphiql {\n height: 100vh;\n }\n *::-webkit-scrollbar {\n height: 0.3rem;\n width: 0.5rem;\n }\n *::-webkit-scrollbar-track {\n -ms-overflow-style: none;\n overflow: -moz-scrollbars-none;\n }\n *::-webkit-scrollbar-thumb {\n -ms-overflow-style: none;\n overflow: -moz-scrollbars-none;\n }\n </style>\n <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/graphiql@3.7.2/graphiql.min.css\" />\n <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@graphiql/plugin-explorer@3.2.3/dist/style.css\" />\n </head>\n <body>\n <div id=\"graphiql\">Loading...</div>\n <script crossorigin src=\"https://cdn.jsdelivr.net/npm/react@18.3.1/umd/react.development.js\"></script>1\n <script crossorigin src=\"https://cdn.jsdelivr.net/npm/react-dom@18.3.1/umd/react-dom.development.js\"></script>\n <script src=\"https://cdn.jsdelivr.net/npm/graphiql@3.7.2/graphiql.min.js\" crossorigin=\"anonymous\"></script>\n <script src=\"https://cdn.jsdelivr.net/npm/@graphiql/plugin-explorer@3.2.3/dist/index.umd.js\" crossorigin=\"anonymous\"></script>\n <script>\n const fetcher = GraphiQL.createFetcher({ url: \"\" });\n const explorerPlugin = GraphiQLPluginExplorer.explorerPlugin();\n const root = ReactDOM.createRoot(document.getElementById(\"graphiql\"));\n root.render(\n React.createElement(GraphiQL, {\n fetcher,\n plugins: [explorerPlugin],\n defaultEditorToolsVisibility: false,\n })\n );\n </script>\n </body>\n</html>";
|
|
2
2
|
//# sourceMappingURL=graphiql.html.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphiql.html.d.ts","sourceRoot":"","sources":["../../../src/graphql/graphiql.html.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"graphiql.html.d.ts","sourceRoot":"","sources":["../../../src/graphql/graphiql.html.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,0/DAwDjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ponder",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.6",
|
|
4
4
|
"description": "An open-source framework for crypto application backends",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"rimraf": "^5.0.5",
|
|
100
100
|
"tsx": "^4.19.2",
|
|
101
101
|
"vitest": "^1.0.2",
|
|
102
|
-
"@ponder/client": "0.13.
|
|
102
|
+
"@ponder/client": "0.13.6"
|
|
103
103
|
},
|
|
104
104
|
"engines": {
|
|
105
105
|
"node": ">=18.14"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// https://github.com/graphql/graphiql/blob/main/examples/graphiql-cdn/index.html
|
|
2
2
|
|
|
3
|
-
export const graphiQLHtml =
|
|
3
|
+
export const graphiQLHtml = `<!--
|
|
4
4
|
* Copyright (c) 2021 GraphQL Contributors
|
|
5
5
|
* All rights reserved.
|
|
6
6
|
*
|
|
@@ -44,7 +44,7 @@ export const graphiQLHtml = (path: string) => `<!--
|
|
|
44
44
|
<script src="https://cdn.jsdelivr.net/npm/graphiql@3.7.2/graphiql.min.js" crossorigin="anonymous"></script>
|
|
45
45
|
<script src="https://cdn.jsdelivr.net/npm/@graphiql/plugin-explorer@3.2.3/dist/index.umd.js" crossorigin="anonymous"></script>
|
|
46
46
|
<script>
|
|
47
|
-
const fetcher = GraphiQL.createFetcher({ url: "
|
|
47
|
+
const fetcher = GraphiQL.createFetcher({ url: "" });
|
|
48
48
|
const explorerPlugin = GraphiQLPluginExplorer.explorerPlugin();
|
|
49
49
|
const root = ReactDOM.createRoot(document.getElementById("graphiql"));
|
|
50
50
|
root.render(
|