@cocreate/file-server 1.17.0 → 1.18.0
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 +19 -0
- package/package.json +1 -1
- package/prettier.config.js +16 -0
- package/src/index.js +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
# [1.18.0](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.17.1...v1.18.0) (2024-11-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* prettier.config options ([6fef07b](https://github.com/CoCreate-app/CoCreate-file-server/commit/6fef07b800b165da3ca2635a3e98fde80ac3e6a0))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add prettier.config.js and format files ([cc62b41](https://github.com/CoCreate-app/CoCreate-file-server/commit/cc62b41a411eded904bcf9f4e8b470299a9ae345))
|
|
12
|
+
|
|
13
|
+
## [1.17.1](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.17.0...v1.17.1) (2024-11-02)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* handing condition if organization id not found ([d0a956d](https://github.com/CoCreate-app/CoCreate-file-server/commit/d0a956d2e1f88c5c836a346972dff72fc28f2b97))
|
|
19
|
+
|
|
1
20
|
# [1.17.0](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.16.11...v1.17.0) (2024-09-08)
|
|
2
21
|
|
|
3
22
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -42,12 +42,13 @@ class CoCreateFileSystem {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
let organization_id
|
|
45
46
|
if (!organization || organization.error) {
|
|
46
47
|
let hostNotFound = await getDefaultFile('/hostNotFound.html')
|
|
47
48
|
return sendResponse(hostNotFound.object[0].src, 404, { 'Content-Type': 'text/html' })
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
|
|
51
|
+
organization_id = organization._id
|
|
51
52
|
data.organization_id = organization_id
|
|
52
53
|
|
|
53
54
|
res.setHeader('organization', organization_id)
|
|
@@ -176,11 +177,12 @@ class CoCreateFileSystem {
|
|
|
176
177
|
src = JSON.stringify(src);
|
|
177
178
|
}
|
|
178
179
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
if (organization_id)
|
|
181
|
+
crud.wsManager.emit("setBandwidth", {
|
|
182
|
+
type: 'out',
|
|
183
|
+
data: src,
|
|
184
|
+
organization_id
|
|
185
|
+
});
|
|
184
186
|
res.writeHead(statusCode, headers);
|
|
185
187
|
return res.end(src);
|
|
186
188
|
} catch (error) {
|