@lark-apaas/fullstack-nestjs-core 1.1.24-alpha.24 → 1.1.24-alpha.26
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/README.md +39 -0
- package/dist/index.cjs +154 -639
- package/dist/index.d.cts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +129 -615
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -158,6 +158,20 @@ declare class ViewContextMiddleware implements NestMiddleware {
|
|
|
158
158
|
use(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
/**
|
|
162
|
+
* 旧路径兼容重定向中间件
|
|
163
|
+
*
|
|
164
|
+
* 当 CLIENT_BASE_PATH 切换到新的 /app/:appId 格式后,
|
|
165
|
+
* 将旧路径的页面请求重定向到新路径,实现平滑过渡:
|
|
166
|
+
* 预览态:/af/p/:appId/... → /app/:appId/...
|
|
167
|
+
* 运行态:/spark/faas/:appId/... → /app/:appId/...
|
|
168
|
+
*
|
|
169
|
+
* 依赖 UserContextMiddleware 已在前置链中填充 req.userContext。
|
|
170
|
+
*/
|
|
171
|
+
declare class LegacyPathRedirectMiddleware implements NestMiddleware {
|
|
172
|
+
use(req: Request, res: Response, next: NextFunction): void;
|
|
173
|
+
}
|
|
174
|
+
|
|
161
175
|
/**
|
|
162
176
|
* API 404 响应格式
|
|
163
177
|
*/
|
|
@@ -338,4 +352,4 @@ declare class PlatformHttpClientService {
|
|
|
338
352
|
private registerInterceptorsForClient;
|
|
339
353
|
}
|
|
340
354
|
|
|
341
|
-
export { type ApiNotFoundResponse, CsrfMiddleware, CsrfTokenMiddleware, FileService, type PlatformHttpClientOptions, PlatformHttpClientService, PlatformModule, type PlatformModuleOptions, StaticModule, UserContextMiddleware, ViewContextMiddleware, configureApp };
|
|
355
|
+
export { type ApiNotFoundResponse, CsrfMiddleware, CsrfTokenMiddleware, FileService, LegacyPathRedirectMiddleware, type PlatformHttpClientOptions, PlatformHttpClientService, PlatformModule, type PlatformModuleOptions, StaticModule, UserContextMiddleware, ViewContextMiddleware, configureApp };
|
package/dist/index.d.ts
CHANGED
|
@@ -158,6 +158,20 @@ declare class ViewContextMiddleware implements NestMiddleware {
|
|
|
158
158
|
use(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
/**
|
|
162
|
+
* 旧路径兼容重定向中间件
|
|
163
|
+
*
|
|
164
|
+
* 当 CLIENT_BASE_PATH 切换到新的 /app/:appId 格式后,
|
|
165
|
+
* 将旧路径的页面请求重定向到新路径,实现平滑过渡:
|
|
166
|
+
* 预览态:/af/p/:appId/... → /app/:appId/...
|
|
167
|
+
* 运行态:/spark/faas/:appId/... → /app/:appId/...
|
|
168
|
+
*
|
|
169
|
+
* 依赖 UserContextMiddleware 已在前置链中填充 req.userContext。
|
|
170
|
+
*/
|
|
171
|
+
declare class LegacyPathRedirectMiddleware implements NestMiddleware {
|
|
172
|
+
use(req: Request, res: Response, next: NextFunction): void;
|
|
173
|
+
}
|
|
174
|
+
|
|
161
175
|
/**
|
|
162
176
|
* API 404 响应格式
|
|
163
177
|
*/
|
|
@@ -338,4 +352,4 @@ declare class PlatformHttpClientService {
|
|
|
338
352
|
private registerInterceptorsForClient;
|
|
339
353
|
}
|
|
340
354
|
|
|
341
|
-
export { type ApiNotFoundResponse, CsrfMiddleware, CsrfTokenMiddleware, FileService, type PlatformHttpClientOptions, PlatformHttpClientService, PlatformModule, type PlatformModuleOptions, StaticModule, UserContextMiddleware, ViewContextMiddleware, configureApp };
|
|
355
|
+
export { type ApiNotFoundResponse, CsrfMiddleware, CsrfTokenMiddleware, FileService, LegacyPathRedirectMiddleware, type PlatformHttpClientOptions, PlatformHttpClientService, PlatformModule, type PlatformModuleOptions, StaticModule, UserContextMiddleware, ViewContextMiddleware, configureApp };
|