New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-valued-middleware

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-valued-middleware - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

7

CHANGELOG.md

@@ -0,2 +1,9 @@

## [0.4.1](https://gitlab.com/soul-codes/express-valued-middleware/compare/0.4.0...0.4.1) (2020-10-13)
### Bug Fixes
* 🐛 fix incorrect map() left value types for [status,output] ([3d9ace6](https://gitlab.com/soul-codes/express-valued-middleware/commit/3d9ace625d9a3147913de2e6a9bc04d5c9f5f727))
# 0.4.0 (2020-10-13)

2

lib/map.d.ts

@@ -21,4 +21,4 @@ import { Response } from "express";

export declare function map<A, B>(fn: (value: A) => Either<MapError, B>): MapCombinator<A, B>;
export declare type MapError = number | readonly [status: number, output: number] | ((res: Response) => void) | readonly [handleError: (res: Response) => void, nextError: unknown];
export declare type MapError = number | readonly [status: number, output: any] | ((res: Response) => void) | readonly [handleError: (res: Response) => void, nextError: unknown];
export declare type MapCombinator<A, B> = (fa: ValuedMiddleware<A>) => ValuedMiddleware<B>;
//# sourceMappingURL=map.d.ts.map
{
"name": "express-valued-middleware",
"version": "0.4.0",
"version": "0.4.1",
"description": "Composable value-yielding middleware creator and combinators for Express.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -77,3 +77,3 @@ import { Request, Response } from "express";

| number
| readonly [status: number, output: number]
| readonly [status: number, output: any]
| ((res: Response) => void)

@@ -80,0 +80,0 @@ | readonly [handleError: (res: Response) => void, nextError: unknown];

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