@cocreate/file-server 1.0.16 → 1.0.18
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/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/index.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.0.18](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.0.17...v1.0.18) (2022-12-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* testing ([7a1ce15](https://github.com/CoCreate-app/CoCreate-file-server/commit/7a1ce15a12057260eeb9f121fdc21a26ca22df4d))
|
|
7
|
+
|
|
8
|
+
## [1.0.17](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.0.16...v1.0.17) (2022-12-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* testing ([496a175](https://github.com/CoCreate-app/CoCreate-file-server/commit/496a17513e9c1cc6628fbb056501a015e9dc7c4e))
|
|
14
|
+
|
|
1
15
|
## [1.0.16](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.0.15...v1.0.16) (2022-12-05)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -85,7 +85,8 @@ class CoCreateFileSystem {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
if (!src) {
|
|
88
|
-
|
|
88
|
+
console.log('src not found')
|
|
89
|
+
// res.send('could not find src');
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
let contentType = file['content-type'] || mime.lookup(url) || 'text/html';
|
|
@@ -98,6 +99,7 @@ class CoCreateFileSystem {
|
|
|
98
99
|
'Content-Type': contentType,
|
|
99
100
|
'Content-Length': file.length
|
|
100
101
|
});
|
|
102
|
+
console.log('before media', contentType)
|
|
101
103
|
res.send(file);
|
|
102
104
|
} else if (contentType === 'text/html') {
|
|
103
105
|
try {
|