diff --git a/index.js b/index.js index 06462a6..20a8942 100644 --- a/index.js +++ b/index.js @@ -1,16 +1,16 @@ 'use strict' +const { PassThrough } = require('node:stream') const path = require('node:path') const { fileURLToPath } = require('node:url') const { statSync } = require('node:fs') const { promisify } = require('node:util') const glob = require('glob') const globPromise = promisify(glob) -const { PassThrough } = require('readable-stream') +const fp = require('fastify-plugin') const send = require('@fastify/send') const encodingNegotiator = require('@fastify/accept-negotiator') const contentDisposition = require('content-disposition') -const fp = require('fastify-plugin') const dirList = require('./lib/dirList') diff --git a/package.json b/package.json index c53b785..e42457b 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,7 @@ "content-disposition": "^0.5.3", "fastify-plugin": "^4.0.0", "glob": "^8.0.1", - "p-limit": "^3.1.0", - "readable-stream": "^4.0.0" + "p-limit": "^3.1.0" }, "devDependencies": { "@fastify/compress": "^6.0.0",