ultimate-express 1.2.22 → 1.2.23

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/README.md CHANGED
@@ -298,6 +298,7 @@ Almost all middlewares that are compatible with Express are compatible with µEx
298
298
  - ✅ [express-fileupload](https://npmjs.com/package/express-fileupload)
299
299
  - ✅ [express-session](https://npmjs.com/package/express-session)
300
300
  - ✅ [express-rate-limit](https://npmjs.com/package/express-rate-limit)
301
+ - ✅ [express-subdomain](https://npmjs.com/package/express-subdomain)
301
302
  - ✅ [vhost](https://npmjs.com/package/vhost)
302
303
 
303
304
  Middlewares that are confirmed to not work:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-express",
3
- "version": "1.2.22",
3
+ "version": "1.2.23",
4
4
  "description": "The Ultimate Express. Fastest http server with full Express compatibility, based on uWebSockets.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/view.js CHANGED
@@ -52,7 +52,11 @@ module.exports = class View {
52
52
  }
53
53
 
54
54
  this.engine = this.options.engines[this.ext];
55
- this.path = path.join(this.root, fileName);
55
+ if(path.isAbsolute(name)) {
56
+ this.path = name;
57
+ } else {
58
+ this.path = path.join(this.root, fileName);
59
+ }
56
60
  }
57
61
 
58
62
  lookup(name) {