@lark-apaas/fullstack-nestjs-core 1.1.50-alpha.4 → 1.1.50-alpha.6
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 +4 -7
- package/dist/index.d.cts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +4 -7
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -34553,7 +34553,7 @@ CsrfMiddleware = _ts_decorate2([
|
|
|
34553
34553
|
(0, import_common2.Injectable)()
|
|
34554
34554
|
], CsrfMiddleware);
|
|
34555
34555
|
|
|
34556
|
-
// src/middlewares/view-context/
|
|
34556
|
+
// src/middlewares/view-context/index.ts
|
|
34557
34557
|
var import_common3 = require("@nestjs/common");
|
|
34558
34558
|
var import_nestjs_common = require("@lark-apaas/nestjs-common");
|
|
34559
34559
|
|
|
@@ -34600,7 +34600,7 @@ function safeEscape(s) {
|
|
|
34600
34600
|
}
|
|
34601
34601
|
__name(safeEscape, "safeEscape");
|
|
34602
34602
|
|
|
34603
|
-
// src/middlewares/view-context/
|
|
34603
|
+
// src/middlewares/view-context/index.ts
|
|
34604
34604
|
function _ts_decorate3(decorators, target, key, desc) {
|
|
34605
34605
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
34606
34606
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -34651,7 +34651,6 @@ var ViewContextMiddleware = class _ViewContextMiddleware {
|
|
|
34651
34651
|
const { userId, tenantId, appId, loginUrl, userType } = req.userContext;
|
|
34652
34652
|
const csrfToken = req.csrfToken;
|
|
34653
34653
|
const environment = mapToWindowEnvironment(process.env.FORCE_FRAMEWORK_ENVIRONMENT);
|
|
34654
|
-
const basename = req.headers["x-miaoda-custom-host"] ? "/" : `/app/${appId || ""}`;
|
|
34655
34654
|
const appPublishedData = await this.getAppPublished(appId);
|
|
34656
34655
|
const appInfo = appPublishedData?.app_info ?? null;
|
|
34657
34656
|
req.__platform_data__ = {
|
|
@@ -34666,8 +34665,7 @@ var ViewContextMiddleware = class _ViewContextMiddleware {
|
|
|
34666
34665
|
tenantId,
|
|
34667
34666
|
environment,
|
|
34668
34667
|
showBadge: appInfo?.show_badge !== false,
|
|
34669
|
-
appPublished: appPublishedData ?? null
|
|
34670
|
-
basename
|
|
34668
|
+
appPublished: appPublishedData ?? null
|
|
34671
34669
|
};
|
|
34672
34670
|
res.locals = {
|
|
34673
34671
|
...res.locals ?? {},
|
|
@@ -34680,8 +34678,7 @@ var ViewContextMiddleware = class _ViewContextMiddleware {
|
|
|
34680
34678
|
appName: safeEscape(appInfo?.app_name ?? "\u5999\u642D\u5E94\u7528"),
|
|
34681
34679
|
appAvatar: appInfo?.app_avatar ?? "",
|
|
34682
34680
|
appDescription: safeEscape(appInfo?.app_description ?? ""),
|
|
34683
|
-
environment
|
|
34684
|
-
basename
|
|
34681
|
+
environment
|
|
34685
34682
|
};
|
|
34686
34683
|
next();
|
|
34687
34684
|
}
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -34526,7 +34526,7 @@ CsrfMiddleware = _ts_decorate2([
|
|
|
34526
34526
|
Injectable2()
|
|
34527
34527
|
], CsrfMiddleware);
|
|
34528
34528
|
|
|
34529
|
-
// src/middlewares/view-context/
|
|
34529
|
+
// src/middlewares/view-context/index.ts
|
|
34530
34530
|
import { Inject, Injectable as Injectable3, Logger } from "@nestjs/common";
|
|
34531
34531
|
import { PLATFORM_HTTP_CLIENT } from "@lark-apaas/nestjs-common";
|
|
34532
34532
|
|
|
@@ -34573,7 +34573,7 @@ function safeEscape(s) {
|
|
|
34573
34573
|
}
|
|
34574
34574
|
__name(safeEscape, "safeEscape");
|
|
34575
34575
|
|
|
34576
|
-
// src/middlewares/view-context/
|
|
34576
|
+
// src/middlewares/view-context/index.ts
|
|
34577
34577
|
function _ts_decorate3(decorators, target, key, desc) {
|
|
34578
34578
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
34579
34579
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -34624,7 +34624,6 @@ var ViewContextMiddleware = class _ViewContextMiddleware {
|
|
|
34624
34624
|
const { userId, tenantId, appId, loginUrl, userType } = req.userContext;
|
|
34625
34625
|
const csrfToken = req.csrfToken;
|
|
34626
34626
|
const environment = mapToWindowEnvironment(process.env.FORCE_FRAMEWORK_ENVIRONMENT);
|
|
34627
|
-
const basename = req.headers["x-miaoda-custom-host"] ? "/" : `/app/${appId || ""}`;
|
|
34628
34627
|
const appPublishedData = await this.getAppPublished(appId);
|
|
34629
34628
|
const appInfo = appPublishedData?.app_info ?? null;
|
|
34630
34629
|
req.__platform_data__ = {
|
|
@@ -34639,8 +34638,7 @@ var ViewContextMiddleware = class _ViewContextMiddleware {
|
|
|
34639
34638
|
tenantId,
|
|
34640
34639
|
environment,
|
|
34641
34640
|
showBadge: appInfo?.show_badge !== false,
|
|
34642
|
-
appPublished: appPublishedData ?? null
|
|
34643
|
-
basename
|
|
34641
|
+
appPublished: appPublishedData ?? null
|
|
34644
34642
|
};
|
|
34645
34643
|
res.locals = {
|
|
34646
34644
|
...res.locals ?? {},
|
|
@@ -34653,8 +34651,7 @@ var ViewContextMiddleware = class _ViewContextMiddleware {
|
|
|
34653
34651
|
appName: safeEscape(appInfo?.app_name ?? "\u5999\u642D\u5E94\u7528"),
|
|
34654
34652
|
appAvatar: appInfo?.app_avatar ?? "",
|
|
34655
34653
|
appDescription: safeEscape(appInfo?.app_description ?? ""),
|
|
34656
|
-
environment
|
|
34657
|
-
basename
|
|
34654
|
+
environment
|
|
34658
34655
|
};
|
|
34659
34656
|
next();
|
|
34660
34657
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/fullstack-nestjs-core",
|
|
3
|
-
"version": "1.1.50-alpha.
|
|
3
|
+
"version": "1.1.50-alpha.6",
|
|
4
4
|
"description": "FullStack Nestjs Core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@lark-apaas/file-service": "^0.1.2",
|
|
43
43
|
"@lark-apaas/http-client": "^0.1.6",
|
|
44
|
-
"@lark-apaas/nestjs-authnpaas": "
|
|
45
|
-
"@lark-apaas/nestjs-authzpaas": "
|
|
46
|
-
"@lark-apaas/nestjs-capability": "
|
|
47
|
-
"@lark-apaas/nestjs-common": "
|
|
48
|
-
"@lark-apaas/nestjs-datapaas": "
|
|
49
|
-
"@lark-apaas/nestjs-logger": "
|
|
50
|
-
"@lark-apaas/nestjs-observable": "
|
|
44
|
+
"@lark-apaas/nestjs-authnpaas": "1.0.4-alpha.0",
|
|
45
|
+
"@lark-apaas/nestjs-authzpaas": "0.1.9-alpha.0",
|
|
46
|
+
"@lark-apaas/nestjs-capability": "0.1.14-alpha.0",
|
|
47
|
+
"@lark-apaas/nestjs-common": "0.1.9-alpha.0",
|
|
48
|
+
"@lark-apaas/nestjs-datapaas": "1.0.21-alpha.0",
|
|
49
|
+
"@lark-apaas/nestjs-logger": "1.0.17-alpha.0",
|
|
50
|
+
"@lark-apaas/nestjs-observable": "0.0.12-alpha.0",
|
|
51
51
|
"@lark-apaas/nestjs-openapi-devtools": "^1.0.10",
|
|
52
52
|
"@lark-apaas/nestjs-trigger": "^0.0.3",
|
|
53
53
|
"@nestjs/axios": "^4.0.1",
|