@lark-apaas/fullstack-nestjs-core 1.1.11 → 1.1.12-alpha.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.
- package/dist/index.cjs +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -859,6 +859,7 @@ async function configureApp(app, perms = defaultPerms) {
|
|
|
859
859
|
app.use((0, import_cookie_parser.default)());
|
|
860
860
|
const globalPrefix = process.env.CLIENT_BASE_PATH ?? "";
|
|
861
861
|
app.setGlobalPrefix(globalPrefix);
|
|
862
|
+
app.set("trust proxy", true);
|
|
862
863
|
if (process.env.NODE_ENV !== "production" && perms.disableSwagger !== true) {
|
|
863
864
|
try {
|
|
864
865
|
await import_nestjs_openapi_devtools.DevToolsV2Module.mount(app, {
|
package/dist/index.js
CHANGED
|
@@ -817,6 +817,7 @@ async function configureApp(app, perms = defaultPerms) {
|
|
|
817
817
|
app.use(cookieParser());
|
|
818
818
|
const globalPrefix = process.env.CLIENT_BASE_PATH ?? "";
|
|
819
819
|
app.setGlobalPrefix(globalPrefix);
|
|
820
|
+
app.set("trust proxy", true);
|
|
820
821
|
if (process.env.NODE_ENV !== "production" && perms.disableSwagger !== true) {
|
|
821
822
|
try {
|
|
822
823
|
await DevToolsV2Module.mount(app, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/fullstack-nestjs-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12-alpha.1",
|
|
4
4
|
"description": "FullStack Nestjs Core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@lark-apaas/http-client": "0.1.2",
|
|
43
43
|
"@lark-apaas/nestjs-authnpaas": "^1.0.2",
|
|
44
44
|
"@lark-apaas/nestjs-common": "^0.1.0",
|
|
45
|
-
"@lark-apaas/nestjs-datapaas": "^1.0.
|
|
45
|
+
"@lark-apaas/nestjs-datapaas": "^1.0.6",
|
|
46
46
|
"@lark-apaas/nestjs-logger": "^1.0.4",
|
|
47
47
|
"@lark-apaas/nestjs-observable": "^0.0.1",
|
|
48
48
|
"@lark-apaas/nestjs-openapi-devtools": "^1.0.9",
|