@faapi/faapi 1.1.1-canary.0 → 1.2.0
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/cli/index.js +3601 -3432
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.js +1937 -1453
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -359,9 +359,11 @@ interface RouteRecord {
|
|
|
359
359
|
isDynamic: boolean;
|
|
360
360
|
/** 是否为 catch-all 路由([...slug]) */
|
|
361
361
|
isCatchAll?: boolean;
|
|
362
|
-
/**
|
|
362
|
+
/** 中间件文件绝对路径列表(根在前,路由目录在后;按需加载用) */
|
|
363
|
+
middlewarePaths?: string[];
|
|
364
|
+
/** 路由对应的中间件集合(从根到路由目录合并,按需加载后缓存) */
|
|
363
365
|
middlewares?: FaapiMiddleware[];
|
|
364
|
-
/**
|
|
366
|
+
/** 路由对应的注入器映射表(从根到路由目录合并,按需加载后缓存) */
|
|
365
367
|
injectors?: InjectorMap;
|
|
366
368
|
}
|
|
367
369
|
/**
|
|
@@ -377,7 +379,9 @@ interface WsRouteRecord {
|
|
|
377
379
|
isDynamic: boolean;
|
|
378
380
|
/** 是否为 catch-all 路由([...slug]) */
|
|
379
381
|
isCatchAll?: boolean;
|
|
380
|
-
/**
|
|
382
|
+
/** 中间件文件绝对路径列表(根在前,路由目录在后;按需加载用) */
|
|
383
|
+
middlewarePaths?: string[];
|
|
384
|
+
/** 路由对应的中间件集合(握手阶段执行,复用鉴权/CORS/日志;按需加载后缓存) */
|
|
381
385
|
middlewares?: FaapiMiddleware[];
|
|
382
386
|
/** 路由对应的注入器映射表 */
|
|
383
387
|
injectors?: InjectorMap;
|