@api-ts/io-ts-http
Advanced tools
Comparing version 3.1.0 to 3.1.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), (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)) { | ||
@@ -90,3 +90,3 @@ if (result[key] === void 0) { | ||
const nestedCodec = t.strict(nestedProps, name); | ||
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 = {}; | ||
@@ -93,0 +93,0 @@ for (const key in nested) { |
{ | ||
"name": "@api-ts/io-ts-http", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Types for (de)serializing HTTP requests from both the client and server side", | ||
@@ -5,0 +5,0 @@ "author": "Patrick McLaughlin <patrickmclaughlin@bitgo.com>", |
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