graphql-server-test 3.34.2 → 3.34.4
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/esm/server.js +2 -1
- package/package.json +8 -8
- package/server.js +2 -1
- package/types.d.ts +5 -0
package/esm/server.js
CHANGED
|
@@ -32,7 +32,8 @@ export const createTestServer = async (opts, serverOpts = {}) => {
|
|
|
32
32
|
server: {
|
|
33
33
|
...opts.server,
|
|
34
34
|
host,
|
|
35
|
-
port
|
|
35
|
+
port,
|
|
36
|
+
...(serverOpts.trustProxy !== undefined && { trustProxy: serverOpts.trustProxy })
|
|
36
37
|
}
|
|
37
38
|
};
|
|
38
39
|
// Create the server using @constructive-io/graphql-server
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphql-server-test",
|
|
3
|
-
"version": "3.34.
|
|
3
|
+
"version": "3.34.4",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive GraphQL Server Testing with SuperTest HTTP requests",
|
|
6
6
|
"main": "index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@0no-co/graphql.web": "^1.3.3",
|
|
33
33
|
"@agentic-kit/ollama": "2.16.0",
|
|
34
|
-
"@constructive-io/graphql-codegen": "^5.25.
|
|
35
|
-
"@constructive-io/graphql-query": "^4.22.
|
|
34
|
+
"@constructive-io/graphql-codegen": "^5.25.3",
|
|
35
|
+
"@constructive-io/graphql-query": "^4.22.3",
|
|
36
36
|
"@constructive-io/s3-utils": "^2.35.0",
|
|
37
37
|
"@pgpmjs/core": "^7.35.0",
|
|
38
38
|
"@simplewebauthn/server": "13.3.2",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"nested-obj": "^0.2.3"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@constructive-io/express-context": "^0.35.
|
|
51
|
-
"@constructive-io/graphql-dev-server": "^3.22.
|
|
50
|
+
"@constructive-io/express-context": "^0.35.3",
|
|
51
|
+
"@constructive-io/graphql-dev-server": "^3.22.3",
|
|
52
52
|
"@constructive-io/graphql-env": "^3.37.2",
|
|
53
|
-
"@constructive-io/graphql-server": "^5.33.
|
|
53
|
+
"@constructive-io/graphql-server": "^5.33.4",
|
|
54
54
|
"@constructive-io/graphql-types": "^3.36.1",
|
|
55
55
|
"@constructive-io/upload-client": "0.29.0",
|
|
56
56
|
"@pgpmjs/types": "^2.58.0",
|
|
57
57
|
"express": "^5.2.1",
|
|
58
|
-
"graphile-schema": "^2.21.
|
|
58
|
+
"graphile-schema": "^2.21.3",
|
|
59
59
|
"graphql": "16.13.0",
|
|
60
60
|
"pg": "^8.21.0",
|
|
61
61
|
"pg-cache": "^3.30.0",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"e2e",
|
|
74
74
|
"server"
|
|
75
75
|
],
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "7ce27b6ff591192fe5eb87e26bb3fb1e538d6505"
|
|
77
77
|
}
|
package/server.js
CHANGED
|
@@ -36,7 +36,8 @@ const createTestServer = async (opts, serverOpts = {}) => {
|
|
|
36
36
|
server: {
|
|
37
37
|
...opts.server,
|
|
38
38
|
host,
|
|
39
|
-
port
|
|
39
|
+
port,
|
|
40
|
+
...(serverOpts.trustProxy !== undefined && { trustProxy: serverOpts.trustProxy })
|
|
40
41
|
}
|
|
41
42
|
};
|
|
42
43
|
// Create the server using @constructive-io/graphql-server
|
package/types.d.ts
CHANGED
|
@@ -22,6 +22,11 @@ export interface ServerOptions {
|
|
|
22
22
|
* schemas directly. For local/static suites only.
|
|
23
23
|
*/
|
|
24
24
|
useRouting?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* `SERVER_TRUST_PROXY`: one proxy of our own sits in front, so the entry it
|
|
27
|
+
* appended to `X-Forwarded-For` is the client. Production-server suites only.
|
|
28
|
+
*/
|
|
29
|
+
trustProxy?: boolean;
|
|
25
30
|
/**
|
|
26
31
|
* API configuration options for the GraphQL server.
|
|
27
32
|
* These options control how the server handles requests and which features are enabled.
|