@cocreate/file-server 1.21.1 → 1.21.3
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/.github/workflows/automated.yml +1 -1
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/release.config.js +1 -1
- package/src/index.js +8 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.21.3](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.21.2...v1.21.3) (2026-07-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* set default branch to main ([2c7a527](https://github.com/CoCreate-app/CoCreate-file-server/commit/2c7a52710a56cf7d5ccec695748fb01428b9b361))
|
|
7
|
+
|
|
8
|
+
## [1.21.2](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.21.1...v1.21.2) (2026-07-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* replace wsManager bandwidth emissions with process usage events ([fda39a2](https://github.com/CoCreate-app/CoCreate-file-server/commit/fda39a2ddbd8930b84ce6f280006bdc13faed77c))
|
|
14
|
+
|
|
1
15
|
## [1.21.1](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.21.0...v1.21.1) (2026-07-17)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/release.config.js
CHANGED
package/src/index.js
CHANGED
|
@@ -316,16 +316,15 @@ export async function getDefaultFile({ fileName, hostname, organizationId, crud
|
|
|
316
316
|
|
|
317
317
|
defaultFile = await activeCrud.send(queryData);
|
|
318
318
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
type: "out",
|
|
319
|
+
if (fileName !== "/hostNotFound.html" && organizationId) {
|
|
320
|
+
process.emit("usage", {
|
|
321
|
+
type: "egress",
|
|
323
322
|
data: queryData,
|
|
324
323
|
organization_id: organizationId
|
|
325
324
|
});
|
|
326
325
|
|
|
327
|
-
|
|
328
|
-
type: "
|
|
326
|
+
process.emit("usage", {
|
|
327
|
+
type: "ingress",
|
|
329
328
|
data: defaultFile,
|
|
330
329
|
organization_id: organizationId
|
|
331
330
|
});
|
|
@@ -583,10 +582,9 @@ export async function sendResponse({ res, src, statusCode, headers, file, organi
|
|
|
583
582
|
src = JSON.stringify(src);
|
|
584
583
|
}
|
|
585
584
|
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
type: "out",
|
|
585
|
+
if (organizationId) {
|
|
586
|
+
process.emit("usage", {
|
|
587
|
+
type: "egress",
|
|
590
588
|
data: src,
|
|
591
589
|
organization_id: organizationId
|
|
592
590
|
});
|