From 3c3854b1218ea809b093521c115ab140d124c3f1 Mon Sep 17 00:00:00 2001 From: Gweesin Chan <42909374+gweesin@users.noreply.github.com> Date: Tue, 15 Oct 2024 17:56:59 +0800 Subject: [PATCH] feat: replace the 'fast-url-parser' module with the 'node:url' module (#207) --- package.json | 1 - src/index.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index a6665b3..972f103 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,6 @@ "dependencies": { "bytes": "3.0.0", "content-disposition": "0.5.2", - "fast-url-parser": "1.1.3", "mime-types": "2.1.18", "minimatch": "3.1.2", "path-is-inside": "1.0.2", diff --git a/src/index.js b/src/index.js index 05e3430..34c2501 100644 --- a/src/index.js +++ b/src/index.js @@ -5,7 +5,7 @@ const {createHash} = require('crypto'); const {realpath, lstat, createReadStream, readdir} = require('fs'); // Packages -const url = require('fast-url-parser'); +const url = require('url'); const slasher = require('./glob-slash'); const minimatch = require('minimatch'); const pathToRegExp = require('path-to-regexp');