Skip to content

Commit 68d9cd7

Browse files
chore(deps): lock file maintenance (#3393)
* chore(deps): lock file maintenance * Fix * Prettier --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Arda TANRIKULU <[email protected]>
1 parent 0d70d81 commit 68d9cd7

File tree

3 files changed

+897
-907
lines changed

3 files changed

+897
-907
lines changed

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
pnpm lint-staged

packages/graphql-yoga/__tests__/request-cancellation.spec.ts

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,14 @@ import { createDeferred } from '../../testing-utils/create-deferred';
44
import { createLogger, createSchema, createYoga, FetchAPI } from '../src/index';
55
import { useExecutionCancellation } from '../src/plugins/use-execution-cancellation';
66

7-
const variants: Array<[name: string, fetchAPI: undefined | FetchAPI]> = [
8-
['Ponyfilled WhatWG Fetch', undefined],
9-
];
7+
const variants: Array<[name: string, fetchAPI: undefined | FetchAPI]> = [['Ponyfill', undefined]];
108

11-
const [major] = globalThis?.process?.versions?.node.split('.') ?? [];
12-
13-
if (major === '21' && process.env.LEAKS_TEST !== 'true') {
9+
if (!process.env.LEAK_TESTS) {
1410
variants.push([
15-
'Node.js 21',
16-
{
17-
fetch: globalThis.fetch,
18-
Blob: globalThis.Blob,
19-
btoa: globalThis.btoa,
20-
FormData: globalThis.FormData,
21-
Headers: globalThis.Headers,
22-
Request: globalThis.Request,
23-
crypto: globalThis.crypto,
24-
File: globalThis.File,
25-
ReadableStream: globalThis.ReadableStream,
26-
Response: globalThis.Response,
27-
TextDecoder: globalThis.TextDecoder,
28-
TextEncoder: globalThis.TextEncoder,
29-
URL: globalThis.URL,
30-
TransformStream: globalThis.TransformStream,
31-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
32-
// @ts-ignore: URLPattern is not available in some environments
33-
URLPattern: globalThis.URLPattern,
34-
URLSearchParams: globalThis.URLSearchParams,
35-
WritableStream: globalThis.WritableStream,
36-
},
11+
'Native',
12+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
13+
// @ts-ignore - URLPattern is not available in types
14+
globalThis,
3715
]);
3816
}
3917

0 commit comments

Comments
 (0)