@naturalcycles/backend-lib 4.17.5 → 4.17.7

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.
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import 'loud-rejection/register';
2
+ export {};
@@ -2,7 +2,6 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const script_1 = require("@naturalcycles/nodejs-lib/dist/script");
5
- require("loud-rejection/register");
6
5
  const yargs = require("yargs");
7
6
  const deployGae_1 = require("../deploy/deployGae");
8
7
  const deployHealthCheck_1 = require("../deploy/deployHealthCheck");
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import 'loud-rejection/register';
2
+ export {};
@@ -10,7 +10,6 @@ yarn deploy-health-check --url https://service-dot-yourproject.appspot.com
10
10
  */
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const script_1 = require("@naturalcycles/nodejs-lib/dist/script");
13
- require("loud-rejection/register");
14
13
  const yargs = require("yargs");
15
14
  const deployHealthCheck_1 = require("../deploy/deployHealthCheck");
16
15
  (0, script_1.runScript)(async () => {
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import 'loud-rejection/register';
2
+ export {};
@@ -7,7 +7,6 @@ yarn deploy-prepare
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  const script_1 = require("@naturalcycles/nodejs-lib/dist/script");
10
- require("loud-rejection/register");
11
10
  const yargs = require("yargs");
12
11
  const deployPrepare_1 = require("../deploy/deployPrepare");
13
12
  (0, script_1.runScript)(async () => {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.respondWithError = exports.genericErrorMiddleware = void 0;
4
4
  const js_lib_1 = require("@naturalcycles/js-lib");
5
5
  const { APP_ENV } = process.env;
6
- const includeErrorStack = APP_ENV !== 'prod' && APP_ENV !== 'test';
6
+ const includeErrorStack = APP_ENV === 'dev';
7
7
  // Hacky way to store the sentryService, so it's available to `respondWithError` function
8
8
  let sentryService;
9
9
  let reportOnly5xx = false;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@naturalcycles/backend-lib",
3
- "version": "4.17.5",
3
+ "version": "4.17.7",
4
4
  "scripts": {
5
- "prepare": "husky install && patch-package",
5
+ "prepare": "husky install",
6
6
  "serve": "APP_ENV=dev nodemon",
7
7
  "docs-serve": "NODE_OPTIONS=--openssl-legacy-provider vuepress dev docs",
8
8
  "docs-build": "NODE_OPTIONS=--openssl-legacy-provider vuepress build docs",
@@ -48,7 +48,6 @@
48
48
  "fastify": "^4.0.0",
49
49
  "jest": "^29.0.1",
50
50
  "nodemon": "^2.0.14",
51
- "patch-package": "^6.2.1",
52
51
  "vue-class-component": "^7.2.6",
53
52
  "vuepress": "^1.7.1",
54
53
  "vuepress-plugin-typescript": "^0.3.1"
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { runScript } from '@naturalcycles/nodejs-lib/dist/script'
4
- import 'loud-rejection/register'
5
4
  import * as yargs from 'yargs'
6
5
  import { deployGae } from '../deploy/deployGae'
7
6
  import { deployHealthCheckYargsOptions } from '../deploy/deployHealthCheck'
@@ -10,7 +10,6 @@ yarn deploy-health-check --url https://service-dot-yourproject.appspot.com
10
10
  */
11
11
 
12
12
  import { runScript } from '@naturalcycles/nodejs-lib/dist/script'
13
- import 'loud-rejection/register'
14
13
  import * as yargs from 'yargs'
15
14
  import { deployHealthCheck, deployHealthCheckYargsOptions } from '../deploy/deployHealthCheck'
16
15
 
@@ -7,7 +7,6 @@ yarn deploy-prepare
7
7
  */
8
8
 
9
9
  import { runScript } from '@naturalcycles/nodejs-lib/dist/script'
10
- import 'loud-rejection/register'
11
10
  import * as yargs from 'yargs'
12
11
  import { deployPrepare, deployPrepareYargsOptions } from '../deploy/deployPrepare'
13
12
 
@@ -26,7 +26,7 @@ export interface GenericErrorMiddlewareCfg {
26
26
  }
27
27
 
28
28
  const { APP_ENV } = process.env
29
- const includeErrorStack = APP_ENV !== 'prod' && APP_ENV !== 'test'
29
+ const includeErrorStack = APP_ENV === 'dev'
30
30
 
31
31
  // Hacky way to store the sentryService, so it's available to `respondWithError` function
32
32
  let sentryService: SentrySharedService | undefined