@naturalcycles/backend-lib 9.58.0 → 9.59.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.
|
@@ -138,7 +138,7 @@ export function createAppYaml(backendCfg, deployInfo, projectDir, appYamlPassEnv
|
|
|
138
138
|
function redactedAppYaml(appYaml) {
|
|
139
139
|
return {
|
|
140
140
|
...appYaml,
|
|
141
|
-
env_variables: _mapValues(appYaml.env_variables || {}, (_k, v) => _truncate(
|
|
141
|
+
env_variables: _mapValues(appYaml.env_variables || {}, (_k, v) => _truncate(v, 7)),
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
export function validateGAEServiceName(serviceName) {
|
|
@@ -13,46 +13,46 @@ export interface DeployHealthCheckOptions {
|
|
|
13
13
|
}
|
|
14
14
|
export declare const deployHealthCheckYargsOptions: {
|
|
15
15
|
readonly thresholdHealthy: {
|
|
16
|
-
readonly type:
|
|
16
|
+
readonly type: 'number';
|
|
17
17
|
readonly default: 5;
|
|
18
18
|
};
|
|
19
19
|
readonly thresholdUnhealthy: {
|
|
20
|
-
readonly type:
|
|
20
|
+
readonly type: 'number';
|
|
21
21
|
readonly default: 8;
|
|
22
22
|
};
|
|
23
23
|
readonly maxTries: {
|
|
24
|
-
readonly type:
|
|
24
|
+
readonly type: 'number';
|
|
25
25
|
readonly default: 30;
|
|
26
26
|
};
|
|
27
27
|
readonly timeoutSec: {
|
|
28
|
-
readonly type:
|
|
28
|
+
readonly type: 'number';
|
|
29
29
|
readonly default: 180;
|
|
30
30
|
};
|
|
31
31
|
readonly intervalSec: {
|
|
32
|
-
readonly type:
|
|
32
|
+
readonly type: 'number';
|
|
33
33
|
readonly default: 1;
|
|
34
34
|
};
|
|
35
35
|
readonly logOnFailure: {
|
|
36
|
-
readonly type:
|
|
36
|
+
readonly type: 'boolean';
|
|
37
37
|
readonly default: true;
|
|
38
|
-
readonly desc:
|
|
38
|
+
readonly desc: 'Show server logs on health check failure (requires gaeProject, gaeService, gaeVersion)';
|
|
39
39
|
};
|
|
40
40
|
readonly logOnSuccess: {
|
|
41
|
-
readonly type:
|
|
41
|
+
readonly type: 'boolean';
|
|
42
42
|
readonly default: false;
|
|
43
|
-
readonly desc:
|
|
43
|
+
readonly desc: 'Show server logs on health check success (requires gaeProject, gaeService, gaeVersion)';
|
|
44
44
|
};
|
|
45
45
|
readonly gaeProject: {
|
|
46
|
-
readonly type:
|
|
46
|
+
readonly type: 'string';
|
|
47
47
|
};
|
|
48
48
|
readonly gaeService: {
|
|
49
|
-
readonly type:
|
|
49
|
+
readonly type: 'string';
|
|
50
50
|
};
|
|
51
51
|
readonly gaeVersion: {
|
|
52
|
-
readonly type:
|
|
52
|
+
readonly type: 'string';
|
|
53
53
|
};
|
|
54
54
|
readonly authHeader: {
|
|
55
|
-
readonly type:
|
|
55
|
+
readonly type: 'string';
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
/**
|
|
@@ -11,21 +11,21 @@ export interface DeployPrepareOptions {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const deployPrepareYargsOptions: {
|
|
13
13
|
readonly projectDir: {
|
|
14
|
-
readonly type:
|
|
15
|
-
readonly default:
|
|
14
|
+
readonly type: 'string';
|
|
15
|
+
readonly default: '.';
|
|
16
16
|
};
|
|
17
17
|
readonly targetDir: {
|
|
18
|
-
readonly type:
|
|
19
|
-
readonly default:
|
|
18
|
+
readonly type: 'string';
|
|
19
|
+
readonly default: `./tmp/deploy`;
|
|
20
20
|
};
|
|
21
21
|
readonly createNpmrc: {
|
|
22
|
-
readonly type:
|
|
23
|
-
readonly desc:
|
|
22
|
+
readonly type: 'boolean';
|
|
23
|
+
readonly desc: 'Create .npmrc in targetDir if NPM_TOKEN env var is set';
|
|
24
24
|
readonly default: true;
|
|
25
25
|
};
|
|
26
26
|
readonly appYamlPassEnv: {
|
|
27
|
-
readonly type:
|
|
28
|
-
readonly desc:
|
|
27
|
+
readonly type: 'string';
|
|
28
|
+
readonly desc: 'Comma-separated list of env variables that will be passed to app.yaml from process.env';
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
export declare function deployPrepare(opt?: DeployPrepareOptions): Promise<DeployInfo>;
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export * from './server/request.util.js';
|
|
|
15
15
|
export * from './server/requestLoggerMiddleware.js';
|
|
16
16
|
export * from './server/requestTimeoutMiddleware.js';
|
|
17
17
|
export * from './server/safeJsonMiddleware.js';
|
|
18
|
-
export * from './server/server.model.js';
|
|
18
|
+
export type * from './server/server.model.js';
|
|
19
19
|
export * from './server/serverStatsMiddleware.js';
|
|
20
20
|
export * from './server/serverStatusMiddleware.js';
|
|
21
21
|
export * from './server/simpleRequestLoggerMiddleware.js';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,6 @@ export * from './server/request.util.js';
|
|
|
15
15
|
export * from './server/requestLoggerMiddleware.js';
|
|
16
16
|
export * from './server/requestTimeoutMiddleware.js';
|
|
17
17
|
export * from './server/safeJsonMiddleware.js';
|
|
18
|
-
export * from './server/server.model.js';
|
|
19
18
|
export * from './server/serverStatsMiddleware.js';
|
|
20
19
|
export * from './server/serverStatusMiddleware.js';
|
|
21
20
|
export * from './server/simpleRequestLoggerMiddleware.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/backend-lib",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "9.
|
|
4
|
+
"version": "9.59.1",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@naturalcycles/db-lib": "^10",
|
|
7
7
|
"@naturalcycles/js-lib": "^15",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@sentry/node-core": "^10",
|
|
46
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
46
|
+
"@typescript/native-preview": "7.0.0-dev.20260401.1",
|
|
47
47
|
"fastify": "^5",
|
|
48
48
|
"@naturalcycles/dev-lib": "18.4.2"
|
|
49
49
|
},
|
|
@@ -200,7 +200,7 @@ export function createAppYaml(
|
|
|
200
200
|
function redactedAppYaml(appYaml: AppYaml): AppYaml {
|
|
201
201
|
return {
|
|
202
202
|
...appYaml,
|
|
203
|
-
env_variables: _mapValues(appYaml.env_variables || {}, (_k, v) => _truncate(
|
|
203
|
+
env_variables: _mapValues(appYaml.env_variables || {}, (_k, v) => _truncate(v, 7)),
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
|
package/src/index.ts
CHANGED
|
@@ -15,7 +15,7 @@ export * from './server/request.util.js'
|
|
|
15
15
|
export * from './server/requestLoggerMiddleware.js'
|
|
16
16
|
export * from './server/requestTimeoutMiddleware.js'
|
|
17
17
|
export * from './server/safeJsonMiddleware.js'
|
|
18
|
-
export * from './server/server.model.js'
|
|
18
|
+
export type * from './server/server.model.js'
|
|
19
19
|
export * from './server/serverStatsMiddleware.js'
|
|
20
20
|
export * from './server/serverStatusMiddleware.js'
|
|
21
21
|
export * from './server/simpleRequestLoggerMiddleware.js'
|