clear-router 2.6.5 → 2.6.7
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/core/index.cjs +1 -1
- package/dist/core/index.d.cts +1 -1
- package/dist/core/index.d.mts +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/decorators/setup.cjs +1 -1
- package/dist/decorators/setup.mjs +1 -1
- package/dist/express/index.cjs +2 -2
- package/dist/express/index.d.cts +2 -2
- package/dist/express/index.d.mts +2 -2
- package/dist/express/index.mjs +2 -2
- package/dist/fastify/index.cjs +2 -2
- package/dist/fastify/index.d.cts +2 -2
- package/dist/fastify/index.d.mts +2 -2
- package/dist/fastify/index.mjs +2 -2
- package/dist/h3/index.cjs +2 -2
- package/dist/h3/index.d.cts +2 -2
- package/dist/h3/index.d.mts +2 -2
- package/dist/h3/index.mjs +2 -2
- package/dist/hono/index.cjs +2 -2
- package/dist/hono/index.d.cts +2 -2
- package/dist/hono/index.d.mts +2 -2
- package/dist/hono/index.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/koa/index.cjs +2 -2
- package/dist/koa/index.d.cts +2 -2
- package/dist/koa/index.d.mts +2 -2
- package/dist/koa/index.mjs +2 -2
- package/dist/{router-BITqScD_.d.cts → router-BHC0lGtp.d.cts} +1 -1
- package/dist/{router-Cs8cC5zd.d.mts → router-BOKe0n0j.d.mts} +1 -1
- package/dist/{router-CB7Duy0X.cjs → router-CcG0NS8L.cjs} +1 -1
- package/dist/{router-CTzjojnD.mjs → router-kOleKr2w.mjs} +1 -1
- package/package.json +4 -4
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/
|
|
6
|
-
[](https://github.com/arkstack-tmp/clear-router/blob/main/LICENSE)
|
|
6
|
+
[](https://github.com/arkstack-tmp/clear-router/actions/workflows/npm-publish.yml)
|
|
7
|
+
[](https://github.com/arkstack-tmp/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-tmp.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-tmp.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-tmp.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-tmp.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-tmp.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-tmp.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-tmp.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/
|
|
149
|
+
https://github.com/arkstack-tmp/clear-router
|
package/dist/core/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_bindings = require('../bindings-CLsZjOEy.cjs');
|
|
3
|
-
const require_router = require('../router-
|
|
3
|
+
const require_router = require('../router-CcG0NS8L.cjs');
|
|
4
4
|
|
|
5
5
|
//#region src/core/plugins.ts
|
|
6
6
|
function definePlugin(plugin) {
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { L as Response, a as ClearRouterPluginInput, c as PluginBind, d as PluginSetupResult, f as definePlugin, i as ClearRouterPluginContext, l as PluginBindFactory, n as ClearRouterPlugin, o as ClearRouterPluginRequestContext, p as Request, r as ClearRouterPluginArgumentsContext, s as PluginArgumentsResolver, t as CoreRouter, u as PluginBindValue } from "../router-
|
|
1
|
+
import { L as Response, a as ClearRouterPluginInput, c as PluginBind, d as PluginSetupResult, f as definePlugin, i as ClearRouterPluginContext, l as PluginBindFactory, n as ClearRouterPlugin, o as ClearRouterPluginRequestContext, p as Request, r as ClearRouterPluginArgumentsContext, s as PluginArgumentsResolver, t as CoreRouter, u as PluginBindValue } from "../router-BHC0lGtp.cjs";
|
|
2
2
|
export { ClearRouterPlugin, ClearRouterPluginArgumentsContext, ClearRouterPluginContext, ClearRouterPluginInput, ClearRouterPluginRequestContext, CoreRouter, PluginArgumentsResolver, PluginBind, PluginBindFactory, PluginBindValue, PluginSetupResult, Request, Response, definePlugin };
|
package/dist/core/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { L as Response, a as ClearRouterPluginInput, c as PluginBind, d as PluginSetupResult, f as definePlugin, i as ClearRouterPluginContext, l as PluginBindFactory, n as ClearRouterPlugin, o as ClearRouterPluginRequestContext, p as Request, r as ClearRouterPluginArgumentsContext, s as PluginArgumentsResolver, t as CoreRouter, u as PluginBindValue } from "../router-
|
|
1
|
+
import { L as Response, a as ClearRouterPluginInput, c as PluginBind, d as PluginSetupResult, f as definePlugin, i as ClearRouterPluginContext, l as PluginBindFactory, n as ClearRouterPlugin, o as ClearRouterPluginRequestContext, p as Request, r as ClearRouterPluginArgumentsContext, s as PluginArgumentsResolver, t as CoreRouter, u as PluginBindValue } from "../router-BOKe0n0j.mjs";
|
|
2
2
|
export { ClearRouterPlugin, ClearRouterPluginArgumentsContext, ClearRouterPluginContext, ClearRouterPluginInput, ClearRouterPluginRequestContext, CoreRouter, PluginArgumentsResolver, PluginBind, PluginBindFactory, PluginBindValue, PluginSetupResult, Request, Response, definePlugin };
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_bindings = require('../bindings-CLsZjOEy.cjs');
|
|
3
|
-
const require_router = require('../router-
|
|
3
|
+
const require_router = require('../router-CcG0NS8L.cjs');
|
|
4
4
|
require('./index.cjs');
|
|
5
5
|
require("reflect-metadata");
|
|
6
6
|
|
package/dist/express/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
require('../bindings-CLsZjOEy.cjs');
|
|
3
|
-
const require_router = require('../router-
|
|
3
|
+
const require_router = require('../router-CcG0NS8L.cjs');
|
|
4
4
|
const require_responses = require('../responses-Bvnk0uvc.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/express/router.ts
|
|
@@ -9,7 +9,7 @@ const require_responses = require('../responses-Bvnk0uvc.cjs');
|
|
|
9
9
|
* @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
|
|
10
10
|
* @author Refkinscallv
|
|
11
11
|
* @author 3m1n3nc3
|
|
12
|
-
* @repository https://github.com/
|
|
12
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
13
13
|
*/
|
|
14
14
|
var Router = class Router extends require_router.CoreRouter {
|
|
15
15
|
static routerStateNamespace = "clear-router:express";
|
package/dist/express/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as ControllerAction, I as HttpMethod, M as HttpContext, N as Middleware, P as ApiResourceMiddleware, j as Handler, m as Route, t as CoreRouter } from "../router-
|
|
1
|
+
import { F as ControllerAction, I as HttpMethod, M as HttpContext, N as Middleware, P as ApiResourceMiddleware, j as Handler, m as Route, t as CoreRouter } from "../router-BHC0lGtp.cjs";
|
|
2
2
|
import { Router as Router$1 } from "express";
|
|
3
3
|
|
|
4
4
|
//#region src/express/router.d.ts
|
|
@@ -7,7 +7,7 @@ import { Router as Router$1 } from "express";
|
|
|
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/
|
|
10
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
11
11
|
*/
|
|
12
12
|
declare class Router extends CoreRouter {
|
|
13
13
|
protected static routerStateNamespace: string;
|
package/dist/express/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as ControllerAction, I as HttpMethod, M as HttpContext, N as Middleware, P as ApiResourceMiddleware, j as Handler, m as Route, t as CoreRouter } from "../router-
|
|
1
|
+
import { F as ControllerAction, I as HttpMethod, M as HttpContext, N as Middleware, P as ApiResourceMiddleware, j as Handler, m as Route, t as CoreRouter } from "../router-BOKe0n0j.mjs";
|
|
2
2
|
import { Router as Router$1 } from "express";
|
|
3
3
|
|
|
4
4
|
//#region src/express/router.d.ts
|
|
@@ -7,7 +7,7 @@ import { Router as Router$1 } from "express";
|
|
|
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/
|
|
10
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
11
11
|
*/
|
|
12
12
|
declare class Router extends CoreRouter {
|
|
13
13
|
protected static routerStateNamespace: string;
|
package/dist/express/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../bindings-XLDXFpHZ.mjs";
|
|
2
|
-
import { t as CoreRouter } from "../router-
|
|
2
|
+
import { t as CoreRouter } from "../router-kOleKr2w.mjs";
|
|
3
3
|
import { n as resolveResponseMeta, r as responseWasSent, t as isFetchResponse } from "../responses-BvETUeDL.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/express/router.ts
|
|
@@ -8,7 +8,7 @@ import { n as resolveResponseMeta, r as responseWasSent, t as isFetchResponse }
|
|
|
8
8
|
* @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
|
|
9
9
|
* @author Refkinscallv
|
|
10
10
|
* @author 3m1n3nc3
|
|
11
|
-
* @repository https://github.com/
|
|
11
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
12
12
|
*/
|
|
13
13
|
var Router = class Router extends CoreRouter {
|
|
14
14
|
static routerStateNamespace = "clear-router:express";
|
package/dist/fastify/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
require('../bindings-CLsZjOEy.cjs');
|
|
3
|
-
const require_router = require('../router-
|
|
3
|
+
const require_router = require('../router-CcG0NS8L.cjs');
|
|
4
4
|
const require_responses = require('../responses-Bvnk0uvc.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/fastify/router.ts
|
|
@@ -8,7 +8,7 @@ const require_responses = require('../responses-Bvnk0uvc.cjs');
|
|
|
8
8
|
* @class clear-router Fastify Router
|
|
9
9
|
* @description Laravel-style routing system for Fastify using shared clear-router core
|
|
10
10
|
* @author 3m1n3nc3
|
|
11
|
-
* @repository https://github.com/
|
|
11
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
12
12
|
*/
|
|
13
13
|
var Router = class Router extends require_router.CoreRouter {
|
|
14
14
|
static routerStateNamespace = "clear-router:fastify";
|
package/dist/fastify/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as Middleware, D as FastifyApp, F as ControllerAction, I as HttpMethod, O as Handler, P as ApiResourceMiddleware, k as HttpContext, m as Route, t as CoreRouter } from "../router-
|
|
1
|
+
import { A as Middleware, D as FastifyApp, F as ControllerAction, I as HttpMethod, O as Handler, P as ApiResourceMiddleware, k as HttpContext, m as Route, t as CoreRouter } from "../router-BHC0lGtp.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/fastify/router.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* @class clear-router Fastify Router
|
|
6
6
|
* @description Laravel-style routing system for Fastify using shared clear-router core
|
|
7
7
|
* @author 3m1n3nc3
|
|
8
|
-
* @repository https://github.com/
|
|
8
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
9
9
|
*/
|
|
10
10
|
declare class Router extends CoreRouter {
|
|
11
11
|
protected static routerStateNamespace: string;
|
package/dist/fastify/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as Middleware, D as FastifyApp, F as ControllerAction, I as HttpMethod, O as Handler, P as ApiResourceMiddleware, k as HttpContext, m as Route, t as CoreRouter } from "../router-
|
|
1
|
+
import { A as Middleware, D as FastifyApp, F as ControllerAction, I as HttpMethod, O as Handler, P as ApiResourceMiddleware, k as HttpContext, m as Route, t as CoreRouter } from "../router-BOKe0n0j.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/fastify/router.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* @class clear-router Fastify Router
|
|
6
6
|
* @description Laravel-style routing system for Fastify using shared clear-router core
|
|
7
7
|
* @author 3m1n3nc3
|
|
8
|
-
* @repository https://github.com/
|
|
8
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
9
9
|
*/
|
|
10
10
|
declare class Router extends CoreRouter {
|
|
11
11
|
protected static routerStateNamespace: string;
|
package/dist/fastify/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../bindings-XLDXFpHZ.mjs";
|
|
2
|
-
import { t as CoreRouter } from "../router-
|
|
2
|
+
import { t as CoreRouter } from "../router-kOleKr2w.mjs";
|
|
3
3
|
import { n as resolveResponseMeta, r as responseWasSent, t as isFetchResponse } from "../responses-BvETUeDL.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/fastify/router.ts
|
|
@@ -7,7 +7,7 @@ import { n as resolveResponseMeta, r as responseWasSent, t as isFetchResponse }
|
|
|
7
7
|
* @class clear-router Fastify Router
|
|
8
8
|
* @description Laravel-style routing system for Fastify using shared clear-router core
|
|
9
9
|
* @author 3m1n3nc3
|
|
10
|
-
* @repository https://github.com/
|
|
10
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
11
11
|
*/
|
|
12
12
|
var Router = class Router extends CoreRouter {
|
|
13
13
|
static routerStateNamespace = "clear-router:fastify";
|
package/dist/h3/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
require('../bindings-CLsZjOEy.cjs');
|
|
3
|
-
const require_router = require('../router-
|
|
3
|
+
const require_router = require('../router-CcG0NS8L.cjs');
|
|
4
4
|
const require_responses = require('../responses-Bvnk0uvc.cjs');
|
|
5
5
|
let h3 = require("h3");
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ let h3 = require("h3");
|
|
|
9
9
|
* @class clear-router H3 Router
|
|
10
10
|
* @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
|
|
11
11
|
* @author 3m1n3nc3
|
|
12
|
-
* @repository https://github.com/
|
|
12
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
13
13
|
*/
|
|
14
14
|
var Router = class Router extends require_router.CoreRouter {
|
|
15
15
|
static routerStateNamespace = "clear-router:h3";
|
package/dist/h3/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as H3App, E as Middleware, F as ControllerAction, I as HttpMethod, P as ApiResourceMiddleware, T as HttpContext, m as Route, t as CoreRouter, w as Handler } from "../router-
|
|
1
|
+
import { C as H3App, E as Middleware, F as ControllerAction, I as HttpMethod, P as ApiResourceMiddleware, T as HttpContext, m as Route, t as CoreRouter, w as Handler } from "../router-BHC0lGtp.cjs";
|
|
2
2
|
import { H3 } from "h3";
|
|
3
3
|
|
|
4
4
|
//#region src/h3/router.d.ts
|
|
@@ -6,7 +6,7 @@ import { H3 } from "h3";
|
|
|
6
6
|
* @class clear-router H3 Router
|
|
7
7
|
* @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
|
|
8
8
|
* @author 3m1n3nc3
|
|
9
|
-
* @repository https://github.com/
|
|
9
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
10
10
|
*/
|
|
11
11
|
declare class Router extends CoreRouter {
|
|
12
12
|
protected static routerStateNamespace: string;
|
package/dist/h3/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as H3App, E as Middleware, F as ControllerAction, I as HttpMethod, P as ApiResourceMiddleware, T as HttpContext, m as Route, t as CoreRouter, w as Handler } from "../router-
|
|
1
|
+
import { C as H3App, E as Middleware, F as ControllerAction, I as HttpMethod, P as ApiResourceMiddleware, T as HttpContext, m as Route, t as CoreRouter, w as Handler } from "../router-BOKe0n0j.mjs";
|
|
2
2
|
import { H3 } from "h3";
|
|
3
3
|
|
|
4
4
|
//#region src/h3/router.d.ts
|
|
@@ -6,7 +6,7 @@ import { H3 } from "h3";
|
|
|
6
6
|
* @class clear-router H3 Router
|
|
7
7
|
* @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
|
|
8
8
|
* @author 3m1n3nc3
|
|
9
|
-
* @repository https://github.com/
|
|
9
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
10
10
|
*/
|
|
11
11
|
declare class Router extends CoreRouter {
|
|
12
12
|
protected static routerStateNamespace: string;
|
package/dist/h3/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../bindings-XLDXFpHZ.mjs";
|
|
2
|
-
import { t as CoreRouter } from "../router-
|
|
2
|
+
import { t as CoreRouter } from "../router-kOleKr2w.mjs";
|
|
3
3
|
import { n as resolveResponseMeta } from "../responses-BvETUeDL.mjs";
|
|
4
4
|
import { HTTPResponse, getQuery, getRouterParams, readBody } from "h3";
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ import { HTTPResponse, getQuery, getRouterParams, readBody } from "h3";
|
|
|
8
8
|
* @class clear-router H3 Router
|
|
9
9
|
* @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
|
|
10
10
|
* @author 3m1n3nc3
|
|
11
|
-
* @repository https://github.com/
|
|
11
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
12
12
|
*/
|
|
13
13
|
var Router = class Router extends CoreRouter {
|
|
14
14
|
static routerStateNamespace = "clear-router:h3";
|
package/dist/hono/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
require('../bindings-CLsZjOEy.cjs');
|
|
3
|
-
const require_router = require('../router-
|
|
3
|
+
const require_router = require('../router-CcG0NS8L.cjs');
|
|
4
4
|
const require_responses = require('../responses-Bvnk0uvc.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/hono/router.ts
|
|
@@ -8,7 +8,7 @@ const require_responses = require('../responses-Bvnk0uvc.cjs');
|
|
|
8
8
|
* @class clear-router Hono Router
|
|
9
9
|
* @description Laravel-style routing system for Hono using shared clear-router core
|
|
10
10
|
* @author 3m1n3nc3
|
|
11
|
-
* @repository https://github.com/
|
|
11
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
12
12
|
*/
|
|
13
13
|
var Router = class Router extends require_router.CoreRouter {
|
|
14
14
|
static routerStateNamespace = "clear-router:hono";
|
package/dist/hono/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { F as ControllerAction, I as HttpMethod, P as ApiResourceMiddleware, S as Middleware, b as HonoApp, m as Route, t as CoreRouter, x as HttpContext, y as Handler } from "../router-
|
|
1
|
+
import { F as ControllerAction, I as HttpMethod, P as ApiResourceMiddleware, S as Middleware, b as HonoApp, m as Route, t as CoreRouter, x as HttpContext, y as Handler } from "../router-BHC0lGtp.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/hono/router.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* @class clear-router Hono Router
|
|
6
6
|
* @description Laravel-style routing system for Hono using shared clear-router core
|
|
7
7
|
* @author 3m1n3nc3
|
|
8
|
-
* @repository https://github.com/
|
|
8
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
9
9
|
*/
|
|
10
10
|
declare class Router extends CoreRouter {
|
|
11
11
|
protected static routerStateNamespace: string;
|
package/dist/hono/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { F as ControllerAction, I as HttpMethod, P as ApiResourceMiddleware, S as Middleware, b as HonoApp, m as Route, t as CoreRouter, x as HttpContext, y as Handler } from "../router-
|
|
1
|
+
import { F as ControllerAction, I as HttpMethod, P as ApiResourceMiddleware, S as Middleware, b as HonoApp, m as Route, t as CoreRouter, x as HttpContext, y as Handler } from "../router-BOKe0n0j.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/hono/router.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* @class clear-router Hono Router
|
|
6
6
|
* @description Laravel-style routing system for Hono using shared clear-router core
|
|
7
7
|
* @author 3m1n3nc3
|
|
8
|
-
* @repository https://github.com/
|
|
8
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
9
9
|
*/
|
|
10
10
|
declare class Router extends CoreRouter {
|
|
11
11
|
protected static routerStateNamespace: string;
|
package/dist/hono/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../bindings-XLDXFpHZ.mjs";
|
|
2
|
-
import { t as CoreRouter } from "../router-
|
|
2
|
+
import { t as CoreRouter } from "../router-kOleKr2w.mjs";
|
|
3
3
|
import { n as resolveResponseMeta } from "../responses-BvETUeDL.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/hono/router.ts
|
|
@@ -7,7 +7,7 @@ import { n as resolveResponseMeta } from "../responses-BvETUeDL.mjs";
|
|
|
7
7
|
* @class clear-router Hono Router
|
|
8
8
|
* @description Laravel-style routing system for Hono using shared clear-router core
|
|
9
9
|
* @author 3m1n3nc3
|
|
10
|
-
* @repository https://github.com/
|
|
10
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
11
11
|
*/
|
|
12
12
|
var Router = class Router extends CoreRouter {
|
|
13
13
|
static routerStateNamespace = "clear-router:hono";
|
package/dist/index.cjs
CHANGED
|
@@ -290,7 +290,7 @@ function isClass(value) {
|
|
|
290
290
|
* @class clear-router CoreRouter
|
|
291
291
|
* @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
|
|
292
292
|
* @author 3m1n3nc3
|
|
293
|
-
* @repository https://github.com/
|
|
293
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
294
294
|
*/
|
|
295
295
|
var CoreRouter = class {
|
|
296
296
|
static routerStateNamespace = "clear-router:core";
|
package/dist/index.d.cts
CHANGED
|
@@ -232,7 +232,7 @@ declare function definePlugin<Options = any>(plugin: ClearRouterPlugin<Options>)
|
|
|
232
232
|
* @class clear-router CoreRouter
|
|
233
233
|
* @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
|
|
234
234
|
* @author 3m1n3nc3
|
|
235
|
-
* @repository https://github.com/
|
|
235
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
236
236
|
*/
|
|
237
237
|
declare abstract class CoreRouter {
|
|
238
238
|
protected static routerStateNamespace: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -232,7 +232,7 @@ declare function definePlugin<Options = any>(plugin: ClearRouterPlugin<Options>)
|
|
|
232
232
|
* @class clear-router CoreRouter
|
|
233
233
|
* @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
|
|
234
234
|
* @author 3m1n3nc3
|
|
235
|
-
* @repository https://github.com/
|
|
235
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
236
236
|
*/
|
|
237
237
|
declare abstract class CoreRouter {
|
|
238
238
|
protected static routerStateNamespace: string;
|
package/dist/index.mjs
CHANGED
|
@@ -289,7 +289,7 @@ function isClass(value) {
|
|
|
289
289
|
* @class clear-router CoreRouter
|
|
290
290
|
* @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
|
|
291
291
|
* @author 3m1n3nc3
|
|
292
|
-
* @repository https://github.com/
|
|
292
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
293
293
|
*/
|
|
294
294
|
var CoreRouter = class {
|
|
295
295
|
static routerStateNamespace = "clear-router:core";
|
package/dist/koa/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
require('../bindings-CLsZjOEy.cjs');
|
|
3
|
-
const require_router = require('../router-
|
|
3
|
+
const require_router = require('../router-CcG0NS8L.cjs');
|
|
4
4
|
const require_responses = require('../responses-Bvnk0uvc.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/koa/router.ts
|
|
@@ -8,7 +8,7 @@ const require_responses = require('../responses-Bvnk0uvc.cjs');
|
|
|
8
8
|
* @class clear-router Koa Router
|
|
9
9
|
* @description Laravel-style routing system for Koa using @koa/router and shared clear-router core
|
|
10
10
|
* @author 3m1n3nc3
|
|
11
|
-
* @repository https://github.com/
|
|
11
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
12
12
|
*/
|
|
13
13
|
var Router = class Router extends require_router.CoreRouter {
|
|
14
14
|
static routerStateNamespace = "clear-router:koa";
|
package/dist/koa/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { F as ControllerAction, I as HttpMethod, P as ApiResourceMiddleware, _ as KoaRouterApp, g as HttpContext, h as Handler, m as Route, t as CoreRouter, v as Middleware } from "../router-
|
|
1
|
+
import { F as ControllerAction, I as HttpMethod, P as ApiResourceMiddleware, _ as KoaRouterApp, g as HttpContext, h as Handler, m as Route, t as CoreRouter, v as Middleware } from "../router-BHC0lGtp.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/koa/router.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* @class clear-router Koa Router
|
|
6
6
|
* @description Laravel-style routing system for Koa using @koa/router and shared clear-router core
|
|
7
7
|
* @author 3m1n3nc3
|
|
8
|
-
* @repository https://github.com/
|
|
8
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
9
9
|
*/
|
|
10
10
|
declare class Router extends CoreRouter {
|
|
11
11
|
protected static routerStateNamespace: string;
|
package/dist/koa/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { F as ControllerAction, I as HttpMethod, P as ApiResourceMiddleware, _ as KoaRouterApp, g as HttpContext, h as Handler, m as Route, t as CoreRouter, v as Middleware } from "../router-
|
|
1
|
+
import { F as ControllerAction, I as HttpMethod, P as ApiResourceMiddleware, _ as KoaRouterApp, g as HttpContext, h as Handler, m as Route, t as CoreRouter, v as Middleware } from "../router-BOKe0n0j.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/koa/router.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* @class clear-router Koa Router
|
|
6
6
|
* @description Laravel-style routing system for Koa using @koa/router and shared clear-router core
|
|
7
7
|
* @author 3m1n3nc3
|
|
8
|
-
* @repository https://github.com/
|
|
8
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
9
9
|
*/
|
|
10
10
|
declare class Router extends CoreRouter {
|
|
11
11
|
protected static routerStateNamespace: string;
|
package/dist/koa/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../bindings-XLDXFpHZ.mjs";
|
|
2
|
-
import { t as CoreRouter } from "../router-
|
|
2
|
+
import { t as CoreRouter } from "../router-kOleKr2w.mjs";
|
|
3
3
|
import { n as resolveResponseMeta, t as isFetchResponse } from "../responses-BvETUeDL.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/koa/router.ts
|
|
@@ -7,7 +7,7 @@ import { n as resolveResponseMeta, t as isFetchResponse } from "../responses-BvE
|
|
|
7
7
|
* @class clear-router Koa Router
|
|
8
8
|
* @description Laravel-style routing system for Koa using @koa/router and shared clear-router core
|
|
9
9
|
* @author 3m1n3nc3
|
|
10
|
-
* @repository https://github.com/
|
|
10
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
11
11
|
*/
|
|
12
12
|
var Router = class Router extends CoreRouter {
|
|
13
13
|
static routerStateNamespace = "clear-router:koa";
|
|
@@ -319,7 +319,7 @@ declare abstract class Controller<X = any> {
|
|
|
319
319
|
* @class clear-router CoreRouter
|
|
320
320
|
* @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
|
|
321
321
|
* @author 3m1n3nc3
|
|
322
|
-
* @repository https://github.com/
|
|
322
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
323
323
|
*/
|
|
324
324
|
declare abstract class CoreRouter {
|
|
325
325
|
protected static routerStateNamespace: string;
|
|
@@ -319,7 +319,7 @@ declare abstract class Controller<X = any> {
|
|
|
319
319
|
* @class clear-router CoreRouter
|
|
320
320
|
* @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
|
|
321
321
|
* @author 3m1n3nc3
|
|
322
|
-
* @repository https://github.com/
|
|
322
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
323
323
|
*/
|
|
324
324
|
declare abstract class CoreRouter {
|
|
325
325
|
protected static routerStateNamespace: string;
|
|
@@ -63,7 +63,7 @@ var Route = class {
|
|
|
63
63
|
* @class clear-router CoreRouter
|
|
64
64
|
* @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
|
|
65
65
|
* @author 3m1n3nc3
|
|
66
|
-
* @repository https://github.com/
|
|
66
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
67
67
|
*/
|
|
68
68
|
var CoreRouter = class {
|
|
69
69
|
static routerStateNamespace = "clear-router:core";
|
|
@@ -63,7 +63,7 @@ var Route = class {
|
|
|
63
63
|
* @class clear-router CoreRouter
|
|
64
64
|
* @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
|
|
65
65
|
* @author 3m1n3nc3
|
|
66
|
-
* @repository https://github.com/
|
|
66
|
+
* @repository https://github.com/arkstack-tmp/clear-router
|
|
67
67
|
*/
|
|
68
68
|
var CoreRouter = class {
|
|
69
69
|
static routerStateNamespace = "clear-router:core";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clear-router",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.7",
|
|
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-tmp.github.io/clear-router",
|
|
21
21
|
"bugs": {
|
|
22
|
-
"url": "https://github.com/
|
|
22
|
+
"url": "https://github.com/arkstack-tmp/clear-router/issues"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "git+https://github.com/
|
|
26
|
+
"url": "git+https://github.com/arkstack-tmp/clear-router.git"
|
|
27
27
|
},
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"author": "3m1n1nce <3m1n1nce@toneflix.net>",
|