Skip to content

Commit

Permalink
Bump fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Nov 11, 2022
1 parent 1f63e1f commit 1c69fc8
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 39 deletions.
2 changes: 1 addition & 1 deletion examples/bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"graphql": "16.6.0"
},
"devDependencies": {
"@whatwg-node/fetch": "0.5.2"
"@whatwg-node/fetch": "0.5.3"
}
}
2 changes: 1 addition & 1 deletion examples/error-handling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"graphql-yoga": "3.0.0-next.11",
"@whatwg-node/fetch": "0.5.2",
"@whatwg-node/fetch": "0.5.3",
"graphql": "^16.1.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/graphql-yoga/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"@graphql-tools/schema": "^9.0.0",
"@graphql-tools/utils": "^9.0.1",
"@graphql-yoga/subscription": "^3.0.0-next.0",
"@whatwg-node/fetch": "0.5.2",
"@whatwg-node/server": "0.4.15",
"@whatwg-node/fetch": "0.5.3",
"@whatwg-node/server": "0.4.16",
"dset": "^3.1.1",
"tslib": "^2.3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/apq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"access": "public"
},
"dependencies": {
"@whatwg-node/fetch": "0.5.2",
"@whatwg-node/fetch": "0.5.3",
"tiny-lru": "^10.0.0"
},
"devDependencies": {
Expand Down
16 changes: 6 additions & 10 deletions packages/plugins/defer-stream/__tests__/defer-stream.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,10 @@ describe('Defer/Stream', () => {
expect(response.headers.get('content-type')).toBe(
'multipart/mixed; boundary="-"',
)
const chunks: string[] = []
for await (const chunk of response.body!) {
chunks.push(chunk.toString())
}

expect(chunks.join('')).toMatchInlineSnapshot(`
const finalText = await response.text()

expect(finalText).toMatchInlineSnapshot(`
"---
Content-Type: application/json; charset=utf-8
Content-Length: 26
Expand Down Expand Up @@ -131,12 +129,10 @@ describe('Defer/Stream', () => {
expect(response.headers.get('content-type')).toBe(
'multipart/mixed; boundary="-"',
)
const chunks: string[] = []
for await (const chunk of response.body!) {
chunks.push(chunk.toString())
}

expect(chunks.join('')).toMatchInlineSnapshot(`
const finalText = await response.text()

expect(finalText).toMatchInlineSnapshot(`
"---
Content-Type: application/json; charset=utf-8
Content-Length: 44
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/defer-stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"graphql-yoga": "^3.0.0-next.11"
},
"devDependencies": {
"@whatwg-node/fetch": "0.5.2"
"@whatwg-node/fetch": "0.5.3"
},
"type": "module",
"dependencies": {
Expand Down
46 changes: 23 additions & 23 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1c69fc8

Please sign in to comment.