@rpcbase/server 0.216.0 → 0.218.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.216.0",
3
+ "version": "0.218.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -12,27 +12,27 @@
12
12
  "dependencies": {
13
13
  "@rpcbase/access-control": "0.25.0",
14
14
  "@rpcbase/agent": "0.30.0",
15
- "@rpcbase/std": "0.6.0",
15
+ "@rpcbase/std": "0.9.0",
16
16
  "bluebird": "3.7.2",
17
17
  "body-parser": "1.20.2",
18
- "bull": "4.10.4",
18
+ "bull": "4.11.1",
19
19
  "connect-redis": "6.1.3",
20
20
  "cors": "2.8.5",
21
21
  "debug": "4.3.4",
22
- "dotenv": "16.0.3",
22
+ "dotenv": "16.3.1",
23
23
  "express": "4.18.2",
24
24
  "express-session": "1.17.3",
25
- "glob": "8.1.0",
25
+ "glob": "10.3.3",
26
26
  "lodash": "4.17.21",
27
27
  "mkdirp": "2.1.3",
28
- "mongoose": "7.1.1",
28
+ "mongoose": "7.4.2",
29
29
  "picocolors": "1.0.0",
30
- "postmark": "3.0.18",
31
- "redis": "4.6.6",
30
+ "postmark": "3.0.19",
31
+ "redis": "4.6.7",
32
32
  "request-ip": "3.3.0",
33
33
  "sift": "17.0.1",
34
- "socket.io": "4.7.1",
35
- "validator": "13.9.0",
34
+ "socket.io": "4.7.2",
35
+ "validator": "13.11.0",
36
36
  "yargs": "17.7.2"
37
37
  }
38
38
  }
@@ -44,17 +44,18 @@ const serve_file = (req, res, full_path) => {
44
44
 
45
45
  if (has_compression) {
46
46
  const accept_encoding = req.headers["accept-encoding"]
47
+ // TODO: WARNING! brotli is tmp disabled due to slow compression time
47
48
  // brotli
48
- if (accept_encoding.indexOf("br") > -1) {
49
- res.sendFile(`${file_path}.br`, {
50
- headers: {
51
- "Content-Encoding": "br",
52
- "Content-Type": COMPRESSED_EXTENSIONS_MAP[extname],
53
- }
54
- })
55
- }
49
+ // if (accept_encoding.indexOf("br") > -1) {
50
+ // res.sendFile(`${file_path}.br`, {
51
+ // headers: {
52
+ // "Content-Encoding": "br",
53
+ // "Content-Type": COMPRESSED_EXTENSIONS_MAP[extname],
54
+ // }
55
+ // })
56
+ // }
56
57
  // gzip
57
- else if (accept_encoding.indexOf("gzip") > -1) {
58
+ /*else*/ if (accept_encoding.indexOf("gzip") > -1) {
58
59
  res.sendFile(`${file_path}.gz`, {
59
60
  headers: {
60
61
  "Content-Encoding": "gzip",