Skip to content

Commit 6d0ce82

Browse files
committed
Remove node-fetch
1 parent 43a35d1 commit 6d0ce82

11 files changed

Lines changed: 1 addition & 115 deletions

.pnp.cjs

Lines changed: 0 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.yarn/cache/data-uri-to-buffer-npm-4.0.1-5c66a78beb-0d0790b67f.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

.yarn/cache/fetch-blob-npm-3.2.0-28e01becfc-5264ecceb5.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

.yarn/cache/formdata-polyfill-npm-4.0.10-e03013c013-9b5001d2ed.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

.yarn/cache/node-domexception-npm-1.0.0-e1e813b76f-e332522f24.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

.yarn/cache/node-fetch-npm-3.3.2-5267e015f2-24207ca8c8.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
"next-auth": "^4.24.11",
6969
"next-optimized-images": "^2.6.2",
7070
"next-pwa": "^5.6.0",
71-
"node-fetch": "^3.3.2",
7271
"notistack": "^2.0.5",
7372
"prop-types": "^15.8.1",
7473
"react": "^18.2.0",

pages/acceptInvite.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import { render, waitFor } from '@testing-library/react';
33
import { SnackbarProvider } from 'notistack';
44
import TestRouter from '__tests__/util/TestRouter';
55
import AcceptInvitePage from './acceptInvite.page';
6-
import 'node-fetch';
76

8-
jest.mock('node-fetch', () => jest.fn());
97
jest.mock('src/hooks/useAccountListId');
108
const mockPush = jest.fn();
119
const dashboardLink = '/accountLists/_/';

pages/api/auth/impersonate/impersonateHelper.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { NextApiRequest } from 'next';
22
import { getToken } from 'next-auth/jwt';
3-
import fetch from 'node-fetch';
43
import { getErrorMessage } from 'src/lib/getErrorFromCatch';
54
import { cookieDefaultInfo } from '../../utils/cookies';
65
import { signValue } from '../helpers';

pages/api/csv-update.page.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { NextApiRequest, NextApiResponse } from 'next';
22
import formidable, { IncomingForm } from 'formidable';
33
import { getToken } from 'next-auth/jwt';
4-
import fetch from 'node-fetch';
54
import createPatch from 'src/lib/createPatch';
65
import { camelToSnakeObject } from 'src/lib/snakeToCamel';
76

0 commit comments

Comments
 (0)