@kevisual/router 0.1.0 → 0.1.2
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/app.js +774 -281
- package/dist/commander.d.ts +9 -11
- package/dist/commander.js +562 -15
- package/dist/opencode.d.ts +0 -8
- package/dist/opencode.js +567 -84
- package/dist/router-browser.d.ts +0 -8
- package/dist/router-browser.js +18868 -275
- package/dist/router-define.d.ts +0 -8
- package/dist/router-simple.js +16 -2
- package/dist/router.d.ts +0 -8
- package/dist/router.js +752 -259
- package/dist/ws.d.ts +0 -8
- package/dist/ws.js +49 -24
- package/package.json +13 -8
- package/src/app.ts +1 -1
- package/src/commander.ts +71 -10
- package/src/route.ts +6 -15
- package/src/utils/random.ts +11 -2
package/dist/router-browser.d.ts
CHANGED
|
@@ -188,14 +188,6 @@ type RouteOpts<U = {}, T = SimpleObject$1> = {
|
|
|
188
188
|
metadata?: T;
|
|
189
189
|
middleware?: RouteMiddleware[];
|
|
190
190
|
type?: 'route' | 'middleware' | 'compound';
|
|
191
|
-
/**
|
|
192
|
-
* $#$ will be used to split path and key
|
|
193
|
-
*/
|
|
194
|
-
idUsePath?: boolean;
|
|
195
|
-
/**
|
|
196
|
-
* id 合并的分隔符,默认为 $#$
|
|
197
|
-
*/
|
|
198
|
-
delimiter?: string;
|
|
199
191
|
isDebug?: boolean;
|
|
200
192
|
};
|
|
201
193
|
type DefineRouteOpts = Omit<RouteOpts, 'idUsePath' | 'nextRoute'>;
|