@fastly/expressly 1.0.0-beta.1 → 1.0.0-beta.2
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EReq } from "./request";
|
|
2
2
|
import { ERes } from "./response";
|
|
3
|
-
export
|
|
3
|
+
export type ErrorMiddlewareCallback = (err: Error, req: EReq, res: ERes) => Promise<any>;
|
|
4
4
|
export declare class ErrorMiddleware {
|
|
5
5
|
private matchFn;
|
|
6
6
|
private callback;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EReq } from "./request";
|
|
2
2
|
import { ERes } from "./response";
|
|
3
|
-
export
|
|
3
|
+
export type RequestHandlerCallback = (req: EReq, res: ERes) => Promise<any>;
|
|
4
4
|
export declare class RequestHandler {
|
|
5
5
|
private matchFn;
|
|
6
6
|
private callback;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastly/expressly",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.2",
|
|
4
4
|
"description": "Express-style router for Fastly's Compute@Edge.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,25 +24,25 @@
|
|
|
24
24
|
"router"
|
|
25
25
|
],
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": "
|
|
27
|
+
"node": ">=16.0.0"
|
|
28
28
|
},
|
|
29
29
|
"author": "oss@fastly.com",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^17.0.40",
|
|
33
33
|
"auto": "^10.37.6",
|
|
34
|
-
"husky": "^8.0.
|
|
35
|
-
"prettier": "^2.
|
|
34
|
+
"husky": "^8.0.2",
|
|
35
|
+
"prettier": "^2.8.1",
|
|
36
36
|
"pretty-quick": "^3.1.3",
|
|
37
|
-
"ts-loader": "^9.4.
|
|
38
|
-
"typescript": "^4.
|
|
39
|
-
"webpack": "^5.
|
|
40
|
-
"webpack-cli": "^
|
|
37
|
+
"ts-loader": "^9.4.2",
|
|
38
|
+
"typescript": "^4.9.4",
|
|
39
|
+
"webpack": "^5.75.0",
|
|
40
|
+
"webpack-cli": "^5.0.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@fastly/js-compute": "^0.
|
|
43
|
+
"@fastly/js-compute": "^0.7.0",
|
|
44
44
|
"cookie": "^0.5.0",
|
|
45
|
-
"core-js": "^3.
|
|
45
|
+
"core-js": "^3.26.1",
|
|
46
46
|
"path-to-regexp": "^6.2.1"
|
|
47
47
|
},
|
|
48
48
|
"auto": {
|