Skip to content

Commit

Permalink
refactor: remove node-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun committed Mar 29, 2024
1 parent 14d0a47 commit aec61a7
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 46 deletions.
2 changes: 0 additions & 2 deletions packages/integration-tests/jest.setup.js
@@ -1,14 +1,12 @@
import dotenv from 'dotenv';
import { setDefaultOptions } from 'expect-puppeteer';
import fetch from 'node-fetch';
import { TextDecoder, TextEncoder } from 'text-encoder';

const { jest } = import.meta;

dotenv.config();

/* eslint-disable @silverhand/fp/no-mutation */
global.fetch = fetch;
global.TextDecoder = TextDecoder;
global.TextEncoder = TextEncoder;
/* eslint-enable @silverhand/fp/no-mutation */
Expand Down
1 change: 0 additions & 1 deletion packages/integration-tests/package.json
Expand Up @@ -43,7 +43,6 @@
"jest-puppeteer": "^10.0.1",
"jose": "^5.0.0",
"ky": "^1.2.3",
"node-fetch": "^3.3.0",
"openapi-schema-validator": "^12.1.3",
"openapi-types": "^12.1.3",
"prettier": "^3.0.0",
Expand Down
Expand Up @@ -4,7 +4,6 @@ import { fetchTokenByRefreshToken } from '@logto/js';
import { InteractionEvent, type Resource, RoleType } from '@logto/schemas';
import { assert } from '@silverhand/essentials';
import { createRemoteJWKSet, jwtVerify } from 'jose';
import fetch from 'node-fetch';

import { createResource, deleteResource, deleteUser, putInteraction } from '#src/api/index.js';
import { assignUsersToRole, createRole, deleteRole } from '#src/api/role.js';
Expand Down
42 changes: 0 additions & 42 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 aec61a7

Please sign in to comment.