@edryslabs/edrys-dev 0.1.0 → 0.1.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/dist/chat.js +3 -1
- package/package.json +1 -1
package/dist/chat.js
CHANGED
|
@@ -98,7 +98,9 @@ export class Chat extends EventEmitter {
|
|
|
98
98
|
res.sendStatus(409);
|
|
99
99
|
});
|
|
100
100
|
for (const [file, source] of Object.entries(PANEL_FILES)) {
|
|
101
|
-
|
|
101
|
+
// dotfiles: sendFile checks the whole absolute path, and installs often
|
|
102
|
+
// live under one (~/.nvm, ~/.npm/_npx); the path is ours, not the request's
|
|
103
|
+
app.get('/edrys-dev/' + file, (req, res) => res.sendFile(source(), { dotfiles: 'allow' }));
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
106
|
add(entry) {
|
package/package.json
CHANGED