@miqro/core 3.0.0 → 3.0.1

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.
Files changed (2) hide show
  1. package/README.md +2 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -185,8 +185,9 @@ to load the routes
185
185
 
186
186
  ```typescript
187
187
  import {APIRouter} from "@miqro/core";
188
+ import {resolve} from "path";
188
189
 
189
- const api = APIRouter({ dirname: resolve(__dirname, "api") });
190
+ const api = await APIRouter({ dirname: resolve("api") });
190
191
 
191
192
  app.use(api);
192
193
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miqro/core",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "",
5
5
  "main": "build/cjs/index.js",
6
6
  "types": "build/cjs/index.d.ts",