clear-router 2.6.4 → 2.6.6

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 CHANGED
@@ -3,8 +3,8 @@
3
3
  [![NPM Downloads](https://img.shields.io/npm/dt/clear-router.svg)](https://www.npmjs.com/package/clear-router)
4
4
  [![npm version](https://img.shields.io/npm/v/clear-router.svg)](https://www.npmjs.com/package/clear-router)
5
5
  [![License](https://img.shields.io/npm/l/clear-router.svg)](https://github.com/toneflix/clear-router/blob/main/LICENSE)
6
- [![Publish to NPM](https://github.com/arkstack-hq/clear-router/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/arkstack-hq/clear-router/actions/workflows/npm-publish.yml)
7
- [![Run Tests](https://github.com/arkstack-hq/clear-router/actions/workflows/ci.yml/badge.svg)](https://github.com/arkstack-hq/clear-router/actions/workflows/ci.yml)
6
+ [![Publish to NPM](https://github.com/arkstack-tmp/clear-router/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/arkstack-tmp/clear-router/actions/workflows/npm-publish.yml)
7
+ [![Run Tests](https://github.com/arkstack-tmp/clear-router/actions/workflows/ci.yml/badge.svg)](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-hq.github.io/clear-router/guide/express) for details.
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-hq.github.io/clear-router/guide/h3) for details.
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-hq.github.io/clear-router/guide/fastify) for details.
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-hq.github.io/clear-router/guide/hono) for details.
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-hq.github.io/clear-router/guide/koa) for details.
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-hq.github.io/clear-router/api) for complete API documentation.
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-hq.github.io/clear-router/testing) for a detailed testing guide.
118
+ See [TESTING.md](https://arkstack-tmp.github.io/clear-router/testing) for a detailed testing guide.
119
119
 
120
120
  ## Examples
121
121
 
@@ -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-dJWUSsg1.cjs');
3
+ const require_router = require('../router-CB7Duy0X.cjs');
4
4
 
5
5
  //#region src/core/plugins.ts
6
6
  function definePlugin(plugin) {
@@ -1,5 +1,5 @@
1
1
  import { c as Request, s as Response } from "../bindings-XLDXFpHZ.mjs";
2
- import { t as CoreRouter } from "../router-BM24N08q.mjs";
2
+ import { t as CoreRouter } from "../router-CTzjojnD.mjs";
3
3
 
4
4
  //#region src/core/plugins.ts
5
5
  function definePlugin(plugin) {
@@ -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-dJWUSsg1.cjs');
3
+ const require_router = require('../router-CB7Duy0X.cjs');
4
4
  require('./index.cjs');
5
5
  require("reflect-metadata");
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { n as Container, t as Bind } from "../bindings-XLDXFpHZ.mjs";
2
- import { t as CoreRouter } from "../router-BM24N08q.mjs";
2
+ import { t as CoreRouter } from "../router-CTzjojnD.mjs";
3
3
  import "./index.mjs";
4
4
  import "reflect-metadata";
5
5
 
@@ -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-dJWUSsg1.cjs');
3
+ const require_router = require('../router-CB7Duy0X.cjs');
4
4
  const require_responses = require('../responses-Bvnk0uvc.cjs');
5
5
 
6
6
  //#region src/express/router.ts
@@ -1,5 +1,5 @@
1
1
  import "../bindings-XLDXFpHZ.mjs";
2
- import { t as CoreRouter } from "../router-BM24N08q.mjs";
2
+ import { t as CoreRouter } from "../router-CTzjojnD.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
@@ -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-dJWUSsg1.cjs');
3
+ const require_router = require('../router-CB7Duy0X.cjs');
4
4
  const require_responses = require('../responses-Bvnk0uvc.cjs');
5
5
 
6
6
  //#region src/fastify/router.ts
@@ -1,5 +1,5 @@
1
1
  import "../bindings-XLDXFpHZ.mjs";
2
- import { t as CoreRouter } from "../router-BM24N08q.mjs";
2
+ import { t as CoreRouter } from "../router-CTzjojnD.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
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-dJWUSsg1.cjs');
3
+ const require_router = require('../router-CB7Duy0X.cjs');
4
4
  const require_responses = require('../responses-Bvnk0uvc.cjs');
5
5
  let h3 = require("h3");
6
6
 
package/dist/h3/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "../bindings-XLDXFpHZ.mjs";
2
- import { t as CoreRouter } from "../router-BM24N08q.mjs";
2
+ import { t as CoreRouter } from "../router-CTzjojnD.mjs";
3
3
  import { n as resolveResponseMeta } from "../responses-BvETUeDL.mjs";
4
4
  import { HTTPResponse, getQuery, getRouterParams, readBody } from "h3";
5
5
 
@@ -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-dJWUSsg1.cjs');
3
+ const require_router = require('../router-CB7Duy0X.cjs');
4
4
  const require_responses = require('../responses-Bvnk0uvc.cjs');
5
5
 
6
6
  //#region src/hono/router.ts
@@ -1,5 +1,5 @@
1
1
  import "../bindings-XLDXFpHZ.mjs";
2
- import { t as CoreRouter } from "../router-BM24N08q.mjs";
2
+ import { t as CoreRouter } from "../router-CTzjojnD.mjs";
3
3
  import { n as resolveResponseMeta } from "../responses-BvETUeDL.mjs";
4
4
 
5
5
  //#region src/hono/router.ts
package/dist/index.cjs CHANGED
@@ -1017,7 +1017,7 @@ var CoreRouter = class {
1017
1017
  tokens,
1018
1018
  designTokens
1019
1019
  });
1020
- if (pluginArgs) return handlerFunction(...pluginArgs);
1020
+ if (pluginArgs?.length) return handlerFunction(...pluginArgs);
1021
1021
  if (!metadata || !tokens.length) return handlerFunction(ctx, ctx.clearRequest);
1022
1022
  const args = [];
1023
1023
  for (const token of tokens) {
package/dist/index.mjs CHANGED
@@ -1016,7 +1016,7 @@ var CoreRouter = class {
1016
1016
  tokens,
1017
1017
  designTokens
1018
1018
  });
1019
- if (pluginArgs) return handlerFunction(...pluginArgs);
1019
+ if (pluginArgs?.length) return handlerFunction(...pluginArgs);
1020
1020
  if (!metadata || !tokens.length) return handlerFunction(ctx, ctx.clearRequest);
1021
1021
  const args = [];
1022
1022
  for (const token of tokens) {
@@ -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-dJWUSsg1.cjs');
3
+ const require_router = require('../router-CB7Duy0X.cjs');
4
4
  const require_responses = require('../responses-Bvnk0uvc.cjs');
5
5
 
6
6
  //#region src/koa/router.ts
@@ -1,5 +1,5 @@
1
1
  import "../bindings-XLDXFpHZ.mjs";
2
- import { t as CoreRouter } from "../router-BM24N08q.mjs";
2
+ import { t as CoreRouter } from "../router-CTzjojnD.mjs";
3
3
  import { n as resolveResponseMeta, t as isFetchResponse } from "../responses-BvETUeDL.mjs";
4
4
 
5
5
  //#region src/koa/router.ts
@@ -790,7 +790,7 @@ var CoreRouter = class {
790
790
  tokens,
791
791
  designTokens
792
792
  });
793
- if (pluginArgs) return handlerFunction(...pluginArgs);
793
+ if (pluginArgs?.length) return handlerFunction(...pluginArgs);
794
794
  if (!metadata || !tokens.length) return handlerFunction(ctx, ctx.clearRequest);
795
795
  const args = [];
796
796
  for (const token of tokens) {
@@ -790,7 +790,7 @@ var CoreRouter = class {
790
790
  tokens,
791
791
  designTokens
792
792
  });
793
- if (pluginArgs) return handlerFunction(...pluginArgs);
793
+ if (pluginArgs?.length) return handlerFunction(...pluginArgs);
794
794
  if (!metadata || !tokens.length) return handlerFunction(ctx, ctx.clearRequest);
795
795
  const args = [];
796
796
  for (const token of tokens) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clear-router",
3
- "version": "2.6.4",
3
+ "version": "2.6.6",
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,7 +17,7 @@
17
17
  "commonjs",
18
18
  "h3ravel"
19
19
  ],
20
- "homepage": "https://arkstack-hq.github.io/clear-router",
20
+ "homepage": "https://arkstack-tmp.github.io/clear-router",
21
21
  "bugs": {
22
22
  "url": "https://github.com/toneflix/clear-router/issues"
23
23
  },