clear-router 2.8.7 → 2.8.9
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/RouteGroup.cjs +1 -1
- package/dist/RouteGroup.mjs +1 -1
- package/dist/index.d.mts +1 -0
- package/package.json +2 -2
package/dist/RouteGroup.cjs
CHANGED
|
@@ -140,7 +140,7 @@ var RouteGroup = class {
|
|
|
140
140
|
for (const entry of entries.sort((left, right) => left.name.localeCompare(right.name))) {
|
|
141
141
|
const path = (0, node_path.join)(directory, entry.name);
|
|
142
142
|
if (entry.isDirectory()) files.push(...await this.readDirectory(path));
|
|
143
|
-
else if (entry.isFile() && /\.(?:[cm]?
|
|
143
|
+
else if (entry.isFile() && /\.(?:[cm]?[jt]s)$/.test(entry.name) && !entry.name.endsWith(".d.ts")) files.push(path);
|
|
144
144
|
}
|
|
145
145
|
return files;
|
|
146
146
|
}
|
package/dist/RouteGroup.mjs
CHANGED
|
@@ -140,7 +140,7 @@ var RouteGroup = class {
|
|
|
140
140
|
for (const entry of entries.sort((left, right) => left.name.localeCompare(right.name))) {
|
|
141
141
|
const path = join(directory, entry.name);
|
|
142
142
|
if (entry.isDirectory()) files.push(...await this.readDirectory(path));
|
|
143
|
-
else if (entry.isFile() && /\.(?:[cm]?
|
|
143
|
+
else if (entry.isFile() && /\.(?:[cm]?[jt]s)$/.test(entry.name) && !entry.name.endsWith(".d.ts")) files.push(path);
|
|
144
144
|
}
|
|
145
145
|
return files;
|
|
146
146
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -8,4 +8,5 @@ import { Controller } from "./Controller.mjs";
|
|
|
8
8
|
import { RouteGroup } from "./RouteGroup.mjs";
|
|
9
9
|
import { CoreRouter } from "./core/CoreRouter.mjs";
|
|
10
10
|
import { importFile, wrap } from "./core/helpers.mjs";
|
|
11
|
+
import "./core/index.mjs";
|
|
11
12
|
export { ClearHttpContext, ClearRequest, ClearRouterPlugin, ClearRouterPluginArgumentsContext, ClearRouterPluginContext, ClearRouterPluginInput, ClearRouterPluginRequestContext, Controller, CoreRouter, PluginArgumentsResolver, PluginBind, PluginBindFactory, PluginBindValue, PluginSetupResult, Request, Response, Route, RouteGroup, RouteParameter, definePlugin, importFile, wrap };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clear-router",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.9",
|
|
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",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"LICENSE"
|
|
101
101
|
],
|
|
102
102
|
"peerDependencies": {
|
|
103
|
-
"@h3ravel/support": "^
|
|
103
|
+
"@h3ravel/support": "^2.2.0",
|
|
104
104
|
"@koa/router": "^15.0.0",
|
|
105
105
|
"express": "^5.1.0",
|
|
106
106
|
"fastify": "^5.0.0",
|