@naturalcycles/backend-lib 5.11.0 → 5.12.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.
@@ -30,7 +30,6 @@ function getServerStatusData(projectDir = process.cwd(), extra) {
30
30
  // resourceUsage: process.resourceUsage?.(),
31
31
  versions,
32
32
  NODE_OPTIONS,
33
- fetch: typeof globalThis.fetch === 'function',
34
33
  ...extra,
35
34
  });
36
35
  }
@@ -13,6 +13,8 @@ export interface ReqValidationOptions<ERR extends Error> {
13
13
  report?: boolean | ((err: ERR) => boolean);
14
14
  /**
15
15
  * When set to true, the validated object will not be replaced with the Joi-converted value.
16
+ *
17
+ * The general default is `false`, with the excepction of `headers` validation, where the default is `true`.
16
18
  */
17
19
  keepOriginal?: boolean;
18
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/backend-lib",
3
- "version": "5.11.0",
3
+ "version": "5.12.0",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "build": "dev-lib build",
@@ -34,7 +34,6 @@ export function getServerStatusData(
34
34
  // resourceUsage: process.resourceUsage?.(),
35
35
  versions,
36
36
  NODE_OPTIONS,
37
- fetch: typeof globalThis.fetch === 'function',
38
37
  ...extra,
39
38
  })
40
39
  }
@@ -19,6 +19,8 @@ export interface ReqValidationOptions<ERR extends Error> {
19
19
 
20
20
  /**
21
21
  * When set to true, the validated object will not be replaced with the Joi-converted value.
22
+ *
23
+ * The general default is `false`, with the excepction of `headers` validation, where the default is `true`.
22
24
  */
23
25
  keepOriginal?: boolean
24
26
  }