Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

18h

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

18h - npm Package Compare versions

Comparing version 1.3.7 to 1.3.8

9

dist/index.d.ts

@@ -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";

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc