@nest-omni/core 2.0.1-6 → 2.0.1-8
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.
|
@@ -15,7 +15,7 @@ function getOmniAuthData(request, key) {
|
|
|
15
15
|
let user;
|
|
16
16
|
const configService = new config_1.ConfigService(request);
|
|
17
17
|
if ((0, lodash_1.isEmpty)(headers['x-user-id']) && (0, lodash_1.isEmpty)(headers['x-app-id'])) {
|
|
18
|
-
if (process.env.NODE_ENV === 'dev') {
|
|
18
|
+
if (process.env.NODE_ENV === 'dev' || process.env.MOCK_ENABLED === 'true') {
|
|
19
19
|
user = {
|
|
20
20
|
uid: configService.get('MOCK_UID'),
|
|
21
21
|
username: configService.get('MOCK_USERNAME'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nest-omni/core",
|
|
3
|
-
"version": "2.0.1-
|
|
3
|
+
"version": "2.0.1-8",
|
|
4
4
|
"description": "framework",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -34,8 +34,6 @@
|
|
|
34
34
|
"@nestjs/schedule": "^3.0.3",
|
|
35
35
|
"@nestjs/swagger": "^7.1.11",
|
|
36
36
|
"@nestjs/terminus": "^10.1.1",
|
|
37
|
-
"@sentry/nestjs": "^10.10.0",
|
|
38
|
-
"@sentry/profiling-node": "^10.10.0",
|
|
39
37
|
"@nestjs/typeorm": "^10.0.0",
|
|
40
38
|
"axios": "^1.5.0",
|
|
41
39
|
"axios-retry": "^3.7.0",
|
|
@@ -68,6 +66,8 @@
|
|
|
68
66
|
"dependencies": {
|
|
69
67
|
"hygen": "^6.2.11",
|
|
70
68
|
"nestjs-cls": "^4.3.0",
|
|
71
|
-
"compression": "^1.8.0"
|
|
69
|
+
"compression": "^1.8.0",
|
|
70
|
+
"@sentry/nestjs": "^10.10.0",
|
|
71
|
+
"@sentry/profiling-node": "^10.10.0"
|
|
72
72
|
}
|
|
73
73
|
}
|
package/setup/bootstrap.setup.js
CHANGED
|
@@ -27,7 +27,6 @@ function findValidRootPath() {
|
|
|
27
27
|
return process.cwd();
|
|
28
28
|
};
|
|
29
29
|
const possibleRootPaths = [getAppRootPath(), process.cwd(), __dirname];
|
|
30
|
-
console.log('possibleRootPaths', possibleRootPaths);
|
|
31
30
|
const envFile = `${process.env.NODE_ENV || ''}.env`;
|
|
32
31
|
const isTest = process.env.NODE_ENV === 'test';
|
|
33
32
|
let envFilePath = '';
|