@fastly/expressly 2.2.1 → 2.2.2--canary.50.6627915981.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.
@@ -5,7 +5,7 @@ export type ErrorMiddlewareCallback<Err extends EErr = EErr, Req extends EReq =
5
5
  export declare class ErrorMiddleware<Err extends EErr = EErr, Req extends EReq = EReq, Res extends ERes = ERes> {
6
6
  private matchFn;
7
7
  private callback;
8
- constructor(matchFn: Function, callback: ErrorMiddlewareCallback);
8
+ constructor(matchFn: Function, callback: ErrorMiddlewareCallback<Err, Req, Res>);
9
9
  check(event: Req): 0 | 404 | string[];
10
10
  run(err: Err, req: Req, res: Res): Promise<any>;
11
11
  }
@@ -15,7 +15,6 @@ export declare class Router<Req extends EReq = EReq, Res extends ERes = ERes, Er
15
15
  /**
16
16
  * Handles preflight requests from trusted origins configured by the user when initializing a router.
17
17
  * Note that the wildcard value "*" will fail if the request is sent with credentials (see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin#directives)
18
- * @param autoCorsPreflight the object containing CORS preflight option of trustedOrigins, an array of trusted origins.
19
18
  * @returns 200 if the preflight request succeeds, 403 if it fails
20
19
  */
21
20
  private preflightHandler;
@@ -55,7 +55,6 @@ export class Router {
55
55
  /**
56
56
  * Handles preflight requests from trusted origins configured by the user when initializing a router.
57
57
  * Note that the wildcard value "*" will fail if the request is sent with credentials (see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin#directives)
58
- * @param autoCorsPreflight the object containing CORS preflight option of trustedOrigins, an array of trusted origins.
59
58
  * @returns 200 if the preflight request succeeds, 403 if it fails
60
59
  */
61
60
  async preflightHandler(req, res) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastly/expressly",
3
- "version": "2.2.1",
3
+ "version": "2.2.2--canary.50.6627915981.0",
4
4
  "description": "Express-style router for Fastly Compute.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",