@naturalcycles/backend-lib 9.27.0 → 9.29.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.
|
@@ -57,7 +57,7 @@ const inspectOpt = {
|
|
|
57
57
|
* Fails after maxTries.
|
|
58
58
|
*/
|
|
59
59
|
export async function deployHealthCheck(url, opt = {}) {
|
|
60
|
-
const { thresholdHealthy = 5, thresholdUnhealthy = 8, maxTries = 30, timeoutSec = 30, intervalSec = 1, logOnFailure
|
|
60
|
+
const { thresholdHealthy = 5, thresholdUnhealthy = 8, maxTries = 30, timeoutSec = 30, intervalSec = 1, logOnFailure, logOnSuccess, gaeProject, gaeService, gaeVersion, } = opt;
|
|
61
61
|
let attempt = 0;
|
|
62
62
|
let countHealthy = 0;
|
|
63
63
|
let countUnhealthy = 0;
|
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.29.0",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@sentry/node": "^10"
|
|
7
7
|
},
|
|
@@ -29,11 +29,10 @@
|
|
|
29
29
|
"@sentry/node": "^10",
|
|
30
30
|
"@types/ejs": "^3",
|
|
31
31
|
"fastify": "^5",
|
|
32
|
-
"@naturalcycles/dev-lib": "
|
|
32
|
+
"@naturalcycles/dev-lib": "19.33.0"
|
|
33
33
|
},
|
|
34
34
|
"exports": {
|
|
35
35
|
".": "./dist/index.js",
|
|
36
|
-
"./cfg/tsconfig.json": "./cfg/tsconfig.json",
|
|
37
36
|
"./admin": "./dist/admin/index.js",
|
|
38
37
|
"./admin/*.js": "./dist/admin/*.js",
|
|
39
38
|
"./db": "./dist/db/index.js",
|
package/cfg/tsconfig.json
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// @naturalcycles/backend-lib/cfg/tsconfig.json
|
|
3
|
-
//
|
|
4
|
-
// Shared tsconfig for Backend services
|
|
5
|
-
//
|
|
6
|
-
{
|
|
7
|
-
"compilerOptions": {
|
|
8
|
-
// Target/module
|
|
9
|
-
"target": "es2023",
|
|
10
|
-
"lib": ["esnext"], // add "dom" if needed
|
|
11
|
-
// module `nodenext` is a modern mode that auto-detects cjs/esm
|
|
12
|
-
// it also defaults `esModuleInterop` and `allowSyntheticDefaultImports` to true
|
|
13
|
-
"module": "nodenext",
|
|
14
|
-
"moduleResolution": "nodenext",
|
|
15
|
-
"moduleDetection": "force",
|
|
16
|
-
// specifying these explicitly for better IDE compatibility (but they're on by default with module=nodenext)
|
|
17
|
-
"esModuleInterop": true,
|
|
18
|
-
"allowSyntheticDefaultImports": true,
|
|
19
|
-
"verbatimModuleSyntax": true,
|
|
20
|
-
// Faster compilation in general
|
|
21
|
-
// Support for external compilers (e.g esbuild)
|
|
22
|
-
// Speedup in Jest by using "isolatedModules" in 'ts-jest' config
|
|
23
|
-
"isolatedModules": true,
|
|
24
|
-
|
|
25
|
-
// Emit
|
|
26
|
-
"sourceMap": false,
|
|
27
|
-
"declaration": false,
|
|
28
|
-
// Otherwise since es2022 it defaults to true
|
|
29
|
-
// and starts to produce different/unexpected behavior
|
|
30
|
-
// https://angular.schule/blog/2022-11-use-define-for-class-fields
|
|
31
|
-
"useDefineForClassFields": true,
|
|
32
|
-
"importHelpers": true,
|
|
33
|
-
|
|
34
|
-
// Strictness
|
|
35
|
-
"strict": true,
|
|
36
|
-
"noFallthroughCasesInSwitch": true,
|
|
37
|
-
"forceConsistentCasingInFileNames": true,
|
|
38
|
-
"resolveJsonModule": true,
|
|
39
|
-
"suppressImplicitAnyIndexErrors": false,
|
|
40
|
-
"noImplicitOverride": true,
|
|
41
|
-
"noUncheckedIndexedAccess": true,
|
|
42
|
-
"noUncheckedSideEffectImports": true,
|
|
43
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
44
|
-
|
|
45
|
-
// Enabled should be faster, but will catch less errors
|
|
46
|
-
// "skipLibCheck": true,
|
|
47
|
-
|
|
48
|
-
// Disabled because of https://github.com/Microsoft/TypeScript/issues/29172
|
|
49
|
-
// Need to be specified in the project tsconfig
|
|
50
|
-
// "outDir": "dist",
|
|
51
|
-
// "rootDir": "./src",
|
|
52
|
-
// "baseUrl": "./",
|
|
53
|
-
// "paths": {
|
|
54
|
-
// "@src/*": ["src/*"]
|
|
55
|
-
// },
|
|
56
|
-
// "typeRoots": [
|
|
57
|
-
// "node_modules/@types",
|
|
58
|
-
// "src/@types"
|
|
59
|
-
// ],
|
|
60
|
-
|
|
61
|
-
// Other
|
|
62
|
-
"incremental": true,
|
|
63
|
-
"tsBuildInfoFile": "${configDir}/node_modules/.cache/src.tsbuildinfo",
|
|
64
|
-
"pretty": true,
|
|
65
|
-
"newLine": "lf",
|
|
66
|
-
"experimentalDecorators": true
|
|
67
|
-
}
|
|
68
|
-
// Need to be specified in the project tsconfig
|
|
69
|
-
// "include": ["src"],
|
|
70
|
-
// "exclude": ["**/__exclude"]
|
|
71
|
-
}
|