@fastly/expressly
Advanced tools
Comparing version 1.0.0-beta.1 to 1.0.0-beta.2
import { EReq } from "./request"; | ||
import { ERes } from "./response"; | ||
export declare type ErrorMiddlewareCallback = (err: Error, req: EReq, res: ERes) => Promise<any>; | ||
export type ErrorMiddlewareCallback = (err: Error, req: EReq, res: ERes) => Promise<any>; | ||
export declare class ErrorMiddleware { | ||
@@ -5,0 +5,0 @@ private matchFn; |
import { EReq } from "./request"; | ||
import { ERes } from "./response"; | ||
export declare type RequestHandlerCallback = (req: EReq, res: ERes) => Promise<any>; | ||
export type RequestHandlerCallback = (req: EReq, res: ERes) => Promise<any>; | ||
export declare class RequestHandler { | ||
@@ -5,0 +5,0 @@ private matchFn; |
@@ -33,3 +33,3 @@ /// <reference types="@fastly/js-compute" /> | ||
} & typeof ERequestBase; | ||
export declare type EReq = InstanceType<typeof ERequest>; | ||
export type EReq = InstanceType<typeof ERequest>; | ||
export {}; |
@@ -36,3 +36,3 @@ /// <reference types="@fastly/js-compute" /> | ||
} & typeof EResponseBase; | ||
export declare type ERes = InstanceType<typeof EResponse>; | ||
export type ERes = InstanceType<typeof EResponse>; | ||
export {}; |
@@ -63,5 +63,2 @@ import cookie from "cookie"; | ||
return; | ||
// if(typeof body !== "string") { | ||
// body = body.toString() | ||
// } | ||
this.send(body); | ||
@@ -68,0 +65,0 @@ } |
{ | ||
"name": "@fastly/expressly", | ||
"version": "1.0.0-beta.1", | ||
"version": "1.0.0-beta.2", | ||
"description": "Express-style router for Fastly's Compute@Edge.", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
"engines": { | ||
"node": "^16" | ||
"node": ">=16.0.0" | ||
}, | ||
@@ -35,14 +35,14 @@ "author": "oss@fastly.com", | ||
"auto": "^10.37.6", | ||
"husky": "^8.0.1", | ||
"prettier": "^2.7.1", | ||
"husky": "^8.0.2", | ||
"prettier": "^2.8.1", | ||
"pretty-quick": "^3.1.3", | ||
"ts-loader": "^9.4.1", | ||
"typescript": "^4.8.4", | ||
"webpack": "^5.74.0", | ||
"webpack-cli": "^4.10.0" | ||
"ts-loader": "^9.4.2", | ||
"typescript": "^4.9.4", | ||
"webpack": "^5.75.0", | ||
"webpack-cli": "^5.0.1" | ||
}, | ||
"dependencies": { | ||
"@fastly/js-compute": "^0.5.4", | ||
"@fastly/js-compute": "^0.7.0", | ||
"cookie": "^0.5.0", | ||
"core-js": "^3.25.5", | ||
"core-js": "^3.26.1", | ||
"path-to-regexp": "^6.2.1" | ||
@@ -49,0 +49,0 @@ }, |
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
150701
835
+ Added@fastly/js-compute@0.7.0(transitive)
- Removed@fastly/js-compute@0.5.15(transitive)
Updated@fastly/js-compute@^0.7.0
Updatedcore-js@^3.26.1