egg 3.23.0 → 3.24.1

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.
@@ -359,7 +359,7 @@ module.exports = appInfo => {
359
359
  config.workerStartTimeout = 10 * 60 * 1000;
360
360
 
361
361
  /**
362
- * server timeout in milliseconds, default to 2 minutes.
362
+ * server timeout in milliseconds, default to 0 (no timeout).
363
363
  *
364
364
  * for special request, just use `ctx.req.setTimeout(ms)`
365
365
  *
package/index.d.ts CHANGED
@@ -326,10 +326,11 @@ declare module 'egg' {
326
326
  * @property {String} textLimit - json body size limit, default 1mb
327
327
  * @property {Boolean} strict - json body strict mode, if set strict value true, then only receive object and array json body
328
328
  * @property {Number} queryString.arrayLimit - from item array length limit, default 100
329
- * @property {Number} queryString.depth - json value deep lenght, default 5
330
- * @property {Number} queryString.parameterLimit - paramter number limit ,default 1000
331
- * @property {string[]} enableTypes - parser will only parse when request type hits enableTypes, default is ['json', 'form']
332
- * @property {any} extendTypes - support extend types
329
+ * @property {Number} queryString.depth - json value deep length, default 5
330
+ * @property {Number} queryString.parameterLimit - parameter number limit, default 1000
331
+ * @property {String[]} enableTypes - parser will only parse when request type hits enableTypes, default is ['json', 'form']
332
+ * @property {Object} extendTypes - support extend types
333
+ * @property {String} onProtoPoisoning - Defines what action must take when parsing a JSON object with `__proto__`. Possible values are `'error'`, `'remove'` and `'ignore'`. Default is `'error'`, it will return `400` response when `Prototype-Poisoning` happen.
333
334
  */
334
335
  bodyParser: {
335
336
  enable: boolean;
@@ -351,6 +352,8 @@ declare module 'egg' {
351
352
  form: string[];
352
353
  text: string[];
353
354
  };
355
+ /** Default is `'error'`, it will return `400` response when `Prototype-Poisoning` happen. */
356
+ onProtoPoisoning: 'error' | 'remove' | 'ignore';
354
357
  };
355
358
 
356
359
  /**
@@ -529,7 +532,7 @@ declare module 'egg' {
529
532
  onClientError(err: Error, socket: Socket, app: EggApplication): ClientErrorResponse | Promise<ClientErrorResponse>;
530
533
 
531
534
  /**
532
- * server timeout in milliseconds, default to 2 minutes.
535
+ * server timeout in milliseconds, default to 0 (no timeout).
533
536
  *
534
537
  * for special request, just use `ctx.req.setTimeout(ms)`
535
538
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egg",
3
- "version": "3.23.0",
3
+ "version": "3.24.1",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },