Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-yaschema-api-handler

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-yaschema-api-handler - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

5

lib/config/http-api-handler-wrapper.d.ts
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

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc