@naturalcycles/backend-lib 5.11.0 → 5.13.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/dist/deploy/deploy.util.js +1 -1
- package/dist/server/serverStatusMiddleware.js +0 -1
- package/dist/server/validation/validateRequest.d.ts +2 -0
- package/package.json +1 -1
- package/src/deploy/deploy.util.ts +1 -1
- package/src/server/serverStatusMiddleware.ts +0 -1
- package/src/server/validation/validateRequest.ts +2 -0
|
@@ -8,7 +8,7 @@ exports.validateGAEServiceName = validateGAEServiceName;
|
|
|
8
8
|
const js_lib_1 = require("@naturalcycles/js-lib");
|
|
9
9
|
const nodejs_lib_1 = require("@naturalcycles/nodejs-lib");
|
|
10
10
|
const APP_YAML_DEFAULT = () => ({
|
|
11
|
-
runtime: '
|
|
11
|
+
runtime: 'nodejs22',
|
|
12
12
|
service: 'default',
|
|
13
13
|
inbound_services: ['warmup'],
|
|
14
14
|
instance_class: 'F1',
|
|
@@ -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
|
@@ -4,7 +4,7 @@ import { BackendCfg } from './backend.cfg.util'
|
|
|
4
4
|
import { AppYaml, DeployInfo } from './deploy.model'
|
|
5
5
|
|
|
6
6
|
const APP_YAML_DEFAULT = (): AppYaml => ({
|
|
7
|
-
runtime: '
|
|
7
|
+
runtime: 'nodejs22',
|
|
8
8
|
service: 'default',
|
|
9
9
|
inbound_services: ['warmup'],
|
|
10
10
|
instance_class: 'F1',
|
|
@@ -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
|
}
|