Comparing version 1.3.7 to 1.3.8
@@ -12,6 +12,7 @@ import Koa from "koa"; | ||
* Creates a router at the specified port & hostname, sourcing | ||
* the routes from the provided `routeFolder` directory. | ||
* @param routeFolder The folder to map for paths. | ||
* @param port The port to host the server on. | ||
* @param hostname The hostname to host the server on. | ||
* the routes from the provided `routesFolder` directory. | ||
* @param props.routesFolder The folder to map for paths. | ||
* @param props.middleware An object containing arrays of Koa middleware functions. | ||
* @param props.port The port to host the server on. | ||
* @param props.hostname The hostname to host the server on. | ||
* @returns A promise which resolves with the `koa` app, and `koa-router` router objects. | ||
@@ -18,0 +19,0 @@ */ |
@@ -22,6 +22,7 @@ "use strict"; | ||
* Creates a router at the specified port & hostname, sourcing | ||
* the routes from the provided `routeFolder` directory. | ||
* @param routeFolder The folder to map for paths. | ||
* @param port The port to host the server on. | ||
* @param hostname The hostname to host the server on. | ||
* the routes from the provided `routesFolder` directory. | ||
* @param props.routesFolder The folder to map for paths. | ||
* @param props.middleware An object containing arrays of Koa middleware functions. | ||
* @param props.port The port to host the server on. | ||
* @param props.hostname The hostname to host the server on. | ||
* @returns A promise which resolves with the `koa` app, and `koa-router` router objects. | ||
@@ -28,0 +29,0 @@ */ |
@@ -17,6 +17,7 @@ import Koa, { Context, Next } from "koa"; | ||
* Creates a router at the specified port & hostname, sourcing | ||
* the routes from the provided `routeFolder` directory. | ||
* @param routeFolder The folder to map for paths. | ||
* @param port The port to host the server on. | ||
* @param hostname The hostname to host the server on. | ||
* the routes from the provided `routesFolder` directory. | ||
* @param props.routesFolder The folder to map for paths. | ||
* @param props.middleware An object containing arrays of Koa middleware functions. | ||
* @param props.port The port to host the server on. | ||
* @param props.hostname The hostname to host the server on. | ||
* @returns A promise which resolves with the `koa` app, and `koa-router` router objects. | ||
@@ -23,0 +24,0 @@ */ |
{ | ||
"name": "18h", | ||
"description": "A Next.js style dynamic API router for Koa-based APIs.", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "url": "https://github.com/ridafkih/18h" |
@@ -50,2 +50,4 @@ # 18h | ||
## Example Consumption Based on Example Above | ||
```ts | ||
@@ -52,0 +54,0 @@ import axios from "axios"; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20379
463
65