@stepzen/graphiql-proxy 0.45.0-experimental.ee3795c → 0.45.0
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/LICENSE +1 -1
- package/package.json +5 -4
- package/src/server/api/debugging.js +1 -1
- package/src/server/api/details.js +1 -1
- package/src/server/api/ping.js +1 -1
- package/src/server/api/predicates.js +1 -1
- package/src/server/api/proxy.js +1 -1
- package/src/server/api/samples.js +1 -1
- package/src/server/index.js +4 -1
- package/src/server/utils/open-browser.js +1 -1
- package/src/server/utils/open-chrome.applescript +1 -1
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stepzen/graphiql-proxy",
|
|
3
|
-
"version": "0.45.0
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"author": "Darren Waddell <darren@stepzen.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://stepzen.com",
|
|
@@ -23,12 +23,13 @@
|
|
|
23
23
|
"posttest": "prettier . --check"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@stepzen/fetch": "0.45.0
|
|
26
|
+
"@stepzen/fetch": "0.45.0",
|
|
27
27
|
"chalk": "^4.1.2",
|
|
28
28
|
"cross-spawn": "^7.0.6",
|
|
29
29
|
"debug": "^4.3.4",
|
|
30
|
-
"express": "^4.21.
|
|
30
|
+
"express": "^4.21.2",
|
|
31
31
|
"express-promise-router": "^4.1.1",
|
|
32
|
+
"helmet": "^8.0.0",
|
|
32
33
|
"open": "^8.4.0",
|
|
33
34
|
"prettier": "^2.8.3"
|
|
34
35
|
},
|
|
@@ -60,5 +61,5 @@
|
|
|
60
61
|
"--comment--": "workaround for CVE-2024-21538",
|
|
61
62
|
"cross-spawn": "^7.0.6"
|
|
62
63
|
},
|
|
63
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "d47a56a68f652de8fe975ef86b4d3d3bf0facdc2"
|
|
64
65
|
}
|
package/src/server/api/ping.js
CHANGED
package/src/server/api/proxy.js
CHANGED
package/src/server/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020,
|
|
1
|
+
// Copyright IBM Corp. 2020, 2025
|
|
2
2
|
|
|
3
3
|
import debug from 'debug'
|
|
4
4
|
import express from 'express'
|
|
@@ -15,6 +15,7 @@ import ping from './api/ping.js'
|
|
|
15
15
|
import _predicates from './api/predicates.js'
|
|
16
16
|
import proxy from './api/proxy.js'
|
|
17
17
|
import samples from './api/samples.js'
|
|
18
|
+
import helmet from 'helmet'
|
|
18
19
|
|
|
19
20
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
20
21
|
|
|
@@ -56,6 +57,8 @@ export default async function (options) {
|
|
|
56
57
|
|
|
57
58
|
app.use(express.json())
|
|
58
59
|
|
|
60
|
+
app.use(helmet.frameguard())
|
|
61
|
+
|
|
59
62
|
app.use(express.static(`${__dirname}/../ui/build`))
|
|
60
63
|
app.use((req, res, next) => {
|
|
61
64
|
req.stepzen = {
|