@lark-apaas/fullstack-nestjs-core 1.1.50-alpha.12 → 1.1.50-alpha.14
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 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -34651,7 +34651,7 @@ 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 || ""}
|
|
34654
|
+
const basename = safeEscape(req.headers["x-miaoda-custom-host"] !== void 0 ? "/" : `/app/${appId || ""}`);
|
|
34655
34655
|
const appPublishedData = await this.getAppPublished(appId);
|
|
34656
34656
|
const appInfo = appPublishedData?.app_info ?? null;
|
|
34657
34657
|
req.__platform_data__ = {
|
package/dist/index.js
CHANGED
|
@@ -34624,7 +34624,7 @@ 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 || ""}
|
|
34627
|
+
const basename = safeEscape(req.headers["x-miaoda-custom-host"] !== void 0 ? "/" : `/app/${appId || ""}`);
|
|
34628
34628
|
const appPublishedData = await this.getAppPublished(appId);
|
|
34629
34629
|
const appInfo = appPublishedData?.app_info ?? null;
|
|
34630
34630
|
req.__platform_data__ = {
|