@api-ts/io-ts-http
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -27,3 +27,3 @@ "use strict"; | ||
exports.flattened = exports.optionalized = exports.optional = void 0; | ||
const function_1 = require("fp-ts/function"); | ||
const pipeable_1 = require("fp-ts/pipeable"); | ||
const E = __importStar(require("fp-ts/Either")); | ||
@@ -35,3 +35,3 @@ const R = __importStar(require("fp-ts/Record")); | ||
return new t.PartialType(partialCodec.name, (i) => partialCodec.is(i) && !Object.values(i).includes(void 0), (i, ctx) => { | ||
return (0, function_1.pipe)(partialCodec.validate(i, ctx), E.map((result) => { | ||
return (0, pipeable_1.pipe)(partialCodec.validate(i, ctx), E.map((result) => { | ||
for (const key of Object.keys(result)) { | ||
@@ -87,3 +87,3 @@ if (result[key] === void 0) { | ||
const nestedCodec = t.strict(nestedProps); | ||
return new t.Type(name, flatCodec.is, (input, context) => (0, function_1.pipe)(nestedCodec.validate(input, context), E.map((nested) => { | ||
return new t.Type(name, flatCodec.is, (input, context) => (0, pipeable_1.pipe)(nestedCodec.validate(input, context), E.map((nested) => { | ||
let flattened = {}; | ||
@@ -90,0 +90,0 @@ for (const key in nested) { |
{ | ||
"name": "@api-ts/io-ts-http", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Types for (de)serializing HTTP requests from both the client and server side", | ||
@@ -23,3 +23,3 @@ "author": "Patrick McLaughlin <patrickmclaughlin@bitgo.com>", | ||
"@api-ts/response": "1.0.0", | ||
"fp-ts": "2.13.1", | ||
"fp-ts": "^2.0.0", | ||
"io-ts": "2.1.3", | ||
@@ -30,6 +30,6 @@ "io-ts-types": "0.5.19" | ||
"@types/chai": "4.3.4", | ||
"@types/mocha": "10.0.0", | ||
"@types/mocha": "10.0.1", | ||
"c8": "7.12.0", | ||
"chai": "4.3.7", | ||
"mocha": "10.1.0", | ||
"mocha": "10.2.0", | ||
"ts-node": "10.9.1", | ||
@@ -36,0 +36,0 @@ "typescript": "4.7.4" |
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
+ Addedfp-ts@2.16.9(transitive)
- Removedfp-ts@2.13.1(transitive)
Updatedfp-ts@^2.0.0