@haibun/web-server-express 1.27.4 → 1.28.0

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@haibun/web-server-express",
3
3
  "type": "module",
4
- "version": "1.27.4",
4
+ "version": "1.28.0",
5
5
  "description": "",
6
6
  "main": "build/web-server-stepper.js",
7
7
  "files": [
@@ -20,13 +20,13 @@
20
20
  "author": "",
21
21
  "license": "ISC",
22
22
  "dependencies": {
23
- "@haibun/core": "1.27.4",
24
- "@haibun/domain-webpage": "1.27.4",
23
+ "@haibun/core": "1.28.0",
24
+ "@haibun/domain-webpage": "1.28.0",
25
25
  "cookie-parser": "^1.4.5",
26
26
  "express": "^4.17.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@haibun/web-http": "1.27.4",
29
+ "@haibun/web-http": "1.28.0",
30
30
  "@types/cookie-parser": "^1.4.2",
31
31
  "@types/express": "^4.17.15"
32
32
  },
package/build/defs.d.ts DELETED
@@ -1,15 +0,0 @@
1
- export declare const WEBSERVER = "webserver";
2
- export declare const CHECK_LISTENER = "CHECK_LISTENER";
3
- import * as express from 'express';
4
- export interface IWebServer {
5
- addStaticFolder(subdir: string, loc: string): void;
6
- addKnownStaticFolder(subdir: string, mountAt?: string): void;
7
- listen(): Promise<unknown>;
8
- close(): Promise<void>;
9
- addRoute(type: TRouteTypes, path: string, route: TRequestHandler): void;
10
- use(middleware: express.RequestHandler): void;
11
- }
12
- export type TRouteTypes = 'get' | 'post';
13
- export type IRequest = typeof express.request;
14
- export type IResponse = typeof express.response;
15
- export type TRequestHandler = (req: IRequest, res: IResponse) => void;
package/build/defs.js DELETED
@@ -1,3 +0,0 @@
1
- export const WEBSERVER = 'webserver';
2
- export const CHECK_LISTENER = 'CHECK_LISTENER';
3
- //# sourceMappingURL=defs.js.map
package/build/defs.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"defs.js","sourceRoot":"","sources":["../src/defs.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;AACrC,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC"}