Socket
Socket
Sign inDemoInstall

@api-ts/io-ts-http

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@api-ts/io-ts-http - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

6

dist/src/combinators.js

@@ -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>",

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