feat(deps): update hyper-express to ~6.8.5

This commit is contained in:
Bobby 2023-09-06 18:17:37 +07:00
parent 4c64b8fed4
commit 25ca7a6bb7
No known key found for this signature in database
GPG Key ID: B2F45B6A3C9A8FCA
6 changed files with 19 additions and 13 deletions

View File

@ -160,6 +160,9 @@ class ServeStatic {
// As route handler function for HyperExpress.any()
async #handler (req, res) {
// Skip already-handled requests.
if (!res || res.headersSent) return
if (this.#options.ignorePatterns && this.#options.ignorePatterns.some(pattern => req.path.startsWith(pattern))) {
return errors.handleNotFound(req, res)
}

View File

@ -1,8 +1,8 @@
const logger = require('./../../logger')
class RequestLogging {
class DebugLogging {
constructor () {
logger.log('Initiated RequestLogging middleware.')
logger.log('Initiated DebugLogging middleware.')
}
#middleware (req, res, next) {
@ -21,4 +21,4 @@ class RequestLogging {
}
}
module.exports = RequestLogging
module.exports = DebugLogging

View File

@ -411,7 +411,7 @@ self.actuallyUpload = async (req, res, data = {}) => {
hashStream.once('error', _reject)
// Ensure readStream will only be resumed later down the line by readStream.pipe()
readStream.pause()
// TODO: readStream.pause()
readStream.on('data', data => {
// .dispose() will destroy this internal component,
// so use it as an indicator of whether the hashStream has been .dispose()'d

View File

@ -29,6 +29,9 @@ const dist = process.env.NODE_ENV === 'development'
? path.join(__dirname, 'dist-dev')
: path.join(__dirname, 'dist')
// Ensure dist directory exists.
jetpack.dir(dist)
const postcssPlugins = [
postcssPresetEnv()
]

View File

@ -48,7 +48,7 @@
"fresh": "~0.5.2",
"fs-jetpack": "~5.1.0",
"helmet": "~6.2.0",
"hyper-express": "=6.6.0",
"hyper-express": "~6.8.5",
"jszip": "~3.10.1",
"knex": "~2.5.1",
"live-directory": "~2.3.2",

View File

@ -3179,10 +3179,10 @@ https-proxy-agent@^5.0.0:
agent-base "6"
debug "4"
hyper-express@=6.6.0:
version "6.6.0"
resolved "https://registry.yarnpkg.com/hyper-express/-/hyper-express-6.6.0.tgz#7a59bca4ae5925533af72e1390826d3801b4d26c"
integrity sha512-cLQxdYPjKpObILCz1dnM3ZGc1gM3DQItWXXU3/CorPstfSJZxof6XB8b7TsrCe/pL7hlYNE292H6wHkg61zyfg==
hyper-express@~6.8.5:
version "6.8.5"
resolved "https://registry.yarnpkg.com/hyper-express/-/hyper-express-6.8.5.tgz#9652bdc9dcbec9307794089012cb330f83cb749e"
integrity sha512-tlHCGg0xKRHRheqY3Fgb8FvuvluCqIf6tJXiiyadsQh108g/givMqKt0XBYV+Rw0vstmmROuJ3cHXiUkQoddgg==
dependencies:
"@types/busboy" "^0.3.1"
"@types/express" "^4.17.13"
@ -3195,7 +3195,7 @@ hyper-express@=6.6.0:
range-parser "^1.2.1"
type-is "^1.6.18"
typed-emitter "^2.1.0"
uWebSockets.js "github:uNetworking/uWebSockets.js#v20.25.0"
uWebSockets.js "github:uNetworking/uWebSockets.js#v20.31.0"
iconv-lite@^0.6.3:
version "0.6.3"
@ -6527,9 +6527,9 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==
"uWebSockets.js@github:uNetworking/uWebSockets.js#v20.25.0":
version "20.25.0"
resolved "https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/e6ecc2102d68d99dc35969b0898fbd201e0f252b"
"uWebSockets.js@github:uNetworking/uWebSockets.js#v20.31.0":
version "20.31.0"
resolved "https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/809b99d2d7d12e2cbf89b7135041e9b41ff84084"
uc.micro@^1.0.1, uc.micro@^1.0.5:
version "1.0.6"