ultimate-express 1.2.22 → 1.2.24
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 +1 -0
- package/package.json +1 -1
- package/src/view.js +8 -1
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
package/src/view.js
CHANGED
|
@@ -52,7 +52,14 @@ module.exports = class View {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
this.engine = this.options.engines[this.ext];
|
|
55
|
-
|
|
55
|
+
if(path.isAbsolute(name)) {
|
|
56
|
+
this.path = name;
|
|
57
|
+
if(path.extname(name) === '') {
|
|
58
|
+
this.path += this.ext;
|
|
59
|
+
}
|
|
60
|
+
} else {
|
|
61
|
+
this.path = path.join(this.root, fileName);
|
|
62
|
+
}
|
|
56
63
|
}
|
|
57
64
|
|
|
58
65
|
lookup(name) {
|