functype 0.8.34 → 0.8.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-4H62YQ42.mjs +0 -0
- package/dist/chunk-5NZRFQ7O.mjs +1 -0
- package/dist/chunk-OTZ4XGNK.js +1 -0
- package/dist/chunk-WTWWDZY6.js +1 -0
- package/dist/collections/index.d.mts +1 -1
- package/dist/collections/index.d.ts +1 -1
- package/dist/core/task/Task.d.mts +1 -1
- package/dist/core/task/Task.d.ts +1 -1
- package/dist/core/task/Task.js +1 -1
- package/dist/core/task/Task.mjs +1 -1
- package/dist/either/Either.d.mts +1 -1
- package/dist/either/Either.d.ts +1 -1
- package/dist/either/Either.js +1 -1
- package/dist/either/Either.mjs +1 -1
- package/dist/{index-w6bBTfvr.d.ts → index-Bvqg1Srg.d.ts} +53 -55
- package/dist/{index-d37-44E9.d.mts → index-D6OHxaFT.d.mts} +53 -55
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/iterable/index.d.mts +1 -1
- package/dist/iterable/index.d.ts +1 -1
- package/dist/iterable/index.js +1 -1
- package/dist/iterable/index.mjs +1 -1
- package/dist/list/List.d.mts +1 -1
- package/dist/list/List.d.ts +1 -1
- package/dist/list/List.js +1 -1
- package/dist/list/List.mjs +1 -1
- package/dist/map/Map.d.mts +1 -1
- package/dist/map/Map.d.ts +1 -1
- package/dist/map/Map.js +1 -1
- package/dist/map/Map.mjs +1 -1
- package/dist/option/Option.d.mts +1 -1
- package/dist/option/Option.d.ts +1 -1
- package/dist/option/Option.js +1 -1
- package/dist/option/Option.mjs +1 -1
- package/dist/set/Set.d.mts +1 -1
- package/dist/set/Set.d.ts +1 -1
- package/dist/set/Set.js +1 -1
- package/dist/set/Set.mjs +1 -1
- package/dist/try/Try.d.mts +1 -1
- package/dist/try/Try.d.ts +1 -1
- package/dist/try/Try.js +1 -1
- package/dist/try/Try.mjs +1 -1
- package/dist/typeable/Typeable.d.mts +5 -4
- package/dist/typeable/Typeable.d.ts +5 -4
- package/dist/util/index.d.mts +1 -1
- package/dist/util/index.d.ts +1 -1
- package/dist/util/index.js +1 -1
- package/dist/util/index.mjs +1 -1
- package/dist/util/isIterable.js +1 -1
- package/dist/util/isIterable.mjs +1 -1
- package/package.json +10 -10
- package/dist/chunk-AIYLBUQO.js +0 -1
- package/dist/chunk-BNNK42JC.js +0 -1
- package/dist/chunk-HSSHSCKD.mjs +0 -1
- package/dist/chunk-RRAIFS3D.mjs +0 -1
- package/dist/iterable/Seq.d.mts +0 -8
- package/dist/iterable/Seq.d.ts +0 -8
- package/dist/iterable/Seq.js +0 -1
- package/dist/iterable/Seq.mjs +0 -1
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as g}from"./chunk-JF5YGNCO.mjs";import{a as v}from"./chunk-HD6YYUHO.mjs";import{a as R}from"./chunk-377WQNCB.mjs";import{a as U}from"./chunk-HA5XD5KC.mjs";import{a as B}from"./chunk-2I2NKDFN.mjs";import Q from"safe-stable-stringify";import S from"safe-stable-stringify";import j from"safe-stable-stringify";var c=e=>{let t=new U(e),r=l(t),o={...r,add:a=>c([...t,a]),remove:a=>{let L=new U(t);return L.delete(a),c(L)},contains:a=>t.has(a),has:a=>t.has(a),map:a=>c(r.map(a)),flatMap:a=>c(r.flatMap(a)),toList:()=>l(t),toSet:()=>o,toString:()=>`Set(${Array.from(t).toString()})`};return o},h=e=>c(e);var T=e=>{let t=Array.from(e||[]),r={_tag:"List",[Symbol.iterator]:()=>t[Symbol.iterator](),get size(){return t.length},get length(){return t.length},map:o=>T(t.map(o)),flatMap:o=>T(t.flatMap(a=>Array.from(o(a)))),forEach:o=>t.forEach(o),count:o=>t.filter(o).length,exists:o=>t.some(o),filter:o=>T(t.filter(o)),filterNot:o=>T(t.filter(a=>!o(a))),find:o=>u(t.find(o)),get head(){return t[0]},get headOption(){return t.length>0?u(t[0]):d()},get isEmpty(){return t.length===0},toArray:()=>[...t],reduce:o=>t.reduce(o),reduceRight:o=>t.reduceRight(o),foldLeft:o=>a=>t.reduce(a,o),foldRight:o=>a=>t.reduceRight((L,x)=>a(x,L),o),remove:o=>T(t.filter(a=>a!==o)),removeAt:o=>T(t.slice(0,o).concat(t.slice(o+1))),add:o=>T([...t,o]),get:o=>u(t[o]),concat:o=>T([...t,...o.toArray()]),drop:o=>T(t.slice(o)),dropRight:o=>T(t.slice(0,-o)),dropWhile:o=>T(t.slice(t.findIndex(a=>!o(a)))),flatten:()=>T(t.flatMap(o=>Array.isArray(o)?o:[o])),toList:()=>r,toSet:()=>h(t),toString:()=>`List(${j(t)})`,toValue:()=>({_tag:"List",value:t})};return r},l=e=>T(e);var V=e=>({_tag:"Right",value:e,isLeft:()=>!1,isRight:()=>!0,getOrElse:t=>e,getOrThrow:()=>e,map:t=>i(t(e)),mapAsync:t=>t(e).then(r=>i(r)).catch(r=>Promise.resolve(n(r))),merge:t=>t.isLeft()?n(t.value):i([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>n(r)),toOption:()=>y(e),toList:()=>l([e]),toString:()=>`Right(${S(e)})`,[Symbol.iterator]:function*(){yield e},yield:function*(){yield e},traverse:t=>{let r=t(e);return r.isLeft()?n(r.value):i([r.value])},lazyMap:function*(t){yield i(t(e))},tap:t=>(t(e),i(e)),tapLeft:t=>i(e),mapLeft:t=>i(e),bimap:(t,r)=>i(r(e)),fold:(t,r)=>r(e),swap:()=>n(e),then:(t,r)=>Promise.resolve(e).then(t,r)}),w=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>n(e),mapAsync:t=>Promise.resolve(n(e)),merge:t=>n(e),flatMap:t=>n(e),flatMapAsync:t=>Promise.resolve(n(e)),toOption:()=>d(),toList:()=>l(),toString:()=>`Left(${S(e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>n(e),lazyMap:function*(t){yield n(e)},tap:t=>n(e),tapLeft:t=>(t(e),n(e)),mapLeft:t=>n(t(e)),bimap:(t,r)=>n(t(e)),fold:(t,r)=>t(e),swap:()=>i(e),then:(t,r)=>Promise.reject(e).then(null,r)}),i=e=>V(e),n=e=>w(e),Le=e=>e.isRight(),de=e=>e.isLeft(),ye=(e,t)=>{try{return i(e())}catch(r){return n(t(r))}},W=e=>V(e);console.assert(W);var D=e=>w(e);console.assert(D);var ce=async(e,t)=>{try{let r=await e();return i(r)}catch(r){return n(t(r))}},H={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return n(r.value);t.push(r.value)}return i(t)},traverse:(e,t)=>H.sequence(e.map(t)),fromNullable:(e,t)=>e==null?n(t):i(e),fromPredicate:(e,t,r)=>t(e)?i(e):n(r),ap:(e,t)=>e.flatMap(r=>t.map(r)),fromPromise:async(e,t)=>{try{let r=await e;return i(r)}catch(r){return n(t(r))}}};var E=(e,t)=>{let r=v(e,t);return{...g("AppException"),...n(r)}},A=e=>({...g("AppResult"),...i(e)});function O(e,t=r=>r){try{return A(e())}catch(r){return E(t(r))}}O.success=e=>A(e);O.fail=e=>E(e);async function K(e,t=r=>r){try{let r=await e();return A(r)}catch(r){let o=await t(r);return E(o)}}K.success=e=>A(e);K.fail=e=>E(e);var f=e=>{let t={values:new R(e)},r=()=>Array.from(t.values.entries()).map(([s,p])=>B([s,p])),o=s=>f(new R(t.values).set(s.toArray()[0],s.toArray()[1]).entries()),a=s=>{let p=new R(t.values);return p.delete(s)?f(p.entries()):f(t.values.entries())},L=s=>t.values.get(s[0])===s[1],x=()=>t.values.size,_=s=>f(Array.from(t.values.entries()).map(([p,G])=>[p,s(G)])),P=s=>{let p=f(t.values.entries()).toList();return f(p.flatMap(s).toArray())},I=s=>l(r()).reduce(s),N=s=>l(r()).reduceRight(s),z=s=>p=>l(r()).foldLeft(s)(p),F=s=>p=>l(r()).foldRight(s)(p),C=s=>u(t.values.get(s)),$=(s,p)=>u(t.values.get(s)).getOrElse(p),q=()=>t.values.size===0;return{add:o,remove:a,contains:L,get size(){return x()},map:_,flatMap:P,reduce:I,reduceRight:N,foldLeft:z,foldRight:F,get:C,getOrElse:$,get isEmpty(){return q()},orElse:(s,p)=>u(t.values.get(s)).orElse(p),toList:()=>l(r()),toSet:()=>h(r()),toString:()=>`Map(${r().toString()})`}},Ve=e=>f(e);import M from"safe-stable-stringify";var k=e=>({_tag:"Success",value:e,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,get:()=>e,getOrElse:t=>e,orElse:t=>k(e),orThrow:t=>e,toEither:()=>i(e),map:t=>J(()=>t(e)),flatMap:t=>t(e),toString:()=>`Success(${M(e)})`}),b=e=>({_tag:"Failure",value:void 0,error:e,isSuccess:()=>!1,isFailure:()=>!0,get:()=>{throw e},getOrElse:t=>t,orElse:t=>t,orThrow:t=>{throw t},toEither:()=>n(e),map:t=>b(e),flatMap:t=>b(e),toString:()=>`Failure(${M(e)}))`}),J=e=>{try{return k(e())}catch(t){return b(t instanceof Error?t:new Error(String(t)))}};var y=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,getOrThrow:()=>e,orElse:()=>y(e),orNull:()=>e,map:t=>y(t(e)),filter(t){return t(e)?y(e):m},fold:(t,r)=>r(e),flatMap:t=>t(e),reduce:t=>t(void 0,e),reduceRight:t=>t(void 0,e),foldLeft:t=>r=>r(t,e),foldRight:t=>r=>r(e,t),toList:()=>l([e]),contains:t=>t===e,size:1,toEither:t=>i(e),toString:()=>`Some(${Q(e)})`,toValue:()=>({_tag:"Some",value:e})}),m={_tag:"None",value:void 0,isEmpty:!0,get:()=>{throw new Error("Cannot call get() on None")},getOrElse:e=>e,getOrThrow(e){throw e},orElse:e=>e,orNull:()=>null,map:e=>m,filter(e){return m},flatMap:e=>m,reduce:()=>{},reduceRight:()=>{},fold:(e,t)=>e(),foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>l([]),contains:()=>!1,size:0,toEither:e=>n(e),toString:()=>"None",toValue:()=>({_tag:"None",value:void 0})},d=()=>m,u=e=>e!=null?y(e):d();u.from=e=>u(e);u.none=()=>d();export{y as a,d as b,u as c,h as d,l as e,i as f,n as g,Le as h,de as i,ye as j,W as k,D as l,ce as m,H as n,E as o,A as p,O as q,K as r,Ve as s,J as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkSQWNJC6Ojs = require('./chunk-SQWNJC6O.js');var _chunk2U34DUZUjs = require('./chunk-2U34DUZU.js');var _chunk5VTXJIR3js = require('./chunk-5VTXJIR3.js');var _chunk3VJERXBPjs = require('./chunk-3VJERXBP.js');var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');var _safestablestringify = require('safe-stable-stringify'); var _safestablestringify2 = _interopRequireDefault(_safestablestringify);var c=e=>{let t=new (0, _chunk3VJERXBPjs.a)(e),r=l(t),o={...r,add:a=>c([...t,a]),remove:a=>{let L=new (0, _chunk3VJERXBPjs.a)(t);return L.delete(a),c(L)},contains:a=>t.has(a),has:a=>t.has(a),map:a=>c(r.map(a)),flatMap:a=>c(r.flatMap(a)),toList:()=>l(t),toSet:()=>o,toString:()=>`Set(${Array.from(t).toString()})`};return o},h= exports.d =e=>c(e);var T=e=>{let t=Array.from(e||[]),r={_tag:"List",[Symbol.iterator]:()=>t[Symbol.iterator](),get size(){return t.length},get length(){return t.length},map:o=>T(t.map(o)),flatMap:o=>T(t.flatMap(a=>Array.from(o(a)))),forEach:o=>t.forEach(o),count:o=>t.filter(o).length,exists:o=>t.some(o),filter:o=>T(t.filter(o)),filterNot:o=>T(t.filter(a=>!o(a))),find:o=>u(t.find(o)),get head(){return t[0]},get headOption(){return t.length>0?u(t[0]):d()},get isEmpty(){return t.length===0},toArray:()=>[...t],reduce:o=>t.reduce(o),reduceRight:o=>t.reduceRight(o),foldLeft:o=>a=>t.reduce(a,o),foldRight:o=>a=>t.reduceRight((L,x)=>a(x,L),o),remove:o=>T(t.filter(a=>a!==o)),removeAt:o=>T(t.slice(0,o).concat(t.slice(o+1))),add:o=>T([...t,o]),get:o=>u(t[o]),concat:o=>T([...t,...o.toArray()]),drop:o=>T(t.slice(o)),dropRight:o=>T(t.slice(0,-o)),dropWhile:o=>T(t.slice(t.findIndex(a=>!o(a)))),flatten:()=>T(t.flatMap(o=>Array.isArray(o)?o:[o])),toList:()=>r,toSet:()=>h(t),toString:()=>`List(${_safestablestringify2.default.call(void 0, t)})`,toValue:()=>({_tag:"List",value:t})};return r},l= exports.e =e=>T(e);var V=e=>({_tag:"Right",value:e,isLeft:()=>!1,isRight:()=>!0,getOrElse:t=>e,getOrThrow:()=>e,map:t=>i(t(e)),mapAsync:t=>t(e).then(r=>i(r)).catch(r=>Promise.resolve(n(r))),merge:t=>t.isLeft()?n(t.value):i([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>n(r)),toOption:()=>y(e),toList:()=>l([e]),toString:()=>`Right(${_safestablestringify2.default.call(void 0, e)})`,[Symbol.iterator]:function*(){yield e},yield:function*(){yield e},traverse:t=>{let r=t(e);return r.isLeft()?n(r.value):i([r.value])},lazyMap:function*(t){yield i(t(e))},tap:t=>(t(e),i(e)),tapLeft:t=>i(e),mapLeft:t=>i(e),bimap:(t,r)=>i(r(e)),fold:(t,r)=>r(e),swap:()=>n(e),then:(t,r)=>Promise.resolve(e).then(t,r)}),w=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>n(e),mapAsync:t=>Promise.resolve(n(e)),merge:t=>n(e),flatMap:t=>n(e),flatMapAsync:t=>Promise.resolve(n(e)),toOption:()=>d(),toList:()=>l(),toString:()=>`Left(${_safestablestringify2.default.call(void 0, e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>n(e),lazyMap:function*(t){yield n(e)},tap:t=>n(e),tapLeft:t=>(t(e),n(e)),mapLeft:t=>n(t(e)),bimap:(t,r)=>n(t(e)),fold:(t,r)=>t(e),swap:()=>i(e),then:(t,r)=>Promise.reject(e).then(null,r)}),i= exports.f =e=>V(e),n= exports.g =e=>w(e),Le= exports.h =e=>e.isRight(),de= exports.i =e=>e.isLeft(),ye= exports.j =(e,t)=>{try{return i(e())}catch(r){return n(t(r))}},W= exports.k =e=>V(e);console.assert(W);var D=e=>w(e);console.assert(D);var ce=async(e,t)=>{try{let r=await e();return i(r)}catch(r){return n(t(r))}},H= exports.n ={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return n(r.value);t.push(r.value)}return i(t)},traverse:(e,t)=>H.sequence(e.map(t)),fromNullable:(e,t)=>e==null?n(t):i(e),fromPredicate:(e,t,r)=>t(e)?i(e):n(r),ap:(e,t)=>e.flatMap(r=>t.map(r)),fromPromise:async(e,t)=>{try{let r=await e;return i(r)}catch(r){return n(t(r))}}};var E=(e,t)=>{let r=_chunk2U34DUZUjs.a.call(void 0, e,t);return{..._chunkSQWNJC6Ojs.a.call(void 0, "AppException"),...n(r)}},A= exports.p =e=>({..._chunkSQWNJC6Ojs.a.call(void 0, "AppResult"),...i(e)});function O(e,t=r=>r){try{return A(e())}catch(r){return E(t(r))}}O.success=e=>A(e);O.fail=e=>E(e);async function K(e,t=r=>r){try{let r=await e();return A(r)}catch(r){let o=await t(r);return E(o)}}K.success=e=>A(e);K.fail=e=>E(e);var f=e=>{let t={values:new (0, _chunk5VTXJIR3js.a)(e)},r=()=>Array.from(t.values.entries()).map(([s,p])=>_chunkOXLZ6UIZjs.a.call(void 0, [s,p])),o=s=>f(new (0, _chunk5VTXJIR3js.a)(t.values).set(s.toArray()[0],s.toArray()[1]).entries()),a=s=>{let p=new (0, _chunk5VTXJIR3js.a)(t.values);return p.delete(s)?f(p.entries()):f(t.values.entries())},L=s=>t.values.get(s[0])===s[1],x=()=>t.values.size,_=s=>f(Array.from(t.values.entries()).map(([p,G])=>[p,s(G)])),P=s=>{let p=f(t.values.entries()).toList();return f(p.flatMap(s).toArray())},I=s=>l(r()).reduce(s),N=s=>l(r()).reduceRight(s),z=s=>p=>l(r()).foldLeft(s)(p),F=s=>p=>l(r()).foldRight(s)(p),C=s=>u(t.values.get(s)),$=(s,p)=>u(t.values.get(s)).getOrElse(p),q=()=>t.values.size===0;return{add:o,remove:a,contains:L,get size(){return x()},map:_,flatMap:P,reduce:I,reduceRight:N,foldLeft:z,foldRight:F,get:C,getOrElse:$,get isEmpty(){return q()},orElse:(s,p)=>u(t.values.get(s)).orElse(p),toList:()=>l(r()),toSet:()=>h(r()),toString:()=>`Map(${r().toString()})`}},Ve= exports.s =e=>f(e);var k=e=>({_tag:"Success",value:e,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,get:()=>e,getOrElse:t=>e,orElse:t=>k(e),orThrow:t=>e,toEither:()=>i(e),map:t=>J(()=>t(e)),flatMap:t=>t(e),toString:()=>`Success(${_safestablestringify2.default.call(void 0, e)})`}),b=e=>({_tag:"Failure",value:void 0,error:e,isSuccess:()=>!1,isFailure:()=>!0,get:()=>{throw e},getOrElse:t=>t,orElse:t=>t,orThrow:t=>{throw t},toEither:()=>n(e),map:t=>b(e),flatMap:t=>b(e),toString:()=>`Failure(${_safestablestringify2.default.call(void 0, e)}))`}),J= exports.t =e=>{try{return k(e())}catch(t){return b(t instanceof Error?t:new Error(String(t)))}};var y=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,getOrThrow:()=>e,orElse:()=>y(e),orNull:()=>e,map:t=>y(t(e)),filter(t){return t(e)?y(e):m},fold:(t,r)=>r(e),flatMap:t=>t(e),reduce:t=>t(void 0,e),reduceRight:t=>t(void 0,e),foldLeft:t=>r=>r(t,e),foldRight:t=>r=>r(e,t),toList:()=>l([e]),contains:t=>t===e,size:1,toEither:t=>i(e),toString:()=>`Some(${_safestablestringify2.default.call(void 0, e)})`,toValue:()=>({_tag:"Some",value:e})}),m={_tag:"None",value:void 0,isEmpty:!0,get:()=>{throw new Error("Cannot call get() on None")},getOrElse:e=>e,getOrThrow(e){throw e},orElse:e=>e,orNull:()=>null,map:e=>m,filter(e){return m},flatMap:e=>m,reduce:()=>{},reduceRight:()=>{},fold:(e,t)=>e(),foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>l([]),contains:()=>!1,size:0,toEither:e=>n(e),toString:()=>"None",toValue:()=>({_tag:"None",value:void 0})},d= exports.b =()=>m,u= exports.c =e=>e!=null?y(e):d();u.from=e=>u(e);u.none=()=>d();exports.a = y; exports.b = d; exports.c = u; exports.d = h; exports.e = l; exports.f = i; exports.g = n; exports.h = Le; exports.i = de; exports.j = ye; exports.k = W; exports.l = D; exports.m = ce; exports.n = H; exports.o = E; exports.p = A; exports.q = O; exports.r = K; exports.s = Ve; exports.t = J;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AppException,
|
|
1
|
+
export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index-D6OHxaFT.mjs';
|
|
2
2
|
import '../error/Throwable.mjs';
|
|
3
3
|
import '../../functor/index.mjs';
|
|
4
4
|
import '../base/Base.mjs';
|
package/dist/core/task/Task.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AppException,
|
|
1
|
+
export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index-Bvqg1Srg.js';
|
|
2
2
|
import '../error/Throwable.js';
|
|
3
3
|
import '../../functor/index.js';
|
|
4
4
|
import '../base/Base.js';
|
package/dist/core/task/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOTZ4XGNKjs = require('../../chunk-OTZ4XGNK.js');require('../../chunk-SQWNJC6O.js');require('../../chunk-5O6YELD3.js');require('../../chunk-2U34DUZU.js');require('../../chunk-5VTXJIR3.js');require('../../chunk-3VJERXBP.js');require('../../chunk-OXLZ6UIZ.js');require('../../chunk-XORABVON.js');require('../../chunk-K3EKBPQE.js');require('../../chunk-WTWWDZY6.js');exports.AppException = _chunkOTZ4XGNKjs.o; exports.AppResult = _chunkOTZ4XGNKjs.p; exports.AsyncTask = _chunkOTZ4XGNKjs.r; exports.Task = _chunkOTZ4XGNKjs.q;
|
package/dist/core/task/Task.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{o as a,p as b,q as c,r as d}from"../../chunk-5NZRFQ7O.mjs";import"../../chunk-JF5YGNCO.mjs";import"../../chunk-V7DKESTM.mjs";import"../../chunk-HD6YYUHO.mjs";import"../../chunk-377WQNCB.mjs";import"../../chunk-HA5XD5KC.mjs";import"../../chunk-2I2NKDFN.mjs";import"../../chunk-V2J3R5IU.mjs";import"../../chunk-2ML63TYF.mjs";import"../../chunk-4H62YQ42.mjs";export{a as AppException,b as AppResult,d as AsyncTask,c as Task};
|
package/dist/either/Either.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../functor/index.mjs';
|
|
2
|
-
export { E as Either,
|
|
2
|
+
export { E as Either, c as Left, R as Right, T as TestEither, f as TypeCheckLeft, e as TypeCheckRight, d as isLeft, i as isRight, t as tryCatch, g as tryCatchAsync } from '../index-D6OHxaFT.mjs';
|
|
3
3
|
import '../typeable/Typeable.mjs';
|
|
4
4
|
import '../core/base/Base.mjs';
|
|
5
5
|
import '../core/error/Throwable.mjs';
|
package/dist/either/Either.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../functor/index.js';
|
|
2
|
-
export { E as Either,
|
|
2
|
+
export { E as Either, c as Left, R as Right, T as TestEither, f as TypeCheckLeft, e as TypeCheckRight, d as isLeft, i as isRight, t as tryCatch, g as tryCatchAsync } from '../index-Bvqg1Srg.js';
|
|
3
3
|
import '../typeable/Typeable.js';
|
|
4
4
|
import '../core/base/Base.js';
|
|
5
5
|
import '../core/error/Throwable.js';
|
package/dist/either/Either.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOTZ4XGNKjs = require('../chunk-OTZ4XGNK.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');require('../chunk-WTWWDZY6.js');exports.Either = _chunkOTZ4XGNKjs.n; exports.Left = _chunkOTZ4XGNKjs.g; exports.Right = _chunkOTZ4XGNKjs.f; exports.TypeCheckLeft = _chunkOTZ4XGNKjs.l; exports.TypeCheckRight = _chunkOTZ4XGNKjs.k; exports.isLeft = _chunkOTZ4XGNKjs.i; exports.isRight = _chunkOTZ4XGNKjs.h; exports.tryCatch = _chunkOTZ4XGNKjs.j; exports.tryCatchAsync = _chunkOTZ4XGNKjs.m;
|
package/dist/either/Either.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{f as a,g as b,h as c,i as d,j as e,k as f,l as g,m as h,n as i}from"../chunk-5NZRFQ7O.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-4H62YQ42.mjs";export{i as Either,b as Left,a as Right,g as TypeCheckLeft,f as TypeCheckRight,d as isLeft,c as isRight,e as tryCatch,h as tryCatchAsync};
|
|
@@ -16,11 +16,13 @@ type Option<T extends Type> = {
|
|
|
16
16
|
getOrElse(defaultValue: T): T;
|
|
17
17
|
getOrThrow(error: Error): T;
|
|
18
18
|
orElse(alternative: Option<T>): Option<T>;
|
|
19
|
+
orNull(): T | null;
|
|
19
20
|
map<U extends Type>(f: (value: T) => U): Option<U>;
|
|
20
21
|
filter(predicate: (value: T) => boolean): Option<T>;
|
|
21
22
|
flatMap<U extends Type>(f: (value: T) => Option<U>): Option<U>;
|
|
22
23
|
reduce<U>(f: (acc: U, value: T) => U): U;
|
|
23
24
|
reduceRight<U>(f: (acc: U, value: T) => U): U;
|
|
25
|
+
fold<U>(onNone: () => U, onSome: (value: T) => U): U;
|
|
24
26
|
foldLeft<B>(z: B): (op: (b: B, a: T) => B) => B;
|
|
25
27
|
foldRight<B>(z: B): (op: (a: T, b: B) => B) => B;
|
|
26
28
|
toList(): List<T>;
|
|
@@ -33,44 +35,23 @@ type Option<T extends Type> = {
|
|
|
33
35
|
value: T;
|
|
34
36
|
};
|
|
35
37
|
} & (Traversable<T> & Functor<T> & Typeable<"Some" | "None"> & Valuable<T>);
|
|
36
|
-
declare const Option:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
readonly [Symbol.iterator]: () => Iterator<A>;
|
|
42
|
-
map: <B>(f: (a: A) => B) => Seq<B>;
|
|
43
|
-
flatMap: <B>(f: (a: A) => _Iterable_<B>) => Seq<B>;
|
|
44
|
-
forEach: (f: (a: A) => void) => void;
|
|
45
|
-
count: (p: (x: A) => boolean) => number;
|
|
46
|
-
exists: (p: (a: A) => boolean) => boolean;
|
|
47
|
-
filter: (p: (a: A) => boolean) => Seq<A>;
|
|
48
|
-
filterNot: (p: (a: A) => boolean) => Seq<A>;
|
|
49
|
-
find: (p: (a: A) => boolean) => Option<A>;
|
|
50
|
-
readonly head: A;
|
|
51
|
-
readonly headOption: Option<A>;
|
|
52
|
-
readonly isEmpty: boolean;
|
|
53
|
-
readonly size: number;
|
|
54
|
-
toArray: () => A[];
|
|
55
|
-
reduce: (f: (prev: A, curr: A) => A) => A;
|
|
56
|
-
reduceRight: (f: (prev: A, curr: A) => A) => A;
|
|
57
|
-
foldLeft: <B>(z: B) => (op: (b: B, a: A) => B) => B;
|
|
58
|
-
foldRight: <B>(z: B) => (op: (a: A, b: B) => B) => B;
|
|
59
|
-
toString: () => string;
|
|
60
|
-
toValue: () => {
|
|
61
|
-
_tag: string;
|
|
62
|
-
value: A[];
|
|
63
|
-
};
|
|
64
|
-
} & _Iterable_<A> & Typeable<"Seq">;
|
|
65
|
-
declare const Seq: <A>(values?: Iterable<A> | _Iterable_<A>) => Seq<A>;
|
|
38
|
+
declare const Option: {
|
|
39
|
+
<T extends Type>(value: T | null | undefined): Option<T>;
|
|
40
|
+
from<T>(value: T): Option<T>;
|
|
41
|
+
none<T>(): Option<T>;
|
|
42
|
+
};
|
|
66
43
|
|
|
67
|
-
type
|
|
44
|
+
type IterableType<A extends Type> = {
|
|
68
45
|
count(p: (x: A) => boolean): number;
|
|
69
46
|
find(p: (a: A) => boolean): Option<A>;
|
|
70
47
|
forEach(f: (a: A) => void): void;
|
|
48
|
+
drop(n: number): IterableType<A>;
|
|
49
|
+
dropRight(n: number): IterableType<A>;
|
|
50
|
+
dropWhile(p: (a: A) => boolean): IterableType<A>;
|
|
71
51
|
exists(p: (a: A) => boolean): boolean;
|
|
72
|
-
filter(p: (a: A) => boolean):
|
|
73
|
-
filterNot(p: (a: A) => boolean):
|
|
52
|
+
filter(p: (a: A) => boolean): IterableType<A>;
|
|
53
|
+
filterNot(p: (a: A) => boolean): IterableType<A>;
|
|
54
|
+
flatten<B>(): IterableType<B>;
|
|
74
55
|
reduce(f: (b: A, a: A) => A): A;
|
|
75
56
|
reduceRight(f: (b: A, a: A) => A): A;
|
|
76
57
|
foldLeft<B>(z: B): (op: (b: B, a: A) => B) => B;
|
|
@@ -78,11 +59,22 @@ type _Iterable_<A extends Type> = {
|
|
|
78
59
|
get head(): A;
|
|
79
60
|
get headOption(): Option<A>;
|
|
80
61
|
get isEmpty(): boolean;
|
|
81
|
-
map<B extends Type>(f: (a: A) => B):
|
|
82
|
-
flatMap<B extends Type>(f: (a: A) =>
|
|
62
|
+
map<B extends Type>(f: (a: A) => B): IterableType<B>;
|
|
63
|
+
flatMap<B extends Type>(f: (a: A) => IterableType<B>): IterableType<B>;
|
|
83
64
|
get size(): number;
|
|
84
65
|
toArray(): readonly A[];
|
|
85
|
-
|
|
66
|
+
toValue: () => {
|
|
67
|
+
_tag: string;
|
|
68
|
+
value: A[];
|
|
69
|
+
};
|
|
70
|
+
} & Iterable<A> & Functor<A>;
|
|
71
|
+
|
|
72
|
+
type Converters<A> = {
|
|
73
|
+
toList(): List<A>;
|
|
74
|
+
toSet(): Set<A>;
|
|
75
|
+
toString(): string;
|
|
76
|
+
};
|
|
77
|
+
type Collection<A> = Converters<A>;
|
|
86
78
|
|
|
87
79
|
type Set<A> = {
|
|
88
80
|
add: (value: A) => Set<A>;
|
|
@@ -90,28 +82,35 @@ type Set<A> = {
|
|
|
90
82
|
contains: (value: A) => boolean;
|
|
91
83
|
has: (value: A) => boolean;
|
|
92
84
|
map: <B>(f: (a: A) => B) => Set<B>;
|
|
93
|
-
flatMap: <B>(f: (a: A) =>
|
|
85
|
+
flatMap: <B>(f: (a: A) => IterableType<B>) => Set<B>;
|
|
94
86
|
toList: () => List<A>;
|
|
95
87
|
toSet: () => Set<A>;
|
|
96
88
|
toString: () => string;
|
|
97
|
-
} &
|
|
98
|
-
declare const Set: <A>(iterable?: Iterable<A> |
|
|
99
|
-
|
|
100
|
-
type Converters<A> = {
|
|
101
|
-
toList(): List<A>;
|
|
102
|
-
toSet(): Set<A>;
|
|
103
|
-
toString(): string;
|
|
104
|
-
};
|
|
105
|
-
type Collection<A> = Converters<A>;
|
|
89
|
+
} & IterableType<A> & Collection<A>;
|
|
90
|
+
declare const Set: <A>(iterable?: Iterable<A> | IterableType<A>) => Set<A>;
|
|
106
91
|
|
|
107
|
-
type InternalList<A> = List<A> & ArrayLike<A> & _Iterable_<A> & Collection<A>;
|
|
108
92
|
type List<A> = {
|
|
109
|
-
|
|
93
|
+
readonly length: number;
|
|
94
|
+
readonly [Symbol.iterator]: () => Iterator<A>;
|
|
110
95
|
map: <B>(f: (a: A) => B) => List<B>;
|
|
111
|
-
flatMap: <B>(f: (a: A) =>
|
|
96
|
+
flatMap: <B>(f: (a: A) => IterableType<B>) => List<B>;
|
|
97
|
+
forEach: (f: (a: A) => void) => void;
|
|
98
|
+
count: (p: (x: A) => boolean) => number;
|
|
99
|
+
exists: (p: (a: A) => boolean) => boolean;
|
|
100
|
+
filter: (p: (a: A) => boolean) => List<A>;
|
|
101
|
+
filterNot: (p: (a: A) => boolean) => List<A>;
|
|
102
|
+
find: (p: (a: A) => boolean) => Option<A>;
|
|
103
|
+
readonly head: A;
|
|
104
|
+
readonly headOption: Option<A>;
|
|
105
|
+
readonly isEmpty: boolean;
|
|
106
|
+
toArray: () => A[];
|
|
107
|
+
reduce: (f: (prev: A, curr: A) => A) => A;
|
|
108
|
+
reduceRight: (f: (prev: A, curr: A) => A) => A;
|
|
109
|
+
foldLeft: <B>(z: B) => (op: (b: B, a: A) => B) => B;
|
|
110
|
+
foldRight: <B>(z: B) => (op: (a: A, b: B) => B) => B;
|
|
112
111
|
remove: (value: A) => List<A>;
|
|
113
|
-
contains: (value: A) => boolean;
|
|
114
112
|
removeAt: (index: number) => List<A>;
|
|
113
|
+
add: (item: A) => List<A>;
|
|
115
114
|
get: (index: number) => Option<A>;
|
|
116
115
|
concat: (other: List<A>) => List<A>;
|
|
117
116
|
toList: () => List<A>;
|
|
@@ -121,9 +120,8 @@ type List<A> = {
|
|
|
121
120
|
_tag: string;
|
|
122
121
|
value: A[];
|
|
123
122
|
};
|
|
124
|
-
} &
|
|
125
|
-
declare const List: <A>(values?: Iterable<A>
|
|
126
|
-
declare const TestList: <A>(values?: Iterable<A> | _Iterable_<A>) => InternalList<A>;
|
|
123
|
+
} & IterableType<A> & Typeable<"List">;
|
|
124
|
+
declare const List: <A>(values?: Iterable<A>) => List<A>;
|
|
127
125
|
|
|
128
126
|
type TestEither<L extends Type, R extends Type> = Either<L, R> & Functor<R>;
|
|
129
127
|
declare const Right: <L extends Type, R extends Type>(value: R) => Either<L, R>;
|
|
@@ -201,7 +199,7 @@ type Map<K, V> = {
|
|
|
201
199
|
add(item: Tuple<[K, V]>): Map<K, V>;
|
|
202
200
|
remove(value: K): Map<K, V>;
|
|
203
201
|
map<U>(f: (value: V) => U): Map<K, U>;
|
|
204
|
-
flatMap<K2, V2>(f: (entry: Tuple<[K, V]>) =>
|
|
202
|
+
flatMap<K2, V2>(f: (entry: Tuple<[K, V]>) => IterableType<[K2, V2]>): Map<K2, V2>;
|
|
205
203
|
get(key: K): Option<V>;
|
|
206
204
|
getOrElse(key: K, defaultValue: V): V;
|
|
207
205
|
orElse(key: K, alternative: Option<V>): Option<V>;
|
|
@@ -235,4 +233,4 @@ type Traversable<A extends Type> = Functor<A> & {
|
|
|
235
233
|
foldRight<B>(z: B): (op: (a: A, b: B) => B) => B;
|
|
236
234
|
};
|
|
237
235
|
|
|
238
|
-
export { AppException as A, type Converters as C, Either as E, List as L, Map as M, None as N, Option as O, Right as R, Some as S,
|
|
236
|
+
export { AppException as A, type Converters as C, Either as E, type IterableType as I, List as L, Map as M, None as N, Option as O, Right as R, Some as S, type TestEither as T, type Collection as a, Set as b, Left as c, isLeft as d, TypeCheckRight as e, TypeCheckLeft as f, tryCatchAsync as g, AppResult as h, isRight as i, Task as j, AsyncTask as k, Try as l, type Traversable as m, tryCatch as t };
|
|
@@ -16,11 +16,13 @@ type Option<T extends Type> = {
|
|
|
16
16
|
getOrElse(defaultValue: T): T;
|
|
17
17
|
getOrThrow(error: Error): T;
|
|
18
18
|
orElse(alternative: Option<T>): Option<T>;
|
|
19
|
+
orNull(): T | null;
|
|
19
20
|
map<U extends Type>(f: (value: T) => U): Option<U>;
|
|
20
21
|
filter(predicate: (value: T) => boolean): Option<T>;
|
|
21
22
|
flatMap<U extends Type>(f: (value: T) => Option<U>): Option<U>;
|
|
22
23
|
reduce<U>(f: (acc: U, value: T) => U): U;
|
|
23
24
|
reduceRight<U>(f: (acc: U, value: T) => U): U;
|
|
25
|
+
fold<U>(onNone: () => U, onSome: (value: T) => U): U;
|
|
24
26
|
foldLeft<B>(z: B): (op: (b: B, a: T) => B) => B;
|
|
25
27
|
foldRight<B>(z: B): (op: (a: T, b: B) => B) => B;
|
|
26
28
|
toList(): List<T>;
|
|
@@ -33,44 +35,23 @@ type Option<T extends Type> = {
|
|
|
33
35
|
value: T;
|
|
34
36
|
};
|
|
35
37
|
} & (Traversable<T> & Functor<T> & Typeable<"Some" | "None"> & Valuable<T>);
|
|
36
|
-
declare const Option:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
readonly [Symbol.iterator]: () => Iterator<A>;
|
|
42
|
-
map: <B>(f: (a: A) => B) => Seq<B>;
|
|
43
|
-
flatMap: <B>(f: (a: A) => _Iterable_<B>) => Seq<B>;
|
|
44
|
-
forEach: (f: (a: A) => void) => void;
|
|
45
|
-
count: (p: (x: A) => boolean) => number;
|
|
46
|
-
exists: (p: (a: A) => boolean) => boolean;
|
|
47
|
-
filter: (p: (a: A) => boolean) => Seq<A>;
|
|
48
|
-
filterNot: (p: (a: A) => boolean) => Seq<A>;
|
|
49
|
-
find: (p: (a: A) => boolean) => Option<A>;
|
|
50
|
-
readonly head: A;
|
|
51
|
-
readonly headOption: Option<A>;
|
|
52
|
-
readonly isEmpty: boolean;
|
|
53
|
-
readonly size: number;
|
|
54
|
-
toArray: () => A[];
|
|
55
|
-
reduce: (f: (prev: A, curr: A) => A) => A;
|
|
56
|
-
reduceRight: (f: (prev: A, curr: A) => A) => A;
|
|
57
|
-
foldLeft: <B>(z: B) => (op: (b: B, a: A) => B) => B;
|
|
58
|
-
foldRight: <B>(z: B) => (op: (a: A, b: B) => B) => B;
|
|
59
|
-
toString: () => string;
|
|
60
|
-
toValue: () => {
|
|
61
|
-
_tag: string;
|
|
62
|
-
value: A[];
|
|
63
|
-
};
|
|
64
|
-
} & _Iterable_<A> & Typeable<"Seq">;
|
|
65
|
-
declare const Seq: <A>(values?: Iterable<A> | _Iterable_<A>) => Seq<A>;
|
|
38
|
+
declare const Option: {
|
|
39
|
+
<T extends Type>(value: T | null | undefined): Option<T>;
|
|
40
|
+
from<T>(value: T): Option<T>;
|
|
41
|
+
none<T>(): Option<T>;
|
|
42
|
+
};
|
|
66
43
|
|
|
67
|
-
type
|
|
44
|
+
type IterableType<A extends Type> = {
|
|
68
45
|
count(p: (x: A) => boolean): number;
|
|
69
46
|
find(p: (a: A) => boolean): Option<A>;
|
|
70
47
|
forEach(f: (a: A) => void): void;
|
|
48
|
+
drop(n: number): IterableType<A>;
|
|
49
|
+
dropRight(n: number): IterableType<A>;
|
|
50
|
+
dropWhile(p: (a: A) => boolean): IterableType<A>;
|
|
71
51
|
exists(p: (a: A) => boolean): boolean;
|
|
72
|
-
filter(p: (a: A) => boolean):
|
|
73
|
-
filterNot(p: (a: A) => boolean):
|
|
52
|
+
filter(p: (a: A) => boolean): IterableType<A>;
|
|
53
|
+
filterNot(p: (a: A) => boolean): IterableType<A>;
|
|
54
|
+
flatten<B>(): IterableType<B>;
|
|
74
55
|
reduce(f: (b: A, a: A) => A): A;
|
|
75
56
|
reduceRight(f: (b: A, a: A) => A): A;
|
|
76
57
|
foldLeft<B>(z: B): (op: (b: B, a: A) => B) => B;
|
|
@@ -78,11 +59,22 @@ type _Iterable_<A extends Type> = {
|
|
|
78
59
|
get head(): A;
|
|
79
60
|
get headOption(): Option<A>;
|
|
80
61
|
get isEmpty(): boolean;
|
|
81
|
-
map<B extends Type>(f: (a: A) => B):
|
|
82
|
-
flatMap<B extends Type>(f: (a: A) =>
|
|
62
|
+
map<B extends Type>(f: (a: A) => B): IterableType<B>;
|
|
63
|
+
flatMap<B extends Type>(f: (a: A) => IterableType<B>): IterableType<B>;
|
|
83
64
|
get size(): number;
|
|
84
65
|
toArray(): readonly A[];
|
|
85
|
-
|
|
66
|
+
toValue: () => {
|
|
67
|
+
_tag: string;
|
|
68
|
+
value: A[];
|
|
69
|
+
};
|
|
70
|
+
} & Iterable<A> & Functor<A>;
|
|
71
|
+
|
|
72
|
+
type Converters<A> = {
|
|
73
|
+
toList(): List<A>;
|
|
74
|
+
toSet(): Set<A>;
|
|
75
|
+
toString(): string;
|
|
76
|
+
};
|
|
77
|
+
type Collection<A> = Converters<A>;
|
|
86
78
|
|
|
87
79
|
type Set<A> = {
|
|
88
80
|
add: (value: A) => Set<A>;
|
|
@@ -90,28 +82,35 @@ type Set<A> = {
|
|
|
90
82
|
contains: (value: A) => boolean;
|
|
91
83
|
has: (value: A) => boolean;
|
|
92
84
|
map: <B>(f: (a: A) => B) => Set<B>;
|
|
93
|
-
flatMap: <B>(f: (a: A) =>
|
|
85
|
+
flatMap: <B>(f: (a: A) => IterableType<B>) => Set<B>;
|
|
94
86
|
toList: () => List<A>;
|
|
95
87
|
toSet: () => Set<A>;
|
|
96
88
|
toString: () => string;
|
|
97
|
-
} &
|
|
98
|
-
declare const Set: <A>(iterable?: Iterable<A> |
|
|
99
|
-
|
|
100
|
-
type Converters<A> = {
|
|
101
|
-
toList(): List<A>;
|
|
102
|
-
toSet(): Set<A>;
|
|
103
|
-
toString(): string;
|
|
104
|
-
};
|
|
105
|
-
type Collection<A> = Converters<A>;
|
|
89
|
+
} & IterableType<A> & Collection<A>;
|
|
90
|
+
declare const Set: <A>(iterable?: Iterable<A> | IterableType<A>) => Set<A>;
|
|
106
91
|
|
|
107
|
-
type InternalList<A> = List<A> & ArrayLike<A> & _Iterable_<A> & Collection<A>;
|
|
108
92
|
type List<A> = {
|
|
109
|
-
|
|
93
|
+
readonly length: number;
|
|
94
|
+
readonly [Symbol.iterator]: () => Iterator<A>;
|
|
110
95
|
map: <B>(f: (a: A) => B) => List<B>;
|
|
111
|
-
flatMap: <B>(f: (a: A) =>
|
|
96
|
+
flatMap: <B>(f: (a: A) => IterableType<B>) => List<B>;
|
|
97
|
+
forEach: (f: (a: A) => void) => void;
|
|
98
|
+
count: (p: (x: A) => boolean) => number;
|
|
99
|
+
exists: (p: (a: A) => boolean) => boolean;
|
|
100
|
+
filter: (p: (a: A) => boolean) => List<A>;
|
|
101
|
+
filterNot: (p: (a: A) => boolean) => List<A>;
|
|
102
|
+
find: (p: (a: A) => boolean) => Option<A>;
|
|
103
|
+
readonly head: A;
|
|
104
|
+
readonly headOption: Option<A>;
|
|
105
|
+
readonly isEmpty: boolean;
|
|
106
|
+
toArray: () => A[];
|
|
107
|
+
reduce: (f: (prev: A, curr: A) => A) => A;
|
|
108
|
+
reduceRight: (f: (prev: A, curr: A) => A) => A;
|
|
109
|
+
foldLeft: <B>(z: B) => (op: (b: B, a: A) => B) => B;
|
|
110
|
+
foldRight: <B>(z: B) => (op: (a: A, b: B) => B) => B;
|
|
112
111
|
remove: (value: A) => List<A>;
|
|
113
|
-
contains: (value: A) => boolean;
|
|
114
112
|
removeAt: (index: number) => List<A>;
|
|
113
|
+
add: (item: A) => List<A>;
|
|
115
114
|
get: (index: number) => Option<A>;
|
|
116
115
|
concat: (other: List<A>) => List<A>;
|
|
117
116
|
toList: () => List<A>;
|
|
@@ -121,9 +120,8 @@ type List<A> = {
|
|
|
121
120
|
_tag: string;
|
|
122
121
|
value: A[];
|
|
123
122
|
};
|
|
124
|
-
} &
|
|
125
|
-
declare const List: <A>(values?: Iterable<A>
|
|
126
|
-
declare const TestList: <A>(values?: Iterable<A> | _Iterable_<A>) => InternalList<A>;
|
|
123
|
+
} & IterableType<A> & Typeable<"List">;
|
|
124
|
+
declare const List: <A>(values?: Iterable<A>) => List<A>;
|
|
127
125
|
|
|
128
126
|
type TestEither<L extends Type, R extends Type> = Either<L, R> & Functor<R>;
|
|
129
127
|
declare const Right: <L extends Type, R extends Type>(value: R) => Either<L, R>;
|
|
@@ -201,7 +199,7 @@ type Map<K, V> = {
|
|
|
201
199
|
add(item: Tuple<[K, V]>): Map<K, V>;
|
|
202
200
|
remove(value: K): Map<K, V>;
|
|
203
201
|
map<U>(f: (value: V) => U): Map<K, U>;
|
|
204
|
-
flatMap<K2, V2>(f: (entry: Tuple<[K, V]>) =>
|
|
202
|
+
flatMap<K2, V2>(f: (entry: Tuple<[K, V]>) => IterableType<[K2, V2]>): Map<K2, V2>;
|
|
205
203
|
get(key: K): Option<V>;
|
|
206
204
|
getOrElse(key: K, defaultValue: V): V;
|
|
207
205
|
orElse(key: K, alternative: Option<V>): Option<V>;
|
|
@@ -235,4 +233,4 @@ type Traversable<A extends Type> = Functor<A> & {
|
|
|
235
233
|
foldRight<B>(z: B): (op: (a: A, b: B) => B) => B;
|
|
236
234
|
};
|
|
237
235
|
|
|
238
|
-
export { AppException as A, type Converters as C, Either as E, List as L, Map as M, None as N, Option as O, Right as R, Some as S,
|
|
236
|
+
export { AppException as A, type Converters as C, Either as E, type IterableType as I, List as L, Map as M, None as N, Option as O, Right as R, Some as S, type TestEither as T, type Collection as a, Set as b, Left as c, isLeft as d, TypeCheckRight as e, TypeCheckLeft as f, tryCatchAsync as g, AppResult as h, isRight as i, Task as j, AsyncTask as k, Try as l, type Traversable as m, tryCatch as t };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { AbstractFunctor, ArrayFunctor, ArrayType, Functor, SingleType, Type } from './functor/index.mjs';
|
|
2
2
|
export { Base } from './core/base/Base.mjs';
|
|
3
3
|
export { Throwable } from './core/error/Throwable.mjs';
|
|
4
|
-
export { A as AppException,
|
|
4
|
+
export { A as AppException, h as AppResult, k as AsyncTask, E as Either, I as IterableType, c as Left, L as List, M as Map, N as None, O as Option, R as Right, b as Set, S as Some, j as Task, T as TestEither, m as Traversable, l as Try, f as TypeCheckLeft, e as TypeCheckRight, d as isLeft, i as isRight, t as tryCatch, g as tryCatchAsync } from './index-D6OHxaFT.mjs';
|
|
5
5
|
export { Identity } from './identity/Identity.mjs';
|
|
6
6
|
export { Tuple } from './tuple/Tuple.mjs';
|
|
7
|
-
export { Typeable } from './typeable/Typeable.mjs';
|
|
7
|
+
export { Typeable, UnTag } from './typeable/Typeable.mjs';
|
|
8
8
|
import './valuable/Valuable.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { AbstractFunctor, ArrayFunctor, ArrayType, Functor, SingleType, Type } from './functor/index.js';
|
|
2
2
|
export { Base } from './core/base/Base.js';
|
|
3
3
|
export { Throwable } from './core/error/Throwable.js';
|
|
4
|
-
export { A as AppException,
|
|
4
|
+
export { A as AppException, h as AppResult, k as AsyncTask, E as Either, I as IterableType, c as Left, L as List, M as Map, N as None, O as Option, R as Right, b as Set, S as Some, j as Task, T as TestEither, m as Traversable, l as Try, f as TypeCheckLeft, e as TypeCheckRight, d as isLeft, i as isRight, t as tryCatch, g as tryCatchAsync } from './index-Bvqg1Srg.js';
|
|
5
5
|
export { Identity } from './identity/Identity.js';
|
|
6
6
|
export { Tuple } from './tuple/Tuple.js';
|
|
7
|
-
export { Typeable } from './typeable/Typeable.js';
|
|
7
|
+
export { Typeable, UnTag } from './typeable/Typeable.js';
|
|
8
8
|
import './valuable/Valuable.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOTZ4XGNKjs = require('./chunk-OTZ4XGNK.js');var _chunkSQWNJC6Ojs = require('./chunk-SQWNJC6O.js');var _chunk5O6YELD3js = require('./chunk-5O6YELD3.js');var _chunk2U34DUZUjs = require('./chunk-2U34DUZU.js');require('./chunk-5VTXJIR3.js');require('./chunk-3VJERXBP.js');var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');require('./chunk-XORABVON.js');require('./chunk-K3EKBPQE.js');require('./chunk-WTWWDZY6.js');exports.AppException = _chunkOTZ4XGNKjs.o; exports.AppResult = _chunkOTZ4XGNKjs.p; exports.AsyncTask = _chunkOTZ4XGNKjs.r; exports.Base = _chunkSQWNJC6Ojs.a; exports.Either = _chunkOTZ4XGNKjs.n; exports.Left = _chunkOTZ4XGNKjs.g; exports.List = _chunkOTZ4XGNKjs.e; exports.Map = _chunkOTZ4XGNKjs.s; exports.None = _chunkOTZ4XGNKjs.b; exports.Option = _chunkOTZ4XGNKjs.c; exports.Right = _chunkOTZ4XGNKjs.f; exports.Set = _chunkOTZ4XGNKjs.d; exports.Some = _chunkOTZ4XGNKjs.a; exports.Task = _chunkOTZ4XGNKjs.q; exports.Throwable = _chunk2U34DUZUjs.a; exports.Try = _chunkOTZ4XGNKjs.t; exports.Tuple = _chunkOXLZ6UIZjs.a; exports.TypeCheckLeft = _chunkOTZ4XGNKjs.l; exports.TypeCheckRight = _chunkOTZ4XGNKjs.k; exports.Typeable = _chunk5O6YELD3js.a; exports.isLeft = _chunkOTZ4XGNKjs.i; exports.isRight = _chunkOTZ4XGNKjs.h; exports.tryCatch = _chunkOTZ4XGNKjs.j; exports.tryCatchAsync = _chunkOTZ4XGNKjs.m;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d,b as e,c as f,
|
|
1
|
+
import{a as d,b as e,c as f,d as g,e as h,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p,n as q,o as r,p as s,q as t,r as u,s as w,t as x}from"./chunk-5NZRFQ7O.mjs";import{a as b}from"./chunk-JF5YGNCO.mjs";import{a}from"./chunk-V7DKESTM.mjs";import{a as c}from"./chunk-HD6YYUHO.mjs";import"./chunk-377WQNCB.mjs";import"./chunk-HA5XD5KC.mjs";import{a as v}from"./chunk-2I2NKDFN.mjs";import"./chunk-V2J3R5IU.mjs";import"./chunk-2ML63TYF.mjs";import"./chunk-4H62YQ42.mjs";export{r as AppException,s as AppResult,u as AsyncTask,b as Base,q as Either,j as Left,h as List,w as Map,e as None,f as Option,i as Right,g as Set,d as Some,t as Task,c as Throwable,x as Try,v as Tuple,o as TypeCheckLeft,n as TypeCheckRight,a as Typeable,l as isLeft,k as isRight,m as tryCatch,p as tryCatchAsync};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../functor/index.mjs';
|
|
2
|
-
export {
|
|
2
|
+
export { I as IterableType } from '../index-D6OHxaFT.mjs';
|
|
3
3
|
import '../core/base/Base.mjs';
|
|
4
4
|
import '../core/error/Throwable.mjs';
|
|
5
5
|
import '../typeable/Typeable.mjs';
|
package/dist/iterable/index.d.ts
CHANGED
package/dist/iterable/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";require('../chunk-WTWWDZY6.js');
|
package/dist/iterable/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"../chunk-4H62YQ42.mjs";
|
package/dist/list/List.d.mts
CHANGED
package/dist/list/List.d.ts
CHANGED
package/dist/list/List.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOTZ4XGNKjs = require('../chunk-OTZ4XGNK.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');require('../chunk-WTWWDZY6.js');exports.List = _chunkOTZ4XGNKjs.e;
|
package/dist/list/List.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as a}from"../chunk-5NZRFQ7O.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-4H62YQ42.mjs";export{a as List};
|
package/dist/map/Map.d.mts
CHANGED
package/dist/map/Map.d.ts
CHANGED
package/dist/map/Map.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOTZ4XGNKjs = require('../chunk-OTZ4XGNK.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');require('../chunk-WTWWDZY6.js');exports.Map = _chunkOTZ4XGNKjs.s;
|
package/dist/map/Map.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{s as a}from"../chunk-5NZRFQ7O.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-4H62YQ42.mjs";export{a as Map};
|
package/dist/option/Option.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../functor/index.mjs';
|
|
2
|
-
export { N as None, O as Option, S as Some } from '../index-
|
|
2
|
+
export { N as None, O as Option, S as Some } from '../index-D6OHxaFT.mjs';
|
|
3
3
|
import '../typeable/Typeable.mjs';
|
|
4
4
|
import '../valuable/Valuable.mjs';
|
|
5
5
|
import '../core/base/Base.mjs';
|
package/dist/option/Option.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../functor/index.js';
|
|
2
|
-
export { N as None, O as Option, S as Some } from '../index-
|
|
2
|
+
export { N as None, O as Option, S as Some } from '../index-Bvqg1Srg.js';
|
|
3
3
|
import '../typeable/Typeable.js';
|
|
4
4
|
import '../valuable/Valuable.js';
|
|
5
5
|
import '../core/base/Base.js';
|
package/dist/option/Option.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOTZ4XGNKjs = require('../chunk-OTZ4XGNK.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');require('../chunk-WTWWDZY6.js');exports.None = _chunkOTZ4XGNKjs.b; exports.Option = _chunkOTZ4XGNKjs.c; exports.Some = _chunkOTZ4XGNKjs.a;
|
package/dist/option/Option.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-5NZRFQ7O.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-4H62YQ42.mjs";export{b as None,c as Option,a as Some};
|
package/dist/set/Set.d.mts
CHANGED
package/dist/set/Set.d.ts
CHANGED
package/dist/set/Set.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOTZ4XGNKjs = require('../chunk-OTZ4XGNK.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');require('../chunk-WTWWDZY6.js');exports.Set = _chunkOTZ4XGNKjs.d;
|
package/dist/set/Set.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as a}from"../chunk-5NZRFQ7O.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-4H62YQ42.mjs";export{a as Set};
|
package/dist/try/Try.d.mts
CHANGED
package/dist/try/Try.d.ts
CHANGED
package/dist/try/Try.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOTZ4XGNKjs = require('../chunk-OTZ4XGNK.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');require('../chunk-WTWWDZY6.js');exports.Try = _chunkOTZ4XGNKjs.t;
|
package/dist/try/Try.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{t as a}from"../chunk-5NZRFQ7O.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-4H62YQ42.mjs";export{a as Try};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
declare function Typeable(type:
|
|
2
|
-
readonly _tag:
|
|
1
|
+
declare function Typeable<T extends string>(type: T): {
|
|
2
|
+
readonly _tag: T;
|
|
3
3
|
};
|
|
4
|
-
type Typeable<T extends string> = ReturnType<typeof Typeable
|
|
4
|
+
type Typeable<T extends string> = ReturnType<typeof Typeable<T>>;
|
|
5
|
+
type UnTag<T> = Omit<T, "_tag">;
|
|
5
6
|
|
|
6
|
-
export { Typeable };
|
|
7
|
+
export { Typeable, type UnTag };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
declare function Typeable(type:
|
|
2
|
-
readonly _tag:
|
|
1
|
+
declare function Typeable<T extends string>(type: T): {
|
|
2
|
+
readonly _tag: T;
|
|
3
3
|
};
|
|
4
|
-
type Typeable<T extends string> = ReturnType<typeof Typeable
|
|
4
|
+
type Typeable<T extends string> = ReturnType<typeof Typeable<T>>;
|
|
5
|
+
type UnTag<T> = Omit<T, "_tag">;
|
|
5
6
|
|
|
6
|
-
export { Typeable };
|
|
7
|
+
export { Typeable, type UnTag };
|
package/dist/util/index.d.mts
CHANGED
package/dist/util/index.d.ts
CHANGED
package/dist/util/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkE6RS47F7js = require('../chunk-E6RS47F7.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkE6RS47F7js = require('../chunk-E6RS47F7.js');var _chunkOTZ4XGNKjs = require('../chunk-OTZ4XGNK.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');require('../chunk-WTWWDZY6.js');var a=o=>{let r=parseInt(o,10);return isNaN(r)?_chunkOTZ4XGNKjs.g.call(void 0, _chunkE6RS47F7js.a.call(void 0, `${r}`)):_chunkOTZ4XGNKjs.f.call(void 0, r)};exports.parseNumber = a;
|
package/dist/util/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"../chunk-VK5GL6NM.mjs";import{
|
|
1
|
+
import{a as s}from"../chunk-VK5GL6NM.mjs";import{f as e,g as t}from"../chunk-5NZRFQ7O.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-4H62YQ42.mjs";var a=o=>{let r=parseInt(o,10);return isNaN(r)?t(s(`${r}`)):e(r)};export{a as parseNumber};
|
package/dist/util/isIterable.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var e=t=>t!=null&&typeof t[Symbol.iterator]=="function";exports.isIterable = e;
|
package/dist/util/isIterable.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var e=t=>t!=null&&typeof t[Symbol.iterator]=="function";export{e as isIterable};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "functype",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.36",
|
|
4
4
|
"description": "A smallish functional library for TypeScript",
|
|
5
5
|
"author": "jordan.burke@gmail.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,27 +11,27 @@
|
|
|
11
11
|
"homepage": "https://github.com/jordanburke/functype#readme",
|
|
12
12
|
"url": "https://github.com/jordanburke/functype",
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@eslint/compat": "^1.2.
|
|
15
|
-
"@eslint/eslintrc": "^3.
|
|
16
|
-
"@eslint/js": "^9.
|
|
14
|
+
"@eslint/compat": "^1.2.3",
|
|
15
|
+
"@eslint/eslintrc": "^3.2.0",
|
|
16
|
+
"@eslint/js": "^9.15.0",
|
|
17
17
|
"@types/jest": "29.5.14",
|
|
18
|
-
"@types/node": "^22.9.
|
|
19
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
20
|
-
"@typescript-eslint/parser": "^8.
|
|
18
|
+
"@types/node": "^22.9.3",
|
|
19
|
+
"@typescript-eslint/eslint-plugin": "^8.15.0",
|
|
20
|
+
"@typescript-eslint/parser": "^8.15.0",
|
|
21
21
|
"cross-env": "^7.0.3",
|
|
22
|
-
"eslint": "^9.
|
|
22
|
+
"eslint": "^9.15.0",
|
|
23
23
|
"eslint-config-prettier": "^9.1.0",
|
|
24
24
|
"eslint-plugin-import": "^2.31.0",
|
|
25
25
|
"eslint-plugin-prettier": "^5.2.1",
|
|
26
26
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
27
27
|
"globals": "^15.12.0",
|
|
28
28
|
"jest": "^29.7.0",
|
|
29
|
-
"prettier": "^3.
|
|
29
|
+
"prettier": "^3.4.1",
|
|
30
30
|
"rimraf": "^6.0.1",
|
|
31
31
|
"ts-jest": "^29.2.5",
|
|
32
32
|
"ts-node": "^10.9.2",
|
|
33
33
|
"tsup": "^8.3.5",
|
|
34
|
-
"typescript": "^5.
|
|
34
|
+
"typescript": "^5.7.2"
|
|
35
35
|
},
|
|
36
36
|
"main": "./dist/index.js",
|
|
37
37
|
"module": "./dist/index.mjs",
|
package/dist/chunk-AIYLBUQO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');var _chunkBNNK42JCjs = require('./chunk-BNNK42JC.js');var _chunkSQWNJC6Ojs = require('./chunk-SQWNJC6O.js');var _chunk2U34DUZUjs = require('./chunk-2U34DUZU.js');var _chunk5VTXJIR3js = require('./chunk-5VTXJIR3.js');var _chunk3VJERXBPjs = require('./chunk-3VJERXBP.js');var _safestablestringify = require('safe-stable-stringify'); var _safestablestringify2 = _interopRequireDefault(_safestablestringify);var c=e=>{let t=_chunkBNNK42JCjs.a.call(void 0, e)?e:e instanceof Object&&"toArray"in e?e.toArray():[],r=Array.from(t),l="Seq";return{[Symbol.iterator]:()=>r[Symbol.iterator](),get length(){return r.length},_tag:l,map:o=>c(r.map(o)),flatMap:o=>c(r.flatMap(n=>o(n).toArray())),forEach:o=>r.forEach(o),count:o=>r.filter(o).length,exists:o=>r.some(o),filter:o=>c(r.filter(o)),filterNot:o=>c(r.filter(n=>!o(n))),find:o=>L(r.find(o)),get head(){return r[0]},get headOption(){return r.length>0?L(r[0]):A()},get isEmpty(){return r.length===0},get size(){return r.length},toArray:()=>[...r],reduce:o=>r.reduce(o),reduceRight:o=>r.reduceRight(o),foldLeft:o=>n=>r.reduce(n,o),foldRight:o=>n=>r.reduceRight((u,S)=>n(S,u),o),toString:()=>`Seq(${_safestablestringify2.default.call(void 0, e)})`,toValue:()=>({_tag:l,value:r})}},f= exports.e =e=>c(e);var R=e=>{let t=_chunkBNNK42JCjs.a.call(void 0, e)?new (0, _chunk3VJERXBPjs.a)(e):new (0, _chunk3VJERXBPjs.a)(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _2 => _2.toArray, 'call', _3 => _3()]), () => ([]))),r=f(t),l={...r,add:o=>R([...t,o]),remove:o=>{let n=new (0, _chunk3VJERXBPjs.a)(t);return n.delete(o),R(n)},contains:o=>t.has(o),has:o=>t.has(o),map:o=>R(r.map(o)),flatMap:o=>R(r.flatMap(o)),toList:()=>T(t),toSet:()=>l,toString:()=>`Set(${Array.from(t).toString()})`};return l},b= exports.f =e=>R(e);var d=e=>{function t(n){return n!=null&&typeof n[Symbol.iterator]=="function"}let r=Array.isArray(e)?e:t(e)?Array.from(e):[],l=f(r),o={...l,_tag:"List",length:r.length,map:n=>d(r.map(n)),flatMap:n=>d(l.flatMap(n)),remove:n=>{let u=r.indexOf(n);return o.removeAt(u)},contains:n=>r.includes(n),add:n=>d([...r,n]),removeAt:n=>n<0||n>=r.length?o:d([...r.slice(0,n),...r.slice(n+1)]),get:n=>L(r[n]),concat:n=>d([...r,...n.toArray()]),toList:()=>o,toSet:()=>b(r),toValue:()=>({_tag:"List",value:r}),toString:()=>`List(${_safestablestringify2.default.call(void 0, T(r))})`};return new Proxy(o,{get(n,u){return typeof u=="symbol"||isNaN(Number(u))?n[u]:n.get(Number(u))}})},T= exports.g =e=>d(e),W= exports.h =e=>d(e);console.assert(W);var K=e=>({_tag:"Right",value:e,isLeft:()=>!1,isRight:()=>!0,getOrElse:t=>e,getOrThrow:()=>e,map:t=>s(t(e)),mapAsync:t=>t(e).then(r=>s(r)).catch(r=>Promise.resolve(a(r))),merge:t=>t.isLeft()?a(t.value):s([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>a(r)),toOption:()=>y(e),toList:()=>T([e]),toString:()=>`Right(${_safestablestringify2.default.call(void 0, e)})`,[Symbol.iterator]:function*(){yield e},yield:function*(){yield e},traverse:t=>{let r=t(e);return r.isLeft()?a(r.value):s([r.value])},lazyMap:function*(t){yield s(t(e))},tap:t=>(t(e),s(e)),tapLeft:t=>s(e),mapLeft:t=>s(e),bimap:(t,r)=>s(r(e)),fold:(t,r)=>r(e),swap:()=>a(e),then:(t,r)=>Promise.resolve(e).then(t,r)}),I=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>a(e),mapAsync:t=>Promise.resolve(a(e)),merge:t=>a(e),flatMap:t=>a(e),flatMapAsync:t=>Promise.resolve(a(e)),toOption:()=>A(),toList:()=>T(),toString:()=>`Left(${_safestablestringify2.default.call(void 0, e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>a(e),lazyMap:function*(t){yield a(e)},tap:t=>a(e),tapLeft:t=>(t(e),a(e)),mapLeft:t=>a(t(e)),bimap:(t,r)=>a(t(e)),fold:(t,r)=>t(e),swap:()=>s(e),then:(t,r)=>Promise.reject(e).then(null,r)}),s= exports.i =e=>K(e),a= exports.j =e=>I(e),ve= exports.k =e=>e.isRight(),Ve= exports.l =e=>e.isLeft(),Oe= exports.m =(e,t)=>{try{return s(e())}catch(r){return a(t(r))}},X= exports.n =e=>K(e);console.assert(X);var Y=e=>I(e);console.assert(Y);var we=async(e,t)=>{try{let r=await e();return s(r)}catch(r){return a(t(r))}},Z= exports.q ={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return a(r.value);t.push(r.value)}return s(t)},traverse:(e,t)=>Z.sequence(e.map(t)),fromNullable:(e,t)=>e==null?a(t):s(e),fromPredicate:(e,t,r)=>t(e)?s(e):a(r),ap:(e,t)=>e.flatMap(r=>t.map(r)),fromPromise:async(e,t)=>{try{let r=await e;return s(r)}catch(r){return a(t(r))}}};var U=(e,t)=>{let r=_chunk2U34DUZUjs.a.call(void 0, e,t);return{..._chunkSQWNJC6Ojs.a.call(void 0, "AppException"),...a(r)}},B= exports.s =e=>({..._chunkSQWNJC6Ojs.a.call(void 0, "AppResult"),...s(e)});function M(e,t=r=>r){try{return B(e())}catch(r){return U(t(r))}}M.success=e=>B(e);M.fail=e=>U(e);async function k(e,t=r=>r){try{let r=await e();return B(r)}catch(r){let l=await t(r);return U(l)}}k.success=e=>B(e);k.fail=e=>U(e);var m=e=>{let t={values:new (0, _chunk5VTXJIR3js.a)(e)},r=()=>Array.from(t.values.entries()).map(([i,p])=>_chunkOXLZ6UIZjs.a.call(void 0, [i,p])),l=i=>m(new (0, _chunk5VTXJIR3js.a)(t.values).set(i.toArray()[0],i.toArray()[1]).entries()),o=i=>{let p=new (0, _chunk5VTXJIR3js.a)(t.values);return p.delete(i)?m(p.entries()):m(t.values.entries())},n=i=>t.values.get(i[0])===i[1],u=()=>t.values.size,S=i=>m(Array.from(t.values.entries()).map(([p,H])=>[p,i(H)])),z=i=>{let p=m(t.values.entries()).toList();return m(p.flatMap(i).toArray())},N=i=>f(r()).reduce(i),F=i=>f(r()).reduceRight(i),C=i=>p=>f(r()).foldLeft(i)(p),$=i=>p=>f(r()).foldRight(i)(p),j=i=>L(t.values.get(i)),G=(i,p)=>L(t.values.get(i)).getOrElse(p),D=()=>t.values.size===0;return{add:l,remove:o,contains:n,get size(){return u()},map:S,flatMap:z,reduce:N,reduceRight:F,foldLeft:C,foldRight:$,get:j,getOrElse:G,get isEmpty(){return D()},orElse:(i,p)=>L(t.values.get(i)).orElse(p),toList:()=>T(r()),toSet:()=>b(r()),toString:()=>`Map(${r().toString()})`}},He= exports.v =e=>m(e);var q=e=>({_tag:"Success",value:e,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,get:()=>e,getOrElse:t=>e,orElse:t=>q(e),orThrow:t=>e,toEither:()=>s(e),map:t=>ee(()=>t(e)),flatMap:t=>t(e),toString:()=>`Success(${_safestablestringify2.default.call(void 0, e)})`}),v=e=>({_tag:"Failure",value:void 0,error:e,isSuccess:()=>!1,isFailure:()=>!0,get:()=>{throw e},getOrElse:t=>t,orElse:t=>t,orThrow:t=>{throw t},toEither:()=>a(e),map:t=>v(e),flatMap:t=>v(e),toString:()=>`Failure(${_safestablestringify2.default.call(void 0, e)}))`}),ee= exports.w =e=>{try{return q(e())}catch(t){return v(t instanceof Error?t:new Error(String(t)))}};var y=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,getOrThrow:()=>e,orElse:()=>y(e),map:t=>y(t(e)),filter(t){return t(e)?y(e):h},flatMap:t=>t(e),reduce:t=>t(void 0,e),reduceRight:t=>t(void 0,e),foldLeft:t=>r=>r(t,e),foldRight:t=>r=>r(e,t),toList:()=>T([e]),contains:t=>t===e,size:1,toEither:t=>s(e),toString:()=>`Some(${_safestablestringify2.default.call(void 0, e)})`,toValue:()=>({_tag:"Some",value:e})}),h={_tag:"None",value:void 0,isEmpty:!0,get:()=>{throw new Error("Cannot call get() on None")},getOrElse:e=>e,getOrThrow(e){throw e},orElse:e=>e,map:e=>h,filter(e){return h},flatMap:e=>h,reduce:()=>{},reduceRight:()=>{},foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>T([]),contains:()=>!1,size:0,toEither:e=>a(e),toString:()=>"None",toValue:()=>({_tag:"None",value:void 0})},A= exports.b =()=>h,L= exports.c =e=>e!=null?y(e):A();exports.a = y; exports.b = A; exports.c = L; exports.d = c; exports.e = f; exports.f = b; exports.g = T; exports.h = W; exports.i = s; exports.j = a; exports.k = ve; exports.l = Ve; exports.m = Oe; exports.n = X; exports.o = Y; exports.p = we; exports.q = Z; exports.r = U; exports.s = B; exports.t = M; exports.u = k; exports.v = He; exports.w = ee;
|
package/dist/chunk-BNNK42JC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var e=t=>t!=null&&typeof t[Symbol.iterator]=="function";exports.a = e;
|
package/dist/chunk-HSSHSCKD.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as O}from"./chunk-2I2NKDFN.mjs";import{a as g}from"./chunk-RRAIFS3D.mjs";import{a as _}from"./chunk-JF5YGNCO.mjs";import{a as V}from"./chunk-HD6YYUHO.mjs";import{a as E}from"./chunk-377WQNCB.mjs";import{a as x}from"./chunk-HA5XD5KC.mjs";import te from"safe-stable-stringify";import w from"safe-stable-stringify";import Q from"safe-stable-stringify";import J from"safe-stable-stringify";var c=e=>{let t=g(e)?e:e instanceof Object&&"toArray"in e?e.toArray():[],r=Array.from(t),l="Seq";return{[Symbol.iterator]:()=>r[Symbol.iterator](),get length(){return r.length},_tag:l,map:o=>c(r.map(o)),flatMap:o=>c(r.flatMap(n=>o(n).toArray())),forEach:o=>r.forEach(o),count:o=>r.filter(o).length,exists:o=>r.some(o),filter:o=>c(r.filter(o)),filterNot:o=>c(r.filter(n=>!o(n))),find:o=>L(r.find(o)),get head(){return r[0]},get headOption(){return r.length>0?L(r[0]):A()},get isEmpty(){return r.length===0},get size(){return r.length},toArray:()=>[...r],reduce:o=>r.reduce(o),reduceRight:o=>r.reduceRight(o),foldLeft:o=>n=>r.reduce(n,o),foldRight:o=>n=>r.reduceRight((u,S)=>n(S,u),o),toString:()=>`Seq(${J(e)})`,toValue:()=>({_tag:l,value:r})}},f=e=>c(e);var R=e=>{let t=g(e)?new x(e):new x(e?.toArray()??[]),r=f(t),l={...r,add:o=>R([...t,o]),remove:o=>{let n=new x(t);return n.delete(o),R(n)},contains:o=>t.has(o),has:o=>t.has(o),map:o=>R(r.map(o)),flatMap:o=>R(r.flatMap(o)),toList:()=>T(t),toSet:()=>l,toString:()=>`Set(${Array.from(t).toString()})`};return l},b=e=>R(e);var d=e=>{function t(n){return n!=null&&typeof n[Symbol.iterator]=="function"}let r=Array.isArray(e)?e:t(e)?Array.from(e):[],l=f(r),o={...l,_tag:"List",length:r.length,map:n=>d(r.map(n)),flatMap:n=>d(l.flatMap(n)),remove:n=>{let u=r.indexOf(n);return o.removeAt(u)},contains:n=>r.includes(n),add:n=>d([...r,n]),removeAt:n=>n<0||n>=r.length?o:d([...r.slice(0,n),...r.slice(n+1)]),get:n=>L(r[n]),concat:n=>d([...r,...n.toArray()]),toList:()=>o,toSet:()=>b(r),toValue:()=>({_tag:"List",value:r}),toString:()=>`List(${Q(T(r))})`};return new Proxy(o,{get(n,u){return typeof u=="symbol"||isNaN(Number(u))?n[u]:n.get(Number(u))}})},T=e=>d(e),W=e=>d(e);console.assert(W);var K=e=>({_tag:"Right",value:e,isLeft:()=>!1,isRight:()=>!0,getOrElse:t=>e,getOrThrow:()=>e,map:t=>s(t(e)),mapAsync:t=>t(e).then(r=>s(r)).catch(r=>Promise.resolve(a(r))),merge:t=>t.isLeft()?a(t.value):s([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>a(r)),toOption:()=>y(e),toList:()=>T([e]),toString:()=>`Right(${w(e)})`,[Symbol.iterator]:function*(){yield e},yield:function*(){yield e},traverse:t=>{let r=t(e);return r.isLeft()?a(r.value):s([r.value])},lazyMap:function*(t){yield s(t(e))},tap:t=>(t(e),s(e)),tapLeft:t=>s(e),mapLeft:t=>s(e),bimap:(t,r)=>s(r(e)),fold:(t,r)=>r(e),swap:()=>a(e),then:(t,r)=>Promise.resolve(e).then(t,r)}),I=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>a(e),mapAsync:t=>Promise.resolve(a(e)),merge:t=>a(e),flatMap:t=>a(e),flatMapAsync:t=>Promise.resolve(a(e)),toOption:()=>A(),toList:()=>T(),toString:()=>`Left(${w(e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>a(e),lazyMap:function*(t){yield a(e)},tap:t=>a(e),tapLeft:t=>(t(e),a(e)),mapLeft:t=>a(t(e)),bimap:(t,r)=>a(t(e)),fold:(t,r)=>t(e),swap:()=>s(e),then:(t,r)=>Promise.reject(e).then(null,r)}),s=e=>K(e),a=e=>I(e),ve=e=>e.isRight(),Ve=e=>e.isLeft(),Oe=(e,t)=>{try{return s(e())}catch(r){return a(t(r))}},X=e=>K(e);console.assert(X);var Y=e=>I(e);console.assert(Y);var we=async(e,t)=>{try{let r=await e();return s(r)}catch(r){return a(t(r))}},Z={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return a(r.value);t.push(r.value)}return s(t)},traverse:(e,t)=>Z.sequence(e.map(t)),fromNullable:(e,t)=>e==null?a(t):s(e),fromPredicate:(e,t,r)=>t(e)?s(e):a(r),ap:(e,t)=>e.flatMap(r=>t.map(r)),fromPromise:async(e,t)=>{try{let r=await e;return s(r)}catch(r){return a(t(r))}}};var U=(e,t)=>{let r=V(e,t);return{..._("AppException"),...a(r)}},B=e=>({..._("AppResult"),...s(e)});function M(e,t=r=>r){try{return B(e())}catch(r){return U(t(r))}}M.success=e=>B(e);M.fail=e=>U(e);async function k(e,t=r=>r){try{let r=await e();return B(r)}catch(r){let l=await t(r);return U(l)}}k.success=e=>B(e);k.fail=e=>U(e);var m=e=>{let t={values:new E(e)},r=()=>Array.from(t.values.entries()).map(([i,p])=>O([i,p])),l=i=>m(new E(t.values).set(i.toArray()[0],i.toArray()[1]).entries()),o=i=>{let p=new E(t.values);return p.delete(i)?m(p.entries()):m(t.values.entries())},n=i=>t.values.get(i[0])===i[1],u=()=>t.values.size,S=i=>m(Array.from(t.values.entries()).map(([p,H])=>[p,i(H)])),z=i=>{let p=m(t.values.entries()).toList();return m(p.flatMap(i).toArray())},N=i=>f(r()).reduce(i),F=i=>f(r()).reduceRight(i),C=i=>p=>f(r()).foldLeft(i)(p),$=i=>p=>f(r()).foldRight(i)(p),j=i=>L(t.values.get(i)),G=(i,p)=>L(t.values.get(i)).getOrElse(p),D=()=>t.values.size===0;return{add:l,remove:o,contains:n,get size(){return u()},map:S,flatMap:z,reduce:N,reduceRight:F,foldLeft:C,foldRight:$,get:j,getOrElse:G,get isEmpty(){return D()},orElse:(i,p)=>L(t.values.get(i)).orElse(p),toList:()=>T(r()),toSet:()=>b(r()),toString:()=>`Map(${r().toString()})`}},He=e=>m(e);import P from"safe-stable-stringify";var q=e=>({_tag:"Success",value:e,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,get:()=>e,getOrElse:t=>e,orElse:t=>q(e),orThrow:t=>e,toEither:()=>s(e),map:t=>ee(()=>t(e)),flatMap:t=>t(e),toString:()=>`Success(${P(e)})`}),v=e=>({_tag:"Failure",value:void 0,error:e,isSuccess:()=>!1,isFailure:()=>!0,get:()=>{throw e},getOrElse:t=>t,orElse:t=>t,orThrow:t=>{throw t},toEither:()=>a(e),map:t=>v(e),flatMap:t=>v(e),toString:()=>`Failure(${P(e)}))`}),ee=e=>{try{return q(e())}catch(t){return v(t instanceof Error?t:new Error(String(t)))}};var y=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,getOrThrow:()=>e,orElse:()=>y(e),map:t=>y(t(e)),filter(t){return t(e)?y(e):h},flatMap:t=>t(e),reduce:t=>t(void 0,e),reduceRight:t=>t(void 0,e),foldLeft:t=>r=>r(t,e),foldRight:t=>r=>r(e,t),toList:()=>T([e]),contains:t=>t===e,size:1,toEither:t=>s(e),toString:()=>`Some(${te(e)})`,toValue:()=>({_tag:"Some",value:e})}),h={_tag:"None",value:void 0,isEmpty:!0,get:()=>{throw new Error("Cannot call get() on None")},getOrElse:e=>e,getOrThrow(e){throw e},orElse:e=>e,map:e=>h,filter(e){return h},flatMap:e=>h,reduce:()=>{},reduceRight:()=>{},foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>T([]),contains:()=>!1,size:0,toEither:e=>a(e),toString:()=>"None",toValue:()=>({_tag:"None",value:void 0})},A=()=>h,L=e=>e!=null?y(e):A();export{y as a,A as b,L as c,c as d,f as e,b as f,T as g,W as h,s as i,a as j,ve as k,Ve as l,Oe as m,X as n,Y as o,we as p,Z as q,U as r,B as s,M as t,k as u,He as v,ee as w};
|
package/dist/chunk-RRAIFS3D.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=t=>t!=null&&typeof t[Symbol.iterator]=="function";export{e as a};
|
package/dist/iterable/Seq.d.mts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { a as Seq, c as createSeq } from '../index-d37-44E9.mjs';
|
|
2
|
-
import '../typeable/Typeable.mjs';
|
|
3
|
-
import '../functor/index.mjs';
|
|
4
|
-
import '../core/base/Base.mjs';
|
|
5
|
-
import '../core/error/Throwable.mjs';
|
|
6
|
-
import '../identity/Identity.mjs';
|
|
7
|
-
import '../tuple/Tuple.mjs';
|
|
8
|
-
import '../valuable/Valuable.mjs';
|
package/dist/iterable/Seq.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { a as Seq, c as createSeq } from '../index-w6bBTfvr.js';
|
|
2
|
-
import '../typeable/Typeable.js';
|
|
3
|
-
import '../functor/index.js';
|
|
4
|
-
import '../core/base/Base.js';
|
|
5
|
-
import '../core/error/Throwable.js';
|
|
6
|
-
import '../identity/Identity.js';
|
|
7
|
-
import '../tuple/Tuple.js';
|
|
8
|
-
import '../valuable/Valuable.js';
|
package/dist/iterable/Seq.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkAIYLBUQOjs = require('../chunk-AIYLBUQO.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-BNNK42JC.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');exports.Seq = _chunkAIYLBUQOjs.e; exports.createSeq = _chunkAIYLBUQOjs.d;
|
package/dist/iterable/Seq.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as a,e as b}from"../chunk-HSSHSCKD.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";export{b as Seq,a as createSeq};
|