Skip to content

Commit 6ed584d

Browse files
authored
fix: with merge headers (#1091)
1 parent 1aa55ca commit 6ed584d

File tree

70 files changed

+213
-212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+213
-212
lines changed

examples/10_transport-http/transport-http_headers_raw__headers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const graffle = Graffle
1111
schema: publicGraphQLSchemaEndpoints.Atlas,
1212
transport: {
1313
headers: {
14-
// todo: authorization header not showing up in final output!
1514
authorization: `Bearer MY_TOKEN`,
1615
'x-something-to-unset': `true`,
1716
},

examples/__outputs__/10_transport-http/transport-http_extension_headers__dynamicHeaders.output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
headers: Headers {
55
accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8',
66
'content-type': 'application/json',
7-
'x-sent-at-time': '1726357184256'
7+
'x-sent-at-time': '1726370577818'
88
},
99
signal: undefined,
1010
method: 'post',

examples/__outputs__/10_transport-http/transport-http_headers_raw__headers.output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
Headers {
33
accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8',
44
'content-type': 'application/json',
5+
authorization: 'Bearer MY_TOKEN',
56
'x-from-raw': 'true'
67
}

examples/__outputs__/20_output/output_envelope.output.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
headers: Headers {
2020
connection: 'keep-alive',
2121
'content-length': '119',
22-
'x-served-by': 'cache-yul1970031-YUL',
22+
'x-served-by': 'cache-yul1970040-YUL',
2323
'accept-ranges': 'bytes',
2424
date: 'Sun, 08 Sep 2024 18:13:26 GMT',
2525
'content-type': 'application/graphql-response+json; charset=utf-8',
@@ -32,13 +32,13 @@
3232
'alt-svc': 'h3=":443"; ma=86400',
3333
'access-control-allow-origin': '*',
3434
'x-powered-by': 'Stellate',
35-
age: '537979',
35+
age: '551373',
3636
'cache-control': 'public, s-maxage=2628000, stale-while-revalidate=2628000',
3737
'x-cache': 'HIT',
38-
'x-cache-hits': '70',
38+
'x-cache-hits': '59',
3939
'gcdn-cache': 'HIT',
40-
'stellate-rate-limit-budget-remaining': '35',
41-
'stellate-rate-limit-rules': '"IP limit";type="RequestCount";budget=50;limited=?0;remaining=35;refill=18',
40+
'stellate-rate-limit-budget-remaining': '44',
41+
'stellate-rate-limit-rules': '"IP limit";type="RequestCount";budget=50;limited=?0;remaining=44;refill=38',
4242
'stellate-rate-limit-decision': 'pass',
4343
'stellate-rate-limit-budget-required': '5',
4444
'content-encoding': 'br'

examples/__outputs__/60_extension/extension_opentelemetry__opentelemetry.output.txt

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
}
1010
},
1111
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
12-
traceId: '739682d434b4322a234dc2c868b9acfe',
13-
parentId: '4b88214552131b9f',
12+
traceId: '5f3cc79a0d7f600e6443b66ca5fd7599',
13+
parentId: 'c7121550554a028f',
1414
traceState: undefined,
1515
name: 'encode',
16-
id: '84efcd9e0032a5d8',
16+
id: 'bf19a2fd444136bd',
1717
kind: 0,
18-
timestamp: 1726357184994000,
19-
duration: 761,
18+
timestamp: 1726370578428000,
19+
duration: 542.708,
2020
attributes: {},
2121
status: { code: 0 },
2222
events: [],
@@ -33,14 +33,14 @@
3333
}
3434
},
3535
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
36-
traceId: '739682d434b4322a234dc2c868b9acfe',
37-
parentId: '4b88214552131b9f',
36+
traceId: '5f3cc79a0d7f600e6443b66ca5fd7599',
37+
parentId: 'c7121550554a028f',
3838
traceState: undefined,
3939
name: 'pack',
40-
id: 'bc8ec0700844cd69',
40+
id: '7f76dd08ed8139ad',
4141
kind: 0,
42-
timestamp: 1726357184997000,
43-
duration: 1012.708,
42+
timestamp: 1726370578434000,
43+
duration: 1102.792,
4444
attributes: {},
4545
status: { code: 0 },
4646
events: [],
@@ -57,14 +57,14 @@
5757
}
5858
},
5959
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
60-
traceId: '739682d434b4322a234dc2c868b9acfe',
61-
parentId: '4b88214552131b9f',
60+
traceId: '5f3cc79a0d7f600e6443b66ca5fd7599',
61+
parentId: 'c7121550554a028f',
6262
traceState: undefined,
6363
name: 'exchange',
64-
id: '64c50da0cd515f43',
64+
id: 'febb48d8497c0eb4',
6565
kind: 0,
66-
timestamp: 1726357184999000,
67-
duration: 164325.125,
66+
timestamp: 1726370578436000,
67+
duration: 175379.417,
6868
attributes: {},
6969
status: { code: 0 },
7070
events: [],
@@ -81,14 +81,14 @@
8181
}
8282
},
8383
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
84-
traceId: '739682d434b4322a234dc2c868b9acfe',
85-
parentId: '4b88214552131b9f',
84+
traceId: '5f3cc79a0d7f600e6443b66ca5fd7599',
85+
parentId: 'c7121550554a028f',
8686
traceState: undefined,
8787
name: 'unpack',
88-
id: '8b36d845f0b08d6d',
88+
id: '858aa86480423499',
8989
kind: 0,
90-
timestamp: 1726357185163000,
91-
duration: 2875.167,
90+
timestamp: 1726370578611000,
91+
duration: 2229.292,
9292
attributes: {},
9393
status: { code: 0 },
9494
events: [],
@@ -105,14 +105,14 @@
105105
}
106106
},
107107
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
108-
traceId: '739682d434b4322a234dc2c868b9acfe',
109-
parentId: '4b88214552131b9f',
108+
traceId: '5f3cc79a0d7f600e6443b66ca5fd7599',
109+
parentId: 'c7121550554a028f',
110110
traceState: undefined,
111111
name: 'decode',
112-
id: 'aa2dbba36d46bc6f',
112+
id: '903b572b71e9d6c3',
113113
kind: 0,
114-
timestamp: 1726357185166000,
115-
duration: 161.875,
114+
timestamp: 1726370578614000,
115+
duration: 121.791,
116116
attributes: {},
117117
status: { code: 0 },
118118
events: [],
@@ -129,14 +129,14 @@
129129
}
130130
},
131131
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
132-
traceId: '739682d434b4322a234dc2c868b9acfe',
132+
traceId: '5f3cc79a0d7f600e6443b66ca5fd7599',
133133
parentId: undefined,
134134
traceState: undefined,
135135
name: 'request',
136-
id: '4b88214552131b9f',
136+
id: 'c7121550554a028f',
137137
kind: 0,
138-
timestamp: 1726357184994000,
139-
duration: 173145.083,
138+
timestamp: 1726370578427000,
139+
duration: 187055.167,
140140
attributes: {},
141141
status: { code: 0 },
142142
events: [],

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@
128128
"@types/body-parser": "^1.19.5",
129129
"@types/express": "^4.17.21",
130130
"@types/json-bigint": "^1.0.4",
131-
"@types/node": "^22.5.4",
131+
"@types/node": "^22.5.5",
132132
"@typescript-eslint/eslint-plugin": "^8.5.0",
133133
"@typescript-eslint/parser": "^8.5.0",
134134
"doctoc": "^2.2.1",
135135
"dripip": "^0.10.0",
136-
"es-toolkit": "^1.18.0",
136+
"es-toolkit": "^1.19.0",
137137
"eslint": "^9.10.0",
138138
"eslint-config-prisma": "^0.6.0",
139139
"eslint-plugin-deprecation": "^3.0.0",

0 commit comments

Comments
 (0)