primate 0.21.0 → 0.21.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primate",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "Expressive, minimal and extensible web framework",
5
5
  "homepage": "https://primatejs.com",
6
6
  "bugs": "https://github.com/primatejs/primate/issues",
@@ -8,7 +8,7 @@
8
8
  "files": [
9
9
  "src/**/*.js",
10
10
  "src/errors.json",
11
- "src/defaults/app.html",
11
+ "src/defaults/*.html",
12
12
  "!src/**/*.spec.js"
13
13
  ],
14
14
  "bin": "src/bin.js",
@@ -0,0 +1,14 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <title>Error page</title>
5
+ <meta charset="utf-8" />
6
+ %head%
7
+ </head>
8
+ <body>
9
+ <h1>Error page</h1>
10
+ <p>
11
+ %body%
12
+ </p>
13
+ </body>
14
+ </html>
@@ -50,6 +50,7 @@ export default app => {
50
50
  }, request);
51
51
  }).orelse(async error => {
52
52
  app.log.auto(error);
53
+ console.log("HI")
53
54
  // the +error.js page itself could fail
54
55
  return tryreturn(_ => respond(errorHandler())(app, {}, request))
55
56
  .orelse(_ => clientError()(app, {}, request));