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. ...@@ -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). 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 ## [15.4.0] - 2020-11-04
This release implements a lot of small improvements, some of which have been longstanding. This release implements a lot of small improvements, some of which have been longstanding.
......
...@@ -363,7 +363,7 @@ class Site { ...@@ -363,7 +363,7 @@ class Site {
// Logging. // Logging.
this.app.use(morgan((tokens, req, res) => { 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') const isError = status.startsWith('4') || status.startsWith('5')
if (process.env.QUIET || this.accessLogDisable || (this.accessLogErrorsOnly && !isError)) { if (process.env.QUIET || this.accessLogDisable || (this.accessLogErrorsOnly && !isError)) {
......
...@@ -388,9 +388,9 @@ ...@@ -388,9 +388,9 @@
} }
}, },
"@small-tech/auto-encrypt-localhost": { "@small-tech/auto-encrypt-localhost": {
"version": "5.4.1", "version": "6.0.0",
"resolved": "https://registry.npmjs.org/@small-tech/auto-encrypt-localhost/-/auto-encrypt-localhost-5.4.1.tgz", "resolved": "https://registry.npmjs.org/@small-tech/auto-encrypt-localhost/-/auto-encrypt-localhost-6.0.0.tgz",
"integrity": "sha512-adzCpXIC1H7IDMlpmL0SMjtHnv5dQaC5H4P6uD9pA1YdM+vWv6iAh7Tf9HLO4ciObA0eAbmXissQOfXSH0q6dg==", "integrity": "sha512-1TnrhnCiz5CmF96YFmTbgDOZ4MsiWUGCq/PhVSb5Es2sulfFPdN0mlAcQwFxLtiqmjt7Jyhz84EGZh4MTzX/QQ==",
"requires": { "requires": {
"encodeurl": "^1.0.2", "encodeurl": "^1.0.2",
"fs-extra": "^8.1.0", "fs-extra": "^8.1.0",
...@@ -422,12 +422,12 @@ ...@@ -422,12 +422,12 @@
} }
}, },
"@small-tech/https": { "@small-tech/https": {
"version": "1.6.1", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/@small-tech/https/-/https-1.6.1.tgz", "resolved": "https://registry.npmjs.org/@small-tech/https/-/https-2.0.0.tgz",
"integrity": "sha512-dd+nLwUrUmaIS+nKfovZQSvHVASzCDATDuCKAw1aIY+sw/rEkYyplbwohpSU4I3C2G3vU2d1sepaIO6MelPh2A==", "integrity": "sha512-kUMw0DXCI7F6EHDY2tWeyNgT3pwLPeTDtoT7aZpTAxj6aRhcaYm298AMMXTBVAajYn/OosrIYpTpgI+Q4WY+dA==",
"requires": { "requires": {
"@small-tech/auto-encrypt": "^2.0.5", "@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" "fs-extra": "^9.0.1"
}, },
"dependencies": { "dependencies": {
...@@ -448,12 +448,19 @@ ...@@ -448,12 +448,19 @@
"integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==" "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw=="
}, },
"jsonfile": { "jsonfile": {
"version": "6.0.1", "version": "6.1.0",
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
"integrity": "sha512-jR2b5v7d2vIOust+w3wtFKZIfpC2pnRmFAhAC/BuweZFQR8qZzxH1OyrQ10HmdVYiXWkYUqPVsz91cG7EL2FBg==", "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
"requires": { "requires": {
"graceful-fs": "^4.1.6", "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": { "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