ultimate-express 2.0.14 → 2.0.15

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": "ultimate-express",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "description": "The Ultimate Express. Fastest http server with full Express compatibility, based on uWebSockets.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -57,7 +57,7 @@
57
57
  "mime-types": "^2.1.35",
58
58
  "ms": "^2.1.3",
59
59
  "proxy-addr": "^2.0.7",
60
- "qs": "^6.14.0",
60
+ "qs": "^6.14.1",
61
61
  "range-parser": "^1.2.1",
62
62
  "statuses": "^2.0.2",
63
63
  "tseep": "^1.3.1",
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "devDependencies": {
69
69
  "@codechecks/client": "^0.1.12",
70
- "better-sse": "^0.14.1",
70
+ "better-sse": "^0.16.1",
71
71
  "body-parser": "^2.2.1",
72
72
  "compression": "^1.8.1",
73
73
  "cookie-parser": "^1.4.7",
package/src/request.js CHANGED
@@ -40,6 +40,11 @@ module.exports = class Request extends Readable {
40
40
  #needsData = false;
41
41
  #doneReadingData = false;
42
42
  #bufferedData = null;
43
+ body;
44
+ res;
45
+ optimizedParams;
46
+ _error;
47
+ noEtag;
43
48
  constructor(req, res, app) {
44
49
  super();
45
50
  this._res = res;
@@ -143,7 +148,7 @@ module.exports = class Request extends Readable {
143
148
  }
144
149
 
145
150
  set baseUrl(x) {
146
- return this._originalPath = x;
151
+ this._originalPath = x;
147
152
  }
148
153
 
149
154
  get #host() {
@@ -222,7 +227,7 @@ module.exports = class Request extends Readable {
222
227
  }
223
228
 
224
229
  set query(query) {
225
- return this.#cachedQuery = query;
230
+ this.#cachedQuery = query;
226
231
  }
227
232
  get query() {
228
233
  if(this.#cachedQuery) {
package/src/response.js CHANGED
@@ -38,7 +38,7 @@ const etag = require("etag");
38
38
  const outgoingMessage = new http.OutgoingMessage();
39
39
  const symbols = Object.getOwnPropertySymbols(outgoingMessage);
40
40
  const kOutHeaders = symbols.find(s => s.toString() === 'Symbol(kOutHeaders)');
41
- const HIGH_WATERMARK = 256 * 1024;
41
+ const HIGH_WATERMARK = 128 * 1024;
42
42
 
43
43
  class Socket extends EventEmitter {
44
44
  constructor(response) {
@@ -73,6 +73,7 @@ module.exports = class Response extends Writable {
73
73
  #pendingChunks = [];
74
74
  #lastWriteChunkTime = 0;
75
75
  #writeTimeout = null;
76
+ req;
76
77
  constructor(res, req, app) {
77
78
  super();
78
79
  this._req = req;
@@ -854,7 +855,7 @@ module.exports = class Response extends Writable {
854
855
  vary(field) {
855
856
  // checks for back-compat
856
857
  if (!field || (Array.isArray(field) && !field.length)) {
857
- deprecate('res.vary(): Provide a field name');
858
+ deprecated('res.vary(): Provide a field name');
858
859
  return this;
859
860
  }
860
861
  vary(this, field);
package/src/router.js CHANGED
@@ -40,6 +40,9 @@ const supportedUwsMethods = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS',
40
40
  const regExParam = /:(\w+)/g;
41
41
 
42
42
  module.exports = class Router extends EventEmitter {
43
+ parent;
44
+ listenCalled;
45
+ uwsApp;
43
46
  constructor(settings = {}) {
44
47
  super();
45
48