clear-router 2.8.6 → 2.8.8
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 +11 -11
- package/dist/ResourceRoutes.cjs +1 -1
- package/dist/ResourceRoutes.d.cts +1 -1
- package/dist/ResourceRoutes.d.mts +1 -1
- package/dist/ResourceRoutes.mjs +1 -1
- package/dist/Route.cjs +1 -1
- package/dist/Route.d.cts +1 -1
- package/dist/Route.d.mts +1 -1
- package/dist/Route.mjs +1 -1
- package/dist/RouteGroup.cjs +1 -1
- package/dist/RouteGroup.d.cts +1 -1
- package/dist/RouteGroup.d.mts +1 -1
- package/dist/RouteGroup.mjs +1 -1
- package/dist/core/CoreRouter.cjs +1 -1
- package/dist/core/CoreRouter.d.cts +1 -1
- package/dist/core/CoreRouter.d.mts +1 -1
- package/dist/core/CoreRouter.mjs +1 -1
- package/dist/decorators/setup.d.mts +1 -0
- package/dist/express/router.cjs +1 -1
- package/dist/express/router.d.cts +1 -1
- package/dist/express/router.d.mts +1 -1
- package/dist/express/router.mjs +1 -1
- package/dist/fastify/router.cjs +1 -1
- package/dist/fastify/router.d.cts +1 -1
- package/dist/fastify/router.d.mts +1 -1
- package/dist/fastify/router.mjs +1 -1
- package/dist/h3/router.cjs +1 -1
- package/dist/h3/router.d.cts +1 -1
- package/dist/h3/router.d.mts +1 -1
- package/dist/h3/router.mjs +1 -1
- package/dist/hono/router.cjs +1 -1
- package/dist/hono/router.d.cts +1 -1
- package/dist/hono/router.d.mts +1 -1
- package/dist/hono/router.mjs +1 -1
- package/dist/koa/router.cjs +1 -1
- package/dist/koa/router.d.cts +1 -1
- package/dist/koa/router.d.mts +1 -1
- package/dist/koa/router.mjs +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/clear-router)
|
|
4
4
|
[](https://www.npmjs.com/package/clear-router)
|
|
5
|
-
[](https://github.com/arkstack-
|
|
6
|
-
[](https://github.com/arkstack-hq/clear-router/blob/main/LICENSE)
|
|
6
|
+
[](https://github.com/arkstack-hq/clear-router/actions/workflows/npm-publish.yml)
|
|
7
|
+
[](https://github.com/arkstack-hq/clear-router/actions/workflows/ci.yml)
|
|
8
8
|
|
|
9
9
|
Laravel-style routing for Node.js with support for Express, H3, Fastify, Hono, and Koa, including CommonJS, ESM, and TypeScript support.
|
|
10
10
|
|
|
@@ -70,27 +70,27 @@ yarn add clear-router express
|
|
|
70
70
|
|
|
71
71
|
### Express JS
|
|
72
72
|
|
|
73
|
-
See the [Express JS documentation](https://arkstack-
|
|
73
|
+
See the [Express JS documentation](https://arkstack-hq.github.io/clear-router/guide/express) for details.
|
|
74
74
|
|
|
75
75
|
### H3
|
|
76
76
|
|
|
77
|
-
See the [H3 documentation](https://arkstack-
|
|
77
|
+
See the [H3 documentation](https://arkstack-hq.github.io/clear-router/guide/h3) for details.
|
|
78
78
|
|
|
79
79
|
### Fastify
|
|
80
80
|
|
|
81
|
-
See the [Fastify documentation](https://arkstack-
|
|
81
|
+
See the [Fastify documentation](https://arkstack-hq.github.io/clear-router/guide/fastify) for details.
|
|
82
82
|
|
|
83
83
|
### Hono
|
|
84
84
|
|
|
85
|
-
See the [Hono documentation](https://arkstack-
|
|
85
|
+
See the [Hono documentation](https://arkstack-hq.github.io/clear-router/guide/hono) for details.
|
|
86
86
|
|
|
87
87
|
### Koa
|
|
88
88
|
|
|
89
|
-
See the [Koa documentation](https://arkstack-
|
|
89
|
+
See the [Koa documentation](https://arkstack-hq.github.io/clear-router/guide/koa) for details.
|
|
90
90
|
|
|
91
91
|
## API Reference
|
|
92
92
|
|
|
93
|
-
See [API.md](https://arkstack-
|
|
93
|
+
See [API.md](https://arkstack-hq.github.io/clear-router/api) for complete API documentation.
|
|
94
94
|
|
|
95
95
|
## Middleware Execution Order
|
|
96
96
|
|
|
@@ -115,7 +115,7 @@ npm run test:esm # Test ESM
|
|
|
115
115
|
npm run test:ts # Test TypeScript
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
See [TESTING.md](https://arkstack-
|
|
118
|
+
See [TESTING.md](https://arkstack-hq.github.io/clear-router/testing) for a detailed testing guide.
|
|
119
119
|
|
|
120
120
|
## Examples
|
|
121
121
|
|
|
@@ -146,4 +146,4 @@ MIT License © 2026 ToneFlix Technologies Limited
|
|
|
146
146
|
|
|
147
147
|
## Repository
|
|
148
148
|
|
|
149
|
-
https://github.com/arkstack-
|
|
149
|
+
https://github.com/arkstack-hq/clear-router
|
package/dist/ResourceRoutes.cjs
CHANGED
|
@@ -7,7 +7,7 @@ require('./core/index.cjs');
|
|
|
7
7
|
* @class clear-router ResourceRoutes
|
|
8
8
|
* @description A ResourceRoutes creates a collection of resourceful routes in a single call
|
|
9
9
|
* @author 3m1n3nc3
|
|
10
|
-
* @repository https://github.com/arkstack-
|
|
10
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
11
11
|
*/
|
|
12
12
|
var ResourceRoutes = class ResourceRoutes {
|
|
13
13
|
static actions = {
|
|
@@ -9,7 +9,7 @@ import { ResourceRouteSelection } from "./ResourceRouteSelection.cjs";
|
|
|
9
9
|
* @class clear-router ResourceRoutes
|
|
10
10
|
* @description A ResourceRoutes creates a collection of resourceful routes in a single call
|
|
11
11
|
* @author 3m1n3nc3
|
|
12
|
-
* @repository https://github.com/arkstack-
|
|
12
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
13
13
|
*/
|
|
14
14
|
declare class ResourceRoutes<X = any, M = Middleware$1 | Middleware, H = any> {
|
|
15
15
|
readonly basePath: string;
|
|
@@ -9,7 +9,7 @@ import { ResourceRouteSelection } from "./ResourceRouteSelection.mjs";
|
|
|
9
9
|
* @class clear-router ResourceRoutes
|
|
10
10
|
* @description A ResourceRoutes creates a collection of resourceful routes in a single call
|
|
11
11
|
* @author 3m1n3nc3
|
|
12
|
-
* @repository https://github.com/arkstack-
|
|
12
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
13
13
|
*/
|
|
14
14
|
declare class ResourceRoutes<X = any, M = Middleware$1 | Middleware, H = any> {
|
|
15
15
|
readonly basePath: string;
|
package/dist/ResourceRoutes.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import "./core/index.mjs";
|
|
|
7
7
|
* @class clear-router ResourceRoutes
|
|
8
8
|
* @description A ResourceRoutes creates a collection of resourceful routes in a single call
|
|
9
9
|
* @author 3m1n3nc3
|
|
10
|
-
* @repository https://github.com/arkstack-
|
|
10
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
11
11
|
*/
|
|
12
12
|
var ResourceRoutes = class ResourceRoutes {
|
|
13
13
|
static actions = {
|
package/dist/Route.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @class clear-router Route
|
|
5
5
|
* @description A route describes a single enpoint on clear-router
|
|
6
6
|
* @author 3m1n3nc3
|
|
7
|
-
* @repository https://github.com/arkstack-
|
|
7
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
8
8
|
*/
|
|
9
9
|
var Route = class {
|
|
10
10
|
ctx;
|
package/dist/Route.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ import { HttpMethod, RequestData } from "./types/basic.cjs";
|
|
|
9
9
|
* @class clear-router Route
|
|
10
10
|
* @description A route describes a single enpoint on clear-router
|
|
11
11
|
* @author 3m1n3nc3
|
|
12
|
-
* @repository https://github.com/arkstack-
|
|
12
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
13
13
|
*/
|
|
14
14
|
declare class Route<X = any, M = Middleware$1 | Middleware, H = any> {
|
|
15
15
|
ctx: X;
|
package/dist/Route.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ import { HttpMethod, RequestData } from "./types/basic.mjs";
|
|
|
9
9
|
* @class clear-router Route
|
|
10
10
|
* @description A route describes a single enpoint on clear-router
|
|
11
11
|
* @author 3m1n3nc3
|
|
12
|
-
* @repository https://github.com/arkstack-
|
|
12
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
13
13
|
*/
|
|
14
14
|
declare class Route<X = any, M = Middleware$1 | Middleware, H = any> {
|
|
15
15
|
ctx: X;
|
package/dist/Route.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @class clear-router Route
|
|
4
4
|
* @description A route describes a single enpoint on clear-router
|
|
5
5
|
* @author 3m1n3nc3
|
|
6
|
-
* @repository https://github.com/arkstack-
|
|
6
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
7
7
|
*/
|
|
8
8
|
var Route = class {
|
|
9
9
|
ctx;
|
package/dist/RouteGroup.cjs
CHANGED
|
@@ -7,7 +7,7 @@ let node_fs_promises = require("node:fs/promises");
|
|
|
7
7
|
* @class clear-router RouteGroup
|
|
8
8
|
* @description A route group describes a collection of routes on clear-router
|
|
9
9
|
* @author 3m1n3nc3
|
|
10
|
-
* @repository https://github.com/arkstack-
|
|
10
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
11
11
|
*/
|
|
12
12
|
var RouteGroup = class {
|
|
13
13
|
checks = [];
|
package/dist/RouteGroup.d.cts
CHANGED
|
@@ -7,7 +7,7 @@ import { RouteGroupCondition, RouteGroupOptions, RouteGroupSource } from "./type
|
|
|
7
7
|
* @class clear-router RouteGroup
|
|
8
8
|
* @description A route group describes a collection of routes on clear-router
|
|
9
9
|
* @author 3m1n3nc3
|
|
10
|
-
* @repository https://github.com/arkstack-
|
|
10
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
11
11
|
*/
|
|
12
12
|
declare class RouteGroup<X = any, M = Middleware$1 | Middleware, H = any, S extends RouteGroupSource = RouteGroupSource> implements PromiseLike<void> {
|
|
13
13
|
private readonly options;
|
package/dist/RouteGroup.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ import { RouteGroupCondition, RouteGroupOptions, RouteGroupSource } from "./type
|
|
|
7
7
|
* @class clear-router RouteGroup
|
|
8
8
|
* @description A route group describes a collection of routes on clear-router
|
|
9
9
|
* @author 3m1n3nc3
|
|
10
|
-
* @repository https://github.com/arkstack-
|
|
10
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
11
11
|
*/
|
|
12
12
|
declare class RouteGroup<X = any, M = Middleware$1 | Middleware, H = any, S extends RouteGroupSource = RouteGroupSource> implements PromiseLike<void> {
|
|
13
13
|
private readonly options;
|
package/dist/RouteGroup.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { readdir, stat } from "node:fs/promises";
|
|
|
7
7
|
* @class clear-router RouteGroup
|
|
8
8
|
* @description A route group describes a collection of routes on clear-router
|
|
9
9
|
* @author 3m1n3nc3
|
|
10
|
-
* @repository https://github.com/arkstack-
|
|
10
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
11
11
|
*/
|
|
12
12
|
var RouteGroup = class {
|
|
13
13
|
checks = [];
|
package/dist/core/CoreRouter.cjs
CHANGED
|
@@ -12,7 +12,7 @@ let node_module = require("node:module");
|
|
|
12
12
|
* @class clear-router CoreRouter
|
|
13
13
|
* @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
|
|
14
14
|
* @author 3m1n3nc3
|
|
15
|
-
* @repository https://github.com/arkstack-
|
|
15
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
16
16
|
*/
|
|
17
17
|
var CoreRouter = class {
|
|
18
18
|
static routerStateNamespace = "clear-router:core";
|
|
@@ -13,7 +13,7 @@ import { AsyncLocalStorage } from "node:async_hooks";
|
|
|
13
13
|
* @class clear-router CoreRouter
|
|
14
14
|
* @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
|
|
15
15
|
* @author 3m1n3nc3
|
|
16
|
-
* @repository https://github.com/arkstack-
|
|
16
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
17
17
|
*/
|
|
18
18
|
declare abstract class CoreRouter {
|
|
19
19
|
protected static routerStateNamespace: string;
|
|
@@ -13,7 +13,7 @@ import { AsyncLocalStorage } from "node:async_hooks";
|
|
|
13
13
|
* @class clear-router CoreRouter
|
|
14
14
|
* @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
|
|
15
15
|
* @author 3m1n3nc3
|
|
16
|
-
* @repository https://github.com/arkstack-
|
|
16
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
17
17
|
*/
|
|
18
18
|
declare abstract class CoreRouter {
|
|
19
19
|
protected static routerStateNamespace: string;
|
package/dist/core/CoreRouter.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import { AsyncLocalStorage } from "node:async_hooks";
|
|
|
12
12
|
* @class clear-router CoreRouter
|
|
13
13
|
* @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
|
|
14
14
|
* @author 3m1n3nc3
|
|
15
|
-
* @repository https://github.com/arkstack-
|
|
15
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
16
16
|
*/
|
|
17
17
|
var CoreRouter = class {
|
|
18
18
|
static routerStateNamespace = "clear-router:core";
|
package/dist/express/router.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const require_responses = require('../core/responses.cjs');
|
|
|
7
7
|
* @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
|
|
8
8
|
* @author Refkinscallv
|
|
9
9
|
* @author 3m1n3nc3
|
|
10
|
-
* @repository https://github.com/arkstack-
|
|
10
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
11
11
|
*/
|
|
12
12
|
var Router = class Router extends require_CoreRouter.CoreRouter {
|
|
13
13
|
static routerStateNamespace = "clear-router:express";
|
|
@@ -12,7 +12,7 @@ import { Router } from "express";
|
|
|
12
12
|
* @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
|
|
13
13
|
* @author Refkinscallv
|
|
14
14
|
* @author 3m1n3nc3
|
|
15
|
-
* @repository https://github.com/arkstack-
|
|
15
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
16
16
|
*/
|
|
17
17
|
declare class Router$1 extends CoreRouter {
|
|
18
18
|
protected static routerStateNamespace: string;
|
|
@@ -12,7 +12,7 @@ import { Router } from "express";
|
|
|
12
12
|
* @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
|
|
13
13
|
* @author Refkinscallv
|
|
14
14
|
* @author 3m1n3nc3
|
|
15
|
-
* @repository https://github.com/arkstack-
|
|
15
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
16
16
|
*/
|
|
17
17
|
declare class Router$1 extends CoreRouter {
|
|
18
18
|
protected static routerStateNamespace: string;
|
package/dist/express/router.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { isFetchResponse, resolveResponseMeta, responseWasSent } from "../core/r
|
|
|
7
7
|
* @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
|
|
8
8
|
* @author Refkinscallv
|
|
9
9
|
* @author 3m1n3nc3
|
|
10
|
-
* @repository https://github.com/arkstack-
|
|
10
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
11
11
|
*/
|
|
12
12
|
var Router = class Router extends CoreRouter {
|
|
13
13
|
static routerStateNamespace = "clear-router:express";
|
package/dist/fastify/router.cjs
CHANGED
|
@@ -6,7 +6,7 @@ const require_responses = require('../core/responses.cjs');
|
|
|
6
6
|
* @class clear-router Fastify Router
|
|
7
7
|
* @description Laravel-style routing system for Fastify using shared clear-router core
|
|
8
8
|
* @author 3m1n3nc3
|
|
9
|
-
* @repository https://github.com/arkstack-
|
|
9
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
10
10
|
*/
|
|
11
11
|
var Router = class Router extends require_CoreRouter.CoreRouter {
|
|
12
12
|
static routerStateNamespace = "clear-router:fastify";
|
|
@@ -10,7 +10,7 @@ import { CoreRouter } from "../core/CoreRouter.cjs";
|
|
|
10
10
|
* @class clear-router Fastify Router
|
|
11
11
|
* @description Laravel-style routing system for Fastify using shared clear-router core
|
|
12
12
|
* @author 3m1n3nc3
|
|
13
|
-
* @repository https://github.com/arkstack-
|
|
13
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
14
14
|
*/
|
|
15
15
|
declare class Router extends CoreRouter {
|
|
16
16
|
protected static routerStateNamespace: string;
|
|
@@ -10,7 +10,7 @@ import { CoreRouter } from "../core/CoreRouter.mjs";
|
|
|
10
10
|
* @class clear-router Fastify Router
|
|
11
11
|
* @description Laravel-style routing system for Fastify using shared clear-router core
|
|
12
12
|
* @author 3m1n3nc3
|
|
13
|
-
* @repository https://github.com/arkstack-
|
|
13
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
14
14
|
*/
|
|
15
15
|
declare class Router extends CoreRouter {
|
|
16
16
|
protected static routerStateNamespace: string;
|
package/dist/fastify/router.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { isFetchResponse, resolveResponseMeta, responseWasSent } from "../core/r
|
|
|
6
6
|
* @class clear-router Fastify Router
|
|
7
7
|
* @description Laravel-style routing system for Fastify using shared clear-router core
|
|
8
8
|
* @author 3m1n3nc3
|
|
9
|
-
* @repository https://github.com/arkstack-
|
|
9
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
10
10
|
*/
|
|
11
11
|
var Router = class Router extends CoreRouter {
|
|
12
12
|
static routerStateNamespace = "clear-router:fastify";
|
package/dist/h3/router.cjs
CHANGED
|
@@ -7,7 +7,7 @@ let h3 = require("h3");
|
|
|
7
7
|
* @class clear-router H3 Router
|
|
8
8
|
* @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
|
|
9
9
|
* @author 3m1n3nc3
|
|
10
|
-
* @repository https://github.com/arkstack-
|
|
10
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
11
11
|
*/
|
|
12
12
|
var Router = class Router extends require_CoreRouter.CoreRouter {
|
|
13
13
|
static routerStateNamespace = "clear-router:h3";
|
package/dist/h3/router.d.cts
CHANGED
|
@@ -11,7 +11,7 @@ import { H3 } from "h3";
|
|
|
11
11
|
* @class clear-router H3 Router
|
|
12
12
|
* @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
|
|
13
13
|
* @author 3m1n3nc3
|
|
14
|
-
* @repository https://github.com/arkstack-
|
|
14
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
15
15
|
*/
|
|
16
16
|
declare class Router extends CoreRouter {
|
|
17
17
|
protected static routerStateNamespace: string;
|
package/dist/h3/router.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ import { H3 } from "h3";
|
|
|
11
11
|
* @class clear-router H3 Router
|
|
12
12
|
* @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
|
|
13
13
|
* @author 3m1n3nc3
|
|
14
|
-
* @repository https://github.com/arkstack-
|
|
14
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
15
15
|
*/
|
|
16
16
|
declare class Router extends CoreRouter {
|
|
17
17
|
protected static routerStateNamespace: string;
|
package/dist/h3/router.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { HTTPResponse, getQuery, getRouterParams, readBody } from "h3";
|
|
|
7
7
|
* @class clear-router H3 Router
|
|
8
8
|
* @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
|
|
9
9
|
* @author 3m1n3nc3
|
|
10
|
-
* @repository https://github.com/arkstack-
|
|
10
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
11
11
|
*/
|
|
12
12
|
var Router = class Router extends CoreRouter {
|
|
13
13
|
static routerStateNamespace = "clear-router:h3";
|
package/dist/hono/router.cjs
CHANGED
|
@@ -6,7 +6,7 @@ const require_responses = require('../core/responses.cjs');
|
|
|
6
6
|
* @class clear-router Hono Router
|
|
7
7
|
* @description Laravel-style routing system for Hono using shared clear-router core
|
|
8
8
|
* @author 3m1n3nc3
|
|
9
|
-
* @repository https://github.com/arkstack-
|
|
9
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
10
10
|
*/
|
|
11
11
|
var Router = class Router extends require_CoreRouter.CoreRouter {
|
|
12
12
|
static routerStateNamespace = "clear-router:hono";
|
package/dist/hono/router.d.cts
CHANGED
|
@@ -10,7 +10,7 @@ import { CoreRouter } from "../core/CoreRouter.cjs";
|
|
|
10
10
|
* @class clear-router Hono Router
|
|
11
11
|
* @description Laravel-style routing system for Hono using shared clear-router core
|
|
12
12
|
* @author 3m1n3nc3
|
|
13
|
-
* @repository https://github.com/arkstack-
|
|
13
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
14
14
|
*/
|
|
15
15
|
declare class Router extends CoreRouter {
|
|
16
16
|
protected static routerStateNamespace: string;
|
package/dist/hono/router.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ import { CoreRouter } from "../core/CoreRouter.mjs";
|
|
|
10
10
|
* @class clear-router Hono Router
|
|
11
11
|
* @description Laravel-style routing system for Hono using shared clear-router core
|
|
12
12
|
* @author 3m1n3nc3
|
|
13
|
-
* @repository https://github.com/arkstack-
|
|
13
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
14
14
|
*/
|
|
15
15
|
declare class Router extends CoreRouter {
|
|
16
16
|
protected static routerStateNamespace: string;
|
package/dist/hono/router.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { resolveResponseMeta } from "../core/responses.mjs";
|
|
|
6
6
|
* @class clear-router Hono Router
|
|
7
7
|
* @description Laravel-style routing system for Hono using shared clear-router core
|
|
8
8
|
* @author 3m1n3nc3
|
|
9
|
-
* @repository https://github.com/arkstack-
|
|
9
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
10
10
|
*/
|
|
11
11
|
var Router = class Router extends CoreRouter {
|
|
12
12
|
static routerStateNamespace = "clear-router:hono";
|
package/dist/koa/router.cjs
CHANGED
|
@@ -6,7 +6,7 @@ const require_responses = require('../core/responses.cjs');
|
|
|
6
6
|
* @class clear-router Koa Router
|
|
7
7
|
* @description Laravel-style routing system for Koa using @koa/router and shared clear-router core
|
|
8
8
|
* @author 3m1n3nc3
|
|
9
|
-
* @repository https://github.com/arkstack-
|
|
9
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
10
10
|
*/
|
|
11
11
|
var Router = class Router extends require_CoreRouter.CoreRouter {
|
|
12
12
|
static routerStateNamespace = "clear-router:koa";
|
package/dist/koa/router.d.cts
CHANGED
|
@@ -10,7 +10,7 @@ import { CoreRouter } from "../core/CoreRouter.cjs";
|
|
|
10
10
|
* @class clear-router Koa Router
|
|
11
11
|
* @description Laravel-style routing system for Koa using @koa/router and shared clear-router core
|
|
12
12
|
* @author 3m1n3nc3
|
|
13
|
-
* @repository https://github.com/arkstack-
|
|
13
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
14
14
|
*/
|
|
15
15
|
declare class Router extends CoreRouter {
|
|
16
16
|
protected static routerStateNamespace: string;
|
package/dist/koa/router.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ import { CoreRouter } from "../core/CoreRouter.mjs";
|
|
|
10
10
|
* @class clear-router Koa Router
|
|
11
11
|
* @description Laravel-style routing system for Koa using @koa/router and shared clear-router core
|
|
12
12
|
* @author 3m1n3nc3
|
|
13
|
-
* @repository https://github.com/arkstack-
|
|
13
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
14
14
|
*/
|
|
15
15
|
declare class Router extends CoreRouter {
|
|
16
16
|
protected static routerStateNamespace: string;
|
package/dist/koa/router.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { isFetchResponse, resolveResponseMeta } from "../core/responses.mjs";
|
|
|
6
6
|
* @class clear-router Koa Router
|
|
7
7
|
* @description Laravel-style routing system for Koa using @koa/router and shared clear-router core
|
|
8
8
|
* @author 3m1n3nc3
|
|
9
|
-
* @repository https://github.com/arkstack-
|
|
9
|
+
* @repository https://github.com/arkstack-hq/clear-router
|
|
10
10
|
*/
|
|
11
11
|
var Router = class Router extends CoreRouter {
|
|
12
12
|
static routerStateNamespace = "clear-router:koa";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clear-router",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.8",
|
|
4
4
|
"description": "Laravel-style routing for Node.js with support for Express, H3, Fastify, Hono, and Koa, including CommonJS, ESM, and TypeScript support.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"h3",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"commonjs",
|
|
18
18
|
"h3ravel"
|
|
19
19
|
],
|
|
20
|
-
"homepage": "https://arkstack-
|
|
20
|
+
"homepage": "https://arkstack-hq.github.io/clear-router",
|
|
21
21
|
"bugs": {
|
|
22
|
-
"url": "https://github.com/arkstack-
|
|
22
|
+
"url": "https://github.com/arkstack-hq/clear-router/issues"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "git+https://github.com/arkstack-
|
|
26
|
+
"url": "git+https://github.com/arkstack-hq/clear-router.git"
|
|
27
27
|
},
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"author": "3m1n1nce <3m1n1nce@toneflix.net>",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"LICENSE"
|
|
101
101
|
],
|
|
102
102
|
"peerDependencies": {
|
|
103
|
-
"@h3ravel/support": "^
|
|
103
|
+
"@h3ravel/support": "^2.1.4",
|
|
104
104
|
"@koa/router": "^15.0.0",
|
|
105
105
|
"express": "^5.1.0",
|
|
106
106
|
"fastify": "^5.0.0",
|