rjweb-server
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -30,3 +30,3 @@ import { types as typesInterface } from "../interfaces/types"; | ||
/** The Path on which this will be available */ path: string, | ||
/** The Async Code to run on a Request */ code: (ctr: ctr) => Promise<void>): void; | ||
/** The Async Code to run on a Request */ code: (ctr: ctr) => Promise<any>): void; | ||
/** Serve Static Files */ | ||
@@ -33,0 +33,0 @@ static( |
{ | ||
"name": "rjweb-server", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Easy and Lightweight Way to create a Web Server in Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -43,3 +43,3 @@ import { getAllFiles, getAllFilesFilter } from "../misc/getAllFiles" | ||
/** The Path on which this will be available */ path: string, | ||
/** The Async Code to run on a Request */ code: (ctr: ctr) => Promise<void> | ||
/** The Async Code to run on a Request */ code: (ctr: ctr) => Promise<any> | ||
) { | ||
@@ -46,0 +46,0 @@ if (!types.includes(type)) throw TypeError(`No Valid Request Type: ${type}\nPossible Values: ${types.join(', ')}`) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
85093