Skip to content

Commit

Permalink
chore(deps): lock file maintenance (dotansimha#3393)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
renovate[bot] and ardatan authored Jul 29, 2024
1 parent 0d70d81 commit 68d9cd7
Show file tree
Hide file tree
Showing 3 changed files with 897 additions and 907 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm lint-staged
34 changes: 6 additions & 28 deletions packages/graphql-yoga/__tests__/request-cancellation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,14 @@ import { createDeferred } from '../../testing-utils/create-deferred';
import { createLogger, createSchema, createYoga, FetchAPI } from '../src/index';
import { useExecutionCancellation } from '../src/plugins/use-execution-cancellation';

const variants: Array<[name: string, fetchAPI: undefined | FetchAPI]> = [
['Ponyfilled WhatWG Fetch', undefined],
];
const variants: Array<[name: string, fetchAPI: undefined | FetchAPI]> = [['Ponyfill', undefined]];

const [major] = globalThis?.process?.versions?.node.split('.') ?? [];

if (major === '21' && process.env.LEAKS_TEST !== 'true') {
if (!process.env.LEAK_TESTS) {
variants.push([
'Node.js 21',
{
fetch: globalThis.fetch,
Blob: globalThis.Blob,
btoa: globalThis.btoa,
FormData: globalThis.FormData,
Headers: globalThis.Headers,
Request: globalThis.Request,
crypto: globalThis.crypto,
File: globalThis.File,
ReadableStream: globalThis.ReadableStream,
Response: globalThis.Response,
TextDecoder: globalThis.TextDecoder,
TextEncoder: globalThis.TextEncoder,
URL: globalThis.URL,
TransformStream: globalThis.TransformStream,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: URLPattern is not available in some environments
URLPattern: globalThis.URLPattern,
URLSearchParams: globalThis.URLSearchParams,
WritableStream: globalThis.WritableStream,
},
'Native',
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore - URLPattern is not available in types
globalThis,
]);
}

Expand Down
Loading

0 comments on commit 68d9cd7

Please sign in to comment.