Skip to content

Commit

Permalink
Remove node-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
evert committed Jan 24, 2024
1 parent 7a054f3 commit 3d213e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

1.1.0 (????-??-??)
------------------

* Add color for HTTP QUERY methods.
* Remove node-fetch dependency.


1.0.3 (2024-01-15)
------------------

Expand Down
4 changes: 0 additions & 4 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ import {
} from './types.js';
import { State, Client } from 'ketting';
import { Context } from '@curveball/kernel';
import * as nodeFetch from 'node-fetch';

// @ts-expect-error Signatures aren't 100% identical
if (!global.Request) global.Request = nodeFetch.Request;

/**
* Returns the list of links for a section.
Expand Down
1 change: 0 additions & 1 deletion util/fetch-link-relation-data.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { JSDOM } from 'jsdom';
import fetch from 'node-fetch';
import { writeFileSync } from 'node:fs';

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

0 comments on commit 3d213e1

Please sign in to comment.