@naturalcycles/backend-lib 9.19.0 → 9.20.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.
@@ -3,7 +3,7 @@ import { _filterNullishValues } from '@naturalcycles/js-lib/object/object.util.j
3
3
  import { memoryUsageFull, processSharedUtil } from '@naturalcycles/nodejs-lib';
4
4
  import { getDeployInfo } from '../deploy/deployInfo.util.js';
5
5
  const { versions, arch, platform } = process;
6
- const { GAE_APPLICATION, GAE_SERVICE, GAE_VERSION, GOOGLE_CLOUD_PROJECT, K_SERVICE, K_REVISION, APP_ENV, NODE_OPTIONS, DEPLOY_BUILD_TIME, } = process.env;
6
+ const { GAE_APPLICATION, GAE_SERVICE, GAE_VERSION, GOOGLE_CLOUD_PROJECT, K_SERVICE, K_REVISION, APP_ENV, NODE_OPTIONS, DEPLOY_BUILD_TIME, BUILD_VERSION, } = process.env;
7
7
  export function serverStatusMiddleware(projectDir, extra) {
8
8
  return async (_req, res) => {
9
9
  res.json(getServerStatusData(projectDir, extra));
@@ -16,6 +16,7 @@ export function getServerStatusData(projectDir = process.cwd(), extra) {
16
16
  return _filterNullishValues({
17
17
  nodeProcessStarted: getStartedStr(),
18
18
  deployBuildTime,
19
+ BUILD_VERSION,
19
20
  APP_ENV,
20
21
  GOOGLE_CLOUD_PROJECT,
21
22
  GAE_APPLICATION,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/backend-lib",
3
3
  "type": "module",
4
- "version": "9.19.0",
4
+ "version": "9.20.0",
5
5
  "peerDependencies": {
6
6
  "@sentry/node": "^9"
7
7
  },
@@ -15,6 +15,7 @@ const {
15
15
  APP_ENV,
16
16
  NODE_OPTIONS,
17
17
  DEPLOY_BUILD_TIME,
18
+ BUILD_VERSION,
18
19
  } = process.env
19
20
 
20
21
  export function serverStatusMiddleware(projectDir?: string, extra?: any): BackendRequestHandler {
@@ -34,6 +35,7 @@ export function getServerStatusData(
34
35
  return _filterNullishValues({
35
36
  nodeProcessStarted: getStartedStr(),
36
37
  deployBuildTime,
38
+ BUILD_VERSION,
37
39
  APP_ENV,
38
40
  GOOGLE_CLOUD_PROJECT,
39
41
  GAE_APPLICATION,