Socket
Socket
Sign inDemoInstall

@api-ts/io-ts-http

Package Overview
Dependencies
Maintainers
2
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 2.0.0 to 2.0.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) && !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"

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