@fp51/foldable-helpers
Advanced tools
Comparing version 1.0.0-canary-ce925d4827225d42834edfe2e0e8d3bedc306e0b-1619124842565 to 1.0.0-canary-d111acf1adce5adc66cb66f9a6740611200c2e98-1619125181961
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("tslib"),e=require("./pipeable-3322766c.js");exports.createFold=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];function o(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return function(o){var u=e.zip(n,t);return e.pipe(u,e.findFirst((function(e){return(0,r.__read(e,1)[0])(o)})),e.fromOption((function(){return new Error("No guard found to fold "+o)})),e.fold((function(r){throw r}),(function(e){var n=r.__read(e,2);return n[0],(0,n[1])(o)})))}}return o}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("tslib"),e=require("./pipeable-657f8d92.js");exports.createFold=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];function o(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return function(o){var u=e.zip(n,t);return e.pipe(u,e.findFirst((function(e){return(0,r.__read(e,1)[0])(o)})),e.fromOption((function(){return new Error("No guard found to fold "+o)})),e.fold((function(r){throw r}),(function(e){var n=r.__read(e,2);return n[0],(0,n[1])(o)})))}}return o}; |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./pipeable-3322766c.js");exports.createFoldObject=function(e){return function(t){return function(n){var o=Object.keys(e);return r.pipe(o,r.findFirst((function(r){return e[r](n)})),r.fromOption((function(){return new Error("No guard found to fold "+n)})),r.fold((function(r){throw r}),(function(r){return t[r](n)})))}}}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./pipeable-657f8d92.js");exports.createFoldObject=function(e){return function(t){return function(n){var o=Object.keys(e);return r.pipe(o,r.findFirst((function(r){return e[r](n)})),r.fromOption((function(){return new Error("No guard found to fold "+n)})),r.fold((function(r){throw r}),(function(r){return t[r](n)})))}}}; |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./guard.js"),r=require("./createFold.js"),t=require("./createFoldObject.js");require("tslib"),require("./pipeable-3322766c.js"),exports.and=e.and,exports.not=e.not,exports.or=e.or,exports.createFold=r.createFold,exports.createFoldObject=t.createFoldObject; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./guard.js"),r=require("./createFold.js"),t=require("./createFoldObject.js");require("tslib"),require("./pipeable-657f8d92.js"),exports.and=e.and,exports.not=e.not,exports.or=e.or,exports.createFold=r.createFold,exports.createFoldObject=t.createFoldObject; |
@@ -1,1 +0,1 @@ | ||
import{__read as r}from"tslib";import{z as n,p as t,f as o,a as f,b as u}from"./pipeable-8dfc74c3.js";function a(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return function(i){var c=n(a,e);return t(c,u((function(n){return(0,r(n,1)[0])(i)})),f((function(){return new Error("No guard found to fold "+i)})),o((function(r){throw r}),(function(n){var t=r(n,2);return t[0],(0,t[1])(i)})))}}return i}export{a as createFold}; | ||
import{__read as r}from"tslib";import{z as n,p as t,f as o,a as u,b as a}from"./pipeable-3bdaadc5.js";function f(){for(var f=[],e=0;e<arguments.length;e++)f[e]=arguments[e];function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return function(i){var c=n(f,e);return t(c,a((function(n){return(0,r(n,1)[0])(i)})),u((function(){return new Error("No guard found to fold "+i)})),o((function(r){throw r}),(function(n){var t=r(n,2);return t[0],(0,t[1])(i)})))}}return i}export{f as createFold}; |
@@ -1,1 +0,1 @@ | ||
import{p as n,f as r,a as t,b as o}from"./pipeable-8dfc74c3.js";function u(u){return function(e){return function(f){var c=Object.keys(u);return n(c,o((function(n){return u[n](f)})),t((function(){return new Error("No guard found to fold "+f)})),r((function(n){throw n}),(function(n){return e[n](f)})))}}}export{u as createFoldObject}; | ||
import{p as n,f as r,a as t,b as o}from"./pipeable-3bdaadc5.js";function u(u){return function(e){return function(f){var a=Object.keys(u);return n(a,o((function(n){return u[n](f)})),t((function(){return new Error("No guard found to fold "+f)})),r((function(n){throw n}),(function(n){return e[n](f)})))}}}export{u as createFoldObject}; |
@@ -1,1 +0,1 @@ | ||
export{and,not,or}from"./guard.js";export{createFold}from"./createFold.js";export{createFoldObject}from"./createFoldObject.js";import"tslib";import"./pipeable-8dfc74c3.js"; | ||
export{and,not,or}from"./guard.js";export{createFold}from"./createFold.js";export{createFoldObject}from"./createFoldObject.js";import"tslib";import"./pipeable-3bdaadc5.js"; |
{ | ||
"name": "@fp51/foldable-helpers", | ||
"version": "1.0.0-canary-ce925d4827225d42834edfe2e0e8d3bedc306e0b-1619124842565", | ||
"version": "1.0.0-canary-d111acf1adce5adc66cb66f9a6740611200c2e98-1619125181961", | ||
"description": "Typescript helpers to fold on sum types", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
18757