@stacksjs/router 0.56.35 → 0.57.3
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.d.ts +3 -6
- package/dist/index.mjs +2 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { HttpMethod, RouteCallback, RouteGroupOptions } from '@stacksjs/types';
|
|
2
|
-
|
|
3
|
-
declare class Router {
|
|
1
|
+
import type { HttpMethod, RouteCallback, RouteGroupOptions } from '@stacksjs/types';
|
|
2
|
+
export declare class Router {
|
|
4
3
|
private routes;
|
|
5
4
|
addRoute(method: HttpMethod, url: string, callback: RouteCallback): void;
|
|
6
5
|
group(options: RouteGroupOptions, callback: () => void): void;
|
|
@@ -16,6 +15,4 @@ declare class Router {
|
|
|
16
15
|
private extractParams;
|
|
17
16
|
private getMiddleware;
|
|
18
17
|
}
|
|
19
|
-
declare const route: Router;
|
|
20
|
-
|
|
21
|
-
export { Router, route };
|
|
18
|
+
export declare const route: Router;
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/router",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@8.6.
|
|
4
|
+
"version": "0.57.3",
|
|
5
|
+
"packageManager": "pnpm@8.6.6",
|
|
6
6
|
"description": "The Stacks framework router.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"vue-router": "^4.2.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@stacksjs/development": "0.
|
|
45
|
+
"@stacksjs/development": "0.57.3"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "unbuild",
|