rjweb-server
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -8,7 +8,7 @@ import ctr, { ctrError } from "@/interfaces/ctr"; | ||
pages?: { | ||
/** When a Route is not found */ notFound?: (ctr: ctr) => Promise<void>; | ||
/** When an Error occurs in a Route */ reqError?: (ctr: ctrError) => Promise<void>; | ||
/** When a Route is not found */ notFound?: (ctr: ctr) => Promise<any>; | ||
/** When an Error occurs in a Route */ reqError?: (ctr: ctrError) => Promise<any>; | ||
}; | ||
events?: { | ||
/** On Every Request */ request?: (ctr: ctr) => Promise<void>; | ||
/** On Every Request */ request?: (ctr: ctr) => Promise<any>; | ||
}; | ||
@@ -15,0 +15,0 @@ urls?: { |
@@ -5,3 +5,3 @@ /// <reference types="node" /> | ||
import { UrlWithStringQuery } from "url"; | ||
import { types } from "@/interfaces/types"; | ||
import { types } from "./types"; | ||
export default interface ctr { | ||
@@ -8,0 +8,0 @@ /** A Map of all Headers */ header: Map<any, any>; |
@@ -1,3 +0,3 @@ | ||
import { types } from "@/interfaces/types"; | ||
import ctr from "@/interfaces/ctr"; | ||
import { types } from "./types"; | ||
import ctr from "./ctr"; | ||
export default interface page { | ||
@@ -4,0 +4,0 @@ /** An Array of the URL split by slashes */ array: string[]; |
{ | ||
"name": "rjweb-server", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Easy and Lightweight Way to create a Web Server in Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -17,6 +17,6 @@ require('module-alias').addAlias("@", __dirname + "/"); | ||
pages?: { | ||
/** When a Route is not found */ notFound?: (ctr: ctr) => Promise<void> | ||
/** When an Error occurs in a Route */ reqError?: (ctr: ctrError) => Promise<void> | ||
/** When a Route is not found */ notFound?: (ctr: ctr) => Promise<any> | ||
/** When an Error occurs in a Route */ reqError?: (ctr: ctrError) => Promise<any> | ||
}, events?: { | ||
/** On Every Request */ request?: (ctr: ctr) => Promise<void> | ||
/** On Every Request */ request?: (ctr: ctr) => Promise<any> | ||
}, urls?: { | ||
@@ -23,0 +23,0 @@ list: () => page[] |
import { IncomingMessage, ServerResponse } from "http" | ||
import { UrlWithStringQuery } from "url" | ||
import { types } from "@/interfaces/types" | ||
import { types } from "./types" | ||
@@ -5,0 +5,0 @@ export default interface ctr { |
@@ -1,3 +0,3 @@ | ||
import { types } from "@/interfaces/types" | ||
import ctr from "@/interfaces/ctr" | ||
import { types } from "./types" | ||
import ctr from "./ctr" | ||
@@ -4,0 +4,0 @@ export default interface page { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
82967