@stepzen/graphiql-proxy 0.51.0-experimental.17c615b → 0.51.0-experimental.4ab0de0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stepzen/graphiql-proxy",
3
- "version": "0.51.0-experimental.17c615b",
3
+ "version": "0.51.0-experimental.4ab0de0",
4
4
  "author": "Darren Waddell <darren@stepzen.com>",
5
5
  "license": "MIT",
6
6
  "homepage": "https://stepzen.com",
@@ -23,7 +23,7 @@
23
23
  "posttest": "prettier . --check"
24
24
  },
25
25
  "dependencies": {
26
- "@stepzen/fetch": "0.51.0-experimental.17c615b",
26
+ "@stepzen/fetch": "0.51.0-experimental.4ab0de0",
27
27
  "chalk": "^4.1.2",
28
28
  "cross-spawn": "^7.0.6",
29
29
  "debug": "^4.3.4",
@@ -61,5 +61,5 @@
61
61
  "--comment--": "workaround for CVE-2024-21538",
62
62
  "cross-spawn": "^7.0.6"
63
63
  },
64
- "gitHead": "17c615b2865d1cd7e5f2070e223a4d0b856993f3"
64
+ "gitHead": "4ab0de0a81fb9433cfd2a528639cc54e8609edaa"
65
65
  }
@@ -7,16 +7,16 @@ import {createRequire} from 'node:module'
7
7
  const {version} = createRequire(import.meta.url)('../../../package.json')
8
8
 
9
9
  const proxy = async (req, res) => {
10
- const {adminkey, debugging, zenservUrl, predicates, workspace, accessToken} =
11
- req.stepzen
10
+ const {adminkey, debugging, zenservUrl, predicates, workspace} = req.stepzen
12
11
 
13
12
  let endpoint = workspace.endpoint
14
13
 
15
14
  const headers = {
16
- Authorization: accessToken ? `Bearer ${accessToken}` : `Apikey ${adminkey}`,
15
+ Authorization: `Apikey ${adminkey}`,
17
16
  ...(req.body.headers || {}),
18
17
  }
19
18
  delete req.body.headers
19
+
20
20
  if (debugging.enabled) {
21
21
  headers = {
22
22
  'StepZen-Debug-Level': 1,
@@ -25,7 +25,6 @@ export default async function (options) {
25
25
  account,
26
26
  adminkey,
27
27
  apikey,
28
- accessToken,
29
28
  cli = {version: ''},
30
29
  /** @deprecated use zenservUrl */
31
30
  domain = 'us-east-a.ibm.stepzen.net',
@@ -65,7 +64,6 @@ export default async function (options) {
65
64
  req.stepzen = {
66
65
  adminkey,
67
66
  apikey,
68
- accessToken,
69
67
  cli,
70
68
  debugging,
71
69
  predicates,