@api-ts/typed-express-router
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -33,3 +33,3 @@ "use strict"; | ||
const E = __importStar(require("fp-ts/Either")); | ||
const function_1 = require("fp-ts/function"); | ||
const pipeable_1 = require("fp-ts/pipeable"); | ||
const errors_1 = require("./errors"); | ||
@@ -101,3 +101,3 @@ const path_1 = require("./path"); | ||
const validateMiddleware = (req, res, next) => { | ||
(0, function_1.pipe)(req.decoded, E.matchW((errs) => { | ||
(0, pipeable_1.pipe)(req.decoded, E.matchW((errs) => { | ||
var _a; | ||
@@ -104,0 +104,0 @@ ((_a = options === null || options === void 0 ? void 0 : options.onDecodeError) !== null && _a !== void 0 ? _a : onDecodeError)(errs, req, res); |
{ | ||
"name": "@api-ts/typed-express-router", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Implement an HTTP specification with Express", | ||
@@ -23,7 +23,7 @@ "author": "Patrick McLaughlin <patrickmclaughlin@bitgo.com>", | ||
"express": "4.18.2", | ||
"fp-ts": "2.13.1", | ||
"fp-ts": "^2.0.0", | ||
"io-ts": "2.1.3" | ||
}, | ||
"devDependencies": { | ||
"@api-ts/superagent-wrapper": "1.1.3", | ||
"@api-ts/superagent-wrapper": "1.1.4", | ||
"@ava/typescript": "3.0.1", | ||
@@ -30,0 +30,0 @@ "ava": "5.1.0", |
+ Addedfp-ts@2.16.9(transitive)
- Removedfp-ts@2.13.1(transitive)
Updatedfp-ts@^2.0.0