orpc-file-based-router 0.1.2 → 0.1.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.cjs CHANGED
@@ -36,7 +36,7 @@ async function createRouter(routesDir) {
36
36
  return r.exports[e].route({ path: `${r.path}` });
37
37
  });
38
38
  }
39
- async function cachedRouter(routesDir) {
39
+ function cachedRouter(routesDir) {
40
40
  let router = null;
41
41
  return {
42
42
  getRouter: async () => {
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  declare function createRouter(routesDir: string): Promise<Router>;
2
- declare function cachedRouter(routesDir: string): Promise<{
2
+ declare function cachedRouter(routesDir: string): {
3
3
  getRouter: () => Promise<Router>;
4
- }>;
4
+ };
5
5
  type GeneratorOptions = {
6
6
  /**
7
7
  * File extension to append to import statements in the generated router.
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  declare function createRouter(routesDir: string): Promise<Router>;
2
- declare function cachedRouter(routesDir: string): Promise<{
2
+ declare function cachedRouter(routesDir: string): {
3
3
  getRouter: () => Promise<Router>;
4
- }>;
4
+ };
5
5
  type GeneratorOptions = {
6
6
  /**
7
7
  * File extension to append to import statements in the generated router.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  declare function createRouter(routesDir: string): Promise<Router>;
2
- declare function cachedRouter(routesDir: string): Promise<{
2
+ declare function cachedRouter(routesDir: string): {
3
3
  getRouter: () => Promise<Router>;
4
- }>;
4
+ };
5
5
  type GeneratorOptions = {
6
6
  /**
7
7
  * File extension to append to import statements in the generated router.
package/dist/index.mjs CHANGED
@@ -30,7 +30,7 @@ async function createRouter(routesDir) {
30
30
  return r.exports[e].route({ path: `${r.path}` });
31
31
  });
32
32
  }
33
- async function cachedRouter(routesDir) {
33
+ function cachedRouter(routesDir) {
34
34
  let router = null;
35
35
  return {
36
36
  getRouter: async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orpc-file-based-router",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "File-based router plugin for oRPC - automatically generate oRPC router from your file structure",
5
5
  "author": "zeeeeby",
6
6
  "license": "MIT",