@tryghost/mw-vhost 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Vhost Middleware
2
2
 
3
+ ## Purpose
4
+
5
+ Virtual-host Express middleware (forked from `vhost`) with Ghost-specific trust-proxy behavior.
6
+
7
+
3
8
  Forked from https://github.com/expressjs/vhost/ which appears abandoned.
4
9
 
5
10
  ## API
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mw-vhost",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "author": "Ghost Foundation",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "scripts": {
11
11
  "dev": "echo \"Implement me!\"",
12
- "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'",
12
+ "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'",
13
13
  "test": "yarn test:unit",
14
14
  "lint:code": "eslint *.js lib/ --ext .js --cache",
15
15
  "lint": "yarn lint:code && yarn lint:test",