Verified Commit 9e5b0734 authored by Aral Balkan's avatar Aral Balkan
Browse files

Fix multiple local servers; avoid crash if access status is undefined

parent 9ecaac45
......@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [15.4.1] - 2020-11-04
### Fixed
- Multiple local servers feature actually works now (updated stale @small-tech/https dependency).
- Fixed possible crash if status is not included in access log.
## [15.4.0] - 2020-11-04
This release implements a lot of small improvements, some of which have been longstanding.
......
......@@ -363,7 +363,7 @@ class Site {
// Logging.
this.app.use(morgan((tokens, req, res) => {
const status = tokens.status(req, res)
const status = tokens.status(req, res) || '?'
const isError = status.startsWith('4') || status.startsWith('5')
if (process.env.QUIET || this.accessLogDisable || (this.accessLogErrorsOnly && !isError)) {
......
......@@ -388,9 +388,9 @@
}
},
"@small-tech/auto-encrypt-localhost": {
"version": "5.4.1",
"resolved": "https://registry.npmjs.org/@small-tech/auto-encrypt-localhost/-/auto-encrypt-localhost-5.4.1.tgz",
"integrity": "sha512-adzCpXIC1H7IDMlpmL0SMjtHnv5dQaC5H4P6uD9pA1YdM+vWv6iAh7Tf9HLO4ciObA0eAbmXissQOfXSH0q6dg==",
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/@small-tech/auto-encrypt-localhost/-/auto-encrypt-localhost-6.0.0.tgz",
"integrity": "sha512-1TnrhnCiz5CmF96YFmTbgDOZ4MsiWUGCq/PhVSb5Es2sulfFPdN0mlAcQwFxLtiqmjt7Jyhz84EGZh4MTzX/QQ==",
"requires": {
"encodeurl": "^1.0.2",
"fs-extra": "^8.1.0",
......@@ -422,12 +422,12 @@
}
},
"@small-tech/https": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@small-tech/https/-/https-1.6.1.tgz",
"integrity": "sha512-dd+nLwUrUmaIS+nKfovZQSvHVASzCDATDuCKAw1aIY+sw/rEkYyplbwohpSU4I3C2G3vU2d1sepaIO6MelPh2A==",
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@small-tech/https/-/https-2.0.0.tgz",
"integrity": "sha512-kUMw0DXCI7F6EHDY2tWeyNgT3pwLPeTDtoT7aZpTAxj6aRhcaYm298AMMXTBVAajYn/OosrIYpTpgI+Q4WY+dA==",
"requires": {
"@small-tech/auto-encrypt": "^2.0.5",
"@small-tech/auto-encrypt-localhost": "^5.4.1",
"@small-tech/auto-encrypt-localhost": "^6.0.0",
"fs-extra": "^9.0.1"
},
"dependencies": {
......@@ -448,12 +448,19 @@
"integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw=="
},
"jsonfile": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz",
"integrity": "sha512-jR2b5v7d2vIOust+w3wtFKZIfpC2pnRmFAhAC/BuweZFQR8qZzxH1OyrQ10HmdVYiXWkYUqPVsz91cG7EL2FBg==",
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
"integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
"requires": {
"graceful-fs": "^4.1.6",
"universalify": "^1.0.0"
"universalify": "^2.0.0"
},
"dependencies": {
"universalify": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
"integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ=="
}
}
},
"universalify": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment