Skip to content

Commit

Permalink
chore: drop undici (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd authored Nov 3, 2024
1 parent 5140202 commit 33ecc17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions core/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const { fetch: defaultFetch } = require('undici');
const { DateTime } = require('luxon');
const semver = require('semver');
const parsefiles = require('@nodevu/parsefiles');
Expand Down Expand Up @@ -225,7 +224,7 @@ async function determineCurrentReleasePhase(now, dates = {}) {
async function parseOptions(options) {
// set up our defaults
const parsedOptions = {
fetch: await defaultFetch,
fetch: globalThis.fetch,
now: DateTime.now(),
urls: {
index: 'https://nodejs.org/dist/index.json',
Expand All @@ -234,7 +233,7 @@ async function parseOptions(options) {
},
};

// allow the end-user to replace our fetch implementation with another one of their precernece.
// allow the end-user to replace our fetch implementation with another one they prefer.
if (options?.fetch) {
parsedOptions.fetch = options.fetch;
}
Expand Down
6 changes: 3 additions & 3 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"dependencies": {
"@nodevu/parsefiles": "^0.0.3",
"luxon": "^3.3.0",
"semver": "^7.5.1",
"undici": "^5.22.1"
"semver": "^7.5.1"
},
"devDependencies": {
"@biomejs/biome": "1.6.1",
"nyc": "^15.1.0",
"test": "^3.3.0"
"test": "^3.3.0",
"undici": "^5.22.1"
}
}

0 comments on commit 33ecc17

Please sign in to comment.