express-yaschema-api-handler
Advanced tools
Comparing version 1.0.7 to 1.0.8
import type { NextFunction, Request, Response } from 'express'; | ||
type AsyncRequestHandler = (req: Request, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>; | ||
type HttpApiHandlerWrapper = (handler: AsyncRequestHandler) => AsyncRequestHandler; | ||
export type AsyncRequestHandler = (req: Request, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>; | ||
export type HttpApiHandlerWrapper = (handler: AsyncRequestHandler) => AsyncRequestHandler; | ||
export declare const getHttpApiHandlerWrapper: () => HttpApiHandlerWrapper; | ||
export declare const setHttpApiHandlerWrapper: (wrapper: HttpApiHandlerWrapper) => void; | ||
export {}; | ||
//# sourceMappingURL=http-api-handler-wrapper.d.ts.map |
{ | ||
"name": "express-yaschema-api-handler", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Express handler support for yaschema-api", | ||
@@ -23,3 +23,3 @@ "keywords": [ | ||
"lint": "eslint 'src/**/*.ts?(x)' --max-warnings 0", | ||
"prepublishOnly": "yarn clean && yarn test && yarn lint && yarn test:audit && yarn clean && yarn build && yarn generate:docs", | ||
"prepublishOnly": "yarn clean && yarn test && yarn lint && yarn test:audit && yarn clean && cp ./README.md ../ && yarn build && yarn generate:docs", | ||
"test": "yarn test:check-circular-dependencies && yarn test:unit-tests", | ||
@@ -26,0 +26,0 @@ "test:audit": "yarn audit --level moderate; [[ $? -ge 4 ]] && exit 1 || exit 0", |
import type { NextFunction, Request, Response } from 'express'; | ||
import { StatusCodes } from 'http-status-codes'; | ||
type AsyncRequestHandler = (req: Request, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>; | ||
export type AsyncRequestHandler = (req: Request, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>; | ||
type HttpApiHandlerWrapper = (handler: AsyncRequestHandler) => AsyncRequestHandler; | ||
export type HttpApiHandlerWrapper = (handler: AsyncRequestHandler) => AsyncRequestHandler; | ||
@@ -8,0 +8,0 @@ let globalHttpApiHandlerWrapper: HttpApiHandlerWrapper = |
Sorry, the diff of this file is not supported yet
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
61848
52
807