Skip to content

Commit 3d213e1

Browse files
committed
Remove node-fetch
1 parent 7a054f3 commit 3d213e1

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

changelog.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
1.1.0 (????-??-??)
5+
------------------
6+
7+
* Add color for HTTP QUERY methods.
8+
* Remove node-fetch dependency.
9+
10+
411
1.0.3 (2024-01-15)
512
------------------
613

src/util.ts

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ import {
88
} from './types.js';
99
import { State, Client } from 'ketting';
1010
import { Context } from '@curveball/kernel';
11-
import * as nodeFetch from 'node-fetch';
12-
13-
// @ts-expect-error Signatures aren't 100% identical
14-
if (!global.Request) global.Request = nodeFetch.Request;
1511

1612
/**
1713
* Returns the list of links for a section.

util/fetch-link-relation-data.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { JSDOM } from 'jsdom';
2-
import fetch from 'node-fetch';
32
import { writeFileSync } from 'node:fs';
43

54
const response = await fetch('https://www.iana.org/assignments/link-relations/link-relations.xml');

0 commit comments

Comments
 (0)