functype 0.8.30 → 0.8.31
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/README.md +21 -21
- package/dist/chunk-2U34DUZU.js +1 -0
- package/dist/{chunk-V72GRMBG.js → chunk-B42G4XDT.js} +1 -1
- package/dist/chunk-HD6YYUHO.mjs +1 -0
- package/dist/chunk-JF5YGNCO.mjs +1 -0
- package/dist/chunk-SQWNJC6O.js +1 -0
- package/dist/{chunk-W5Z2N2E4.mjs → chunk-YBXR3LKX.mjs} +1 -1
- package/dist/collections/index.d.mts +2 -1
- package/dist/collections/index.d.ts +2 -1
- package/dist/core/base/Base.d.mts +11 -0
- package/dist/core/base/Base.d.ts +11 -0
- package/dist/core/base/Base.js +1 -0
- package/dist/core/base/Base.mjs +1 -0
- package/dist/core/error/Throwable.d.mts +12 -0
- package/dist/core/error/Throwable.d.ts +12 -0
- package/dist/core/error/Throwable.js +1 -0
- package/dist/core/error/Throwable.mjs +1 -0
- package/dist/core/task/Task.d.mts +32 -0
- package/dist/core/task/Task.d.ts +32 -0
- package/dist/core/task/Task.js +1 -0
- package/dist/core/task/Task.mjs +1 -0
- package/dist/either/Either.d.mts +2 -1
- package/dist/either/Either.d.ts +2 -1
- package/dist/either/Either.js +1 -1
- package/dist/either/Either.mjs +1 -1
- package/dist/{index-DzaLFl1L.d.mts → index-C05iGqWH.d.mts} +3 -3
- package/dist/{index-B7vTndKq.d.ts → index-CgK2qCd3.d.ts} +3 -3
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/iterable/Seq.d.mts +2 -1
- package/dist/iterable/Seq.d.ts +2 -1
- package/dist/iterable/Seq.js +1 -1
- package/dist/iterable/Seq.mjs +1 -1
- package/dist/iterable/index.d.mts +2 -1
- package/dist/iterable/index.d.ts +2 -1
- package/dist/iterable/index.js +1 -1
- package/dist/iterable/index.mjs +1 -1
- package/dist/list/List.d.mts +2 -1
- package/dist/list/List.d.ts +2 -1
- package/dist/list/List.js +1 -1
- package/dist/list/List.mjs +1 -1
- package/dist/map/Map.d.mts +2 -1
- package/dist/map/Map.d.ts +2 -1
- package/dist/map/Map.js +1 -1
- package/dist/map/Map.mjs +1 -1
- package/dist/option/Option.d.mts +2 -1
- package/dist/option/Option.d.ts +2 -1
- package/dist/option/Option.js +1 -1
- package/dist/option/Option.mjs +1 -1
- package/dist/set/Set.d.mts +2 -1
- package/dist/set/Set.d.ts +2 -1
- package/dist/set/Set.js +1 -1
- package/dist/set/Set.mjs +1 -1
- package/dist/try/Try.d.mts +2 -1
- package/dist/try/Try.d.ts +2 -1
- package/dist/try/Try.js +1 -1
- package/dist/try/Try.mjs +1 -1
- package/dist/util/index.d.mts +2 -1
- package/dist/util/index.d.ts +2 -1
- package/dist/util/index.js +1 -1
- package/dist/util/index.mjs +1 -1
- package/dist/valuable/Valuable.d.mts +6 -0
- package/dist/valuable/Valuable.d.ts +6 -0
- package/dist/valuable/Valuable.js +1 -0
- package/dist/valuable/Valuable.mjs +1 -0
- package/package.json +13 -9
- package/lib/TaskPromise.d.ts +0 -3
- package/lib/collections/index.d.ts +0 -8
- package/lib/either/Either.d.ts +0 -52
- package/lib/either/EitherT.d.ts +0 -9
- package/lib/error/ParseError.d.ts +0 -6
- package/lib/functor/index.d.ts +0 -15
- package/lib/identity/Identity.d.ts +0 -4
- package/lib/index.d.ts +0 -21
- package/lib/iterable/Seq.d.ts +0 -31
- package/lib/iterable/index.d.ts +0 -22
- package/lib/list/List.d.ts +0 -26
- package/lib/map/Map.d.ts +0 -17
- package/lib/map/shim.d.ts +0 -2
- package/lib/option/Option.d.ts +0 -30
- package/lib/serializable/Serializable.d.ts +0 -15
- package/lib/set/Set.d.ts +0 -15
- package/lib/set/shim.d.ts +0 -2
- package/lib/try/Try.d.ts +0 -18
- package/lib/tuple/Tuple.d.ts +0 -9
- package/lib/typeable/Typeable.d.ts +0 -4
- package/lib/util/index.d.ts +0 -3
- package/lib/util/isIterable.d.ts +0 -1
package/README.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
# functype
|
|
2
|
-
|
|
3
|
-
A small functional library for TypeScript inspired by Scala Standard Library.
|
|
4
|
-
|
|
5
|
-
[](https://github.com/jordanburke/functype/actions/workflows/pnpm-build.yml)
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
You can install `functype` using any package manager:
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
npm install functype
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
pnpm install functype
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
yarn install functype
|
|
21
|
-
```
|
|
1
|
+
# functype
|
|
2
|
+
|
|
3
|
+
A small functional library for TypeScript inspired by Scala Standard Library.
|
|
4
|
+
|
|
5
|
+
[](https://github.com/jordanburke/functype/actions/workflows/pnpm-build.yml)
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
You can install `functype` using any package manager:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install functype
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm install functype
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
yarn install functype
|
|
21
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var o="Throwable",r= exports.a =(e,a)=>{let t=e instanceof Error?e.message:typeof e=="string"?e:"An unknown error occurred",s=e instanceof Error?e.stack:void 0,n=new Error(t);return n.name=o,{_tag:o,name:n.name,message:n.message,stack:_nullishCoalesce(s, () => (n.stack)),data:a}};r.NAME=o;exports.a = r;
|
|
@@ -1 +1 @@
|
|
|
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 _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),f="Seq";return{[Symbol.iterator]:()=>r[Symbol.iterator](),get length(){return r.length},_tag:f,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,U)=>n(U,u),o),toString:()=>`Seq(${_safestablestringify2.default.call(void 0, e)})`,toValue:()=>({_tag:f,value:r})}},T= 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=T(t),f={...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:()=>p(t),toSet:()=>f,toString:()=>`Set(${Array.from(t).toString()})`};return f},x= 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):[],f=T(r),o={...f,_tag:"List",length:r.length,map:n=>d(r.map(n)),flatMap:n=>d(f.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:()=>x(r),toValue:()=>({_tag:"List",value:r}),toString:()=>`List(${_safestablestringify2.default.call(void 0, p(r))})`};return new Proxy(o,{get(n,u){return typeof u=="symbol"||isNaN(Number(u))?n[u]:n.get(Number(u))}})},p= exports.g =e=>d(e),j= exports.h =e=>d(e);console.assert(j);var v=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(i(r))),merge:t=>t.isLeft()?i(t.value):s([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>i(r)),toOption:()=>
|
|
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 _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),f="Seq";return{[Symbol.iterator]:()=>r[Symbol.iterator](),get length(){return r.length},_tag:f,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,U)=>n(U,u),o),toString:()=>`Seq(${_safestablestringify2.default.call(void 0, e)})`,toValue:()=>({_tag:f,value:r})}},T= 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=T(t),f={...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:()=>p(t),toSet:()=>f,toString:()=>`Set(${Array.from(t).toString()})`};return f},x= 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):[],f=T(r),o={...f,_tag:"List",length:r.length,map:n=>d(r.map(n)),flatMap:n=>d(f.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:()=>x(r),toValue:()=>({_tag:"List",value:r}),toString:()=>`List(${_safestablestringify2.default.call(void 0, p(r))})`};return new Proxy(o,{get(n,u){return typeof u=="symbol"||isNaN(Number(u))?n[u]:n.get(Number(u))}})},p= exports.g =e=>d(e),j= exports.h =e=>d(e);console.assert(j);var v=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(i(r))),merge:t=>t.isLeft()?i(t.value):s([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>i(r)),toOption:()=>y(e),toList:()=>p([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()?i(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:()=>i(e),then:(t,r)=>Promise.resolve(e).then(t,r)}),V=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>i(e),mapAsync:t=>Promise.resolve(i(e)),merge:t=>i(e),flatMap:t=>i(e),flatMapAsync:t=>Promise.resolve(i(e)),toOption:()=>A(),toList:()=>p(),toString:()=>`Left(${_safestablestringify2.default.call(void 0, e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>i(e),lazyMap:function*(t){yield i(e)},tap:t=>i(e),tapLeft:t=>(t(e),i(e)),mapLeft:t=>i(t(e)),bimap:(t,r)=>i(t(e)),fold:(t,r)=>t(e),swap:()=>s(e),then:(t,r)=>Promise.reject(e).then(null,r)}),s= exports.i =e=>v(e),i= exports.j =e=>V(e),Ee= exports.k =e=>e.isRight(),xe= exports.l =e=>e.isLeft(),Ue= exports.m =(e,t)=>{try{return s(e())}catch(r){return i(t(r))}},G= exports.n =e=>v(e);console.assert(G);var D=e=>V(e);console.assert(D);var Be=async(e,t)=>{try{let r=await e();return s(r)}catch(r){return i(t(r))}},H= exports.q ={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return i(r.value);t.push(r.value)}return s(t)},traverse:(e,t)=>H.sequence(e.map(t)),fromNullable:(e,t)=>e==null?i(t):s(e),fromPredicate:(e,t,r)=>t(e)?s(e):i(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 i(t(r))}}};var m=e=>{let t={values:new (0, _chunk5VTXJIR3js.a)(e)},r=()=>Array.from(t.values.entries()).map(([a,l])=>_chunkOXLZ6UIZjs.a.call(void 0, [a,l])),f=a=>m(new (0, _chunk5VTXJIR3js.a)(t.values).set(a.toArray()[0],a.toArray()[1]).entries()),o=a=>{let l=new (0, _chunk5VTXJIR3js.a)(t.values);return l.delete(a)?m(l.entries()):m(t.values.entries())},n=a=>t.values.get(a[0])===a[1],u=()=>t.values.size,U=a=>m(Array.from(t.values.entries()).map(([l,F])=>[l,a(F)])),I=a=>{let l=m(t.values.entries()).toList();return m(l.flatMap(a).toArray())},M=a=>T(r()).reduce(a),w=a=>T(r()).reduceRight(a),P=a=>l=>T(r()).foldLeft(a)(l),k=a=>l=>T(r()).foldRight(a)(l),q=a=>L(t.values.get(a)),z=(a,l)=>L(t.values.get(a)).getOrElse(l),N=()=>t.values.size===0;return{add:f,remove:o,contains:n,get size(){return u()},map:U,flatMap:I,reduce:M,reduceRight:w,foldLeft:P,foldRight:k,get:q,getOrElse:z,get isEmpty(){return N()},orElse:(a,l)=>L(t.values.get(a)).orElse(l),toList:()=>p(r()),toSet:()=>x(r()),toString:()=>`Map(${r().toString()})`}},Pe= exports.r =e=>m(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:()=>s(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:()=>i(e),map:t=>B(e),flatMap:t=>B(e),toString:()=>`Failure(${_safestablestringify2.default.call(void 0, e)}))`}),J= exports.s =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,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:()=>p([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,orElse:e=>e,map:e=>h,filter(e){return h},flatMap:e=>h,reduce:()=>{},reduceRight:()=>{},foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>p([]),contains:()=>!1,size:0,toEither:e=>i(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 = T; exports.f = x; exports.g = p; exports.h = j; exports.i = s; exports.j = i; exports.k = Ee; exports.l = xe; exports.m = Ue; exports.n = G; exports.o = D; exports.p = Be; exports.q = H; exports.r = Pe; exports.s = J;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o="Throwable",r=(e,a)=>{let t=e instanceof Error?e.message:typeof e=="string"?e:"An unknown error occurred",s=e instanceof Error?e.stack:void 0,n=new Error(t);return n.name=o,{_tag:o,name:n.name,message:n.message,stack:s??n.stack,data:a}};r.NAME=o;export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-V7DKESTM.mjs";function e(r){return{...t(r),toString(){return`${r}()`}}}export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5O6YELD3js = require('./chunk-5O6YELD3.js');function e(r){return{..._chunk5O6YELD3js.a.call(void 0, r),toString(){return`${r}()`}}}exports.a = e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as S}from"./chunk-2I2NKDFN.mjs";import{a as g}from"./chunk-RRAIFS3D.mjs";import{a as E}from"./chunk-377WQNCB.mjs";import{a as b}from"./chunk-HA5XD5KC.mjs";import Q from"safe-stable-stringify";import _ from"safe-stable-stringify";import $ from"safe-stable-stringify";import C from"safe-stable-stringify";var c=e=>{let t=g(e)?e:e instanceof Object&&"toArray"in e?e.toArray():[],r=Array.from(t),f="Seq";return{[Symbol.iterator]:()=>r[Symbol.iterator](),get length(){return r.length},_tag:f,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,U)=>n(U,u),o),toString:()=>`Seq(${C(e)})`,toValue:()=>({_tag:f,value:r})}},T=e=>c(e);var R=e=>{let t=g(e)?new b(e):new b(e?.toArray()??[]),r=T(t),f={...r,add:o=>R([...t,o]),remove:o=>{let n=new b(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:()=>p(t),toSet:()=>f,toString:()=>`Set(${Array.from(t).toString()})`};return f},x=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):[],f=T(r),o={...f,_tag:"List",length:r.length,map:n=>d(r.map(n)),flatMap:n=>d(f.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:()=>x(r),toValue:()=>({_tag:"List",value:r}),toString:()=>`List(${$(p(r))})`};return new Proxy(o,{get(n,u){return typeof u=="symbol"||isNaN(Number(u))?n[u]:n.get(Number(u))}})},p=e=>d(e),j=e=>d(e);console.assert(j);var v=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(i(r))),merge:t=>t.isLeft()?i(t.value):s([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>i(r)),toOption:()=>
|
|
1
|
+
import{a as S}from"./chunk-2I2NKDFN.mjs";import{a as g}from"./chunk-RRAIFS3D.mjs";import{a as E}from"./chunk-377WQNCB.mjs";import{a as b}from"./chunk-HA5XD5KC.mjs";import Q from"safe-stable-stringify";import _ from"safe-stable-stringify";import $ from"safe-stable-stringify";import C from"safe-stable-stringify";var c=e=>{let t=g(e)?e:e instanceof Object&&"toArray"in e?e.toArray():[],r=Array.from(t),f="Seq";return{[Symbol.iterator]:()=>r[Symbol.iterator](),get length(){return r.length},_tag:f,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,U)=>n(U,u),o),toString:()=>`Seq(${C(e)})`,toValue:()=>({_tag:f,value:r})}},T=e=>c(e);var R=e=>{let t=g(e)?new b(e):new b(e?.toArray()??[]),r=T(t),f={...r,add:o=>R([...t,o]),remove:o=>{let n=new b(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:()=>p(t),toSet:()=>f,toString:()=>`Set(${Array.from(t).toString()})`};return f},x=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):[],f=T(r),o={...f,_tag:"List",length:r.length,map:n=>d(r.map(n)),flatMap:n=>d(f.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:()=>x(r),toValue:()=>({_tag:"List",value:r}),toString:()=>`List(${$(p(r))})`};return new Proxy(o,{get(n,u){return typeof u=="symbol"||isNaN(Number(u))?n[u]:n.get(Number(u))}})},p=e=>d(e),j=e=>d(e);console.assert(j);var v=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(i(r))),merge:t=>t.isLeft()?i(t.value):s([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>i(r)),toOption:()=>y(e),toList:()=>p([e]),toString:()=>`Right(${_(e)})`,[Symbol.iterator]:function*(){yield e},yield:function*(){yield e},traverse:t=>{let r=t(e);return r.isLeft()?i(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:()=>i(e),then:(t,r)=>Promise.resolve(e).then(t,r)}),V=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>i(e),mapAsync:t=>Promise.resolve(i(e)),merge:t=>i(e),flatMap:t=>i(e),flatMapAsync:t=>Promise.resolve(i(e)),toOption:()=>A(),toList:()=>p(),toString:()=>`Left(${_(e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>i(e),lazyMap:function*(t){yield i(e)},tap:t=>i(e),tapLeft:t=>(t(e),i(e)),mapLeft:t=>i(t(e)),bimap:(t,r)=>i(t(e)),fold:(t,r)=>t(e),swap:()=>s(e),then:(t,r)=>Promise.reject(e).then(null,r)}),s=e=>v(e),i=e=>V(e),Ee=e=>e.isRight(),xe=e=>e.isLeft(),Ue=(e,t)=>{try{return s(e())}catch(r){return i(t(r))}},G=e=>v(e);console.assert(G);var D=e=>V(e);console.assert(D);var Be=async(e,t)=>{try{let r=await e();return s(r)}catch(r){return i(t(r))}},H={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return i(r.value);t.push(r.value)}return s(t)},traverse:(e,t)=>H.sequence(e.map(t)),fromNullable:(e,t)=>e==null?i(t):s(e),fromPredicate:(e,t,r)=>t(e)?s(e):i(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 i(t(r))}}};var m=e=>{let t={values:new E(e)},r=()=>Array.from(t.values.entries()).map(([a,l])=>S([a,l])),f=a=>m(new E(t.values).set(a.toArray()[0],a.toArray()[1]).entries()),o=a=>{let l=new E(t.values);return l.delete(a)?m(l.entries()):m(t.values.entries())},n=a=>t.values.get(a[0])===a[1],u=()=>t.values.size,U=a=>m(Array.from(t.values.entries()).map(([l,F])=>[l,a(F)])),I=a=>{let l=m(t.values.entries()).toList();return m(l.flatMap(a).toArray())},M=a=>T(r()).reduce(a),w=a=>T(r()).reduceRight(a),P=a=>l=>T(r()).foldLeft(a)(l),k=a=>l=>T(r()).foldRight(a)(l),q=a=>L(t.values.get(a)),z=(a,l)=>L(t.values.get(a)).getOrElse(l),N=()=>t.values.size===0;return{add:f,remove:o,contains:n,get size(){return u()},map:U,flatMap:I,reduce:M,reduceRight:w,foldLeft:P,foldRight:k,get:q,getOrElse:z,get isEmpty(){return N()},orElse:(a,l)=>L(t.values.get(a)).orElse(l),toList:()=>p(r()),toSet:()=>x(r()),toString:()=>`Map(${r().toString()})`}},Pe=e=>m(e);import O 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:()=>s(e),map:t=>J(()=>t(e)),flatMap:t=>t(e),toString:()=>`Success(${O(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:()=>i(e),map:t=>B(e),flatMap:t=>B(e),toString:()=>`Failure(${O(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,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:()=>p([e]),contains:t=>t===e,size:1,toEither:t=>s(e),toString:()=>`Some(${Q(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,orElse:e=>e,map:e=>h,filter(e){return h},flatMap:e=>h,reduce:()=>{},reduceRight:()=>{},foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>p([]),contains:()=>!1,size:0,toEither:e=>i(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,T as e,x as f,p as g,j as h,s as i,i as j,Ee as k,xe as l,Ue as m,G as n,D as o,Be as p,H as q,Pe as r,J as s};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { d as Collection, C as Converters } from '../index-
|
|
1
|
+
export { d as Collection, C as Converters } from '../index-C05iGqWH.mjs';
|
|
2
2
|
import '../functor/index.mjs';
|
|
3
3
|
import '../identity/Identity.mjs';
|
|
4
4
|
import '../tuple/Tuple.mjs';
|
|
5
5
|
import '../typeable/Typeable.mjs';
|
|
6
|
+
import '../valuable/Valuable.mjs';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { d as Collection, C as Converters } from '../index-
|
|
1
|
+
export { d as Collection, C as Converters } from '../index-CgK2qCd3.js';
|
|
2
2
|
import '../functor/index.js';
|
|
3
3
|
import '../identity/Identity.js';
|
|
4
4
|
import '../tuple/Tuple.js';
|
|
5
5
|
import '../typeable/Typeable.js';
|
|
6
|
+
import '../valuable/Valuable.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSQWNJC6Ojs = require('../../chunk-SQWNJC6O.js');require('../../chunk-5O6YELD3.js');exports.Base = _chunkSQWNJC6Ojs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-JF5YGNCO.mjs";import"../../chunk-V7DKESTM.mjs";export{a as Base};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Typeable } from '../../typeable/Typeable.mjs';
|
|
2
|
+
|
|
3
|
+
declare const NAME: "Throwable";
|
|
4
|
+
type Throwable = Error & Typeable<typeof NAME> & {
|
|
5
|
+
readonly data?: unknown;
|
|
6
|
+
};
|
|
7
|
+
declare const Throwable: {
|
|
8
|
+
(srcError: unknown, data?: unknown): Throwable;
|
|
9
|
+
NAME: "Throwable";
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { Throwable };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Typeable } from '../../typeable/Typeable.js';
|
|
2
|
+
|
|
3
|
+
declare const NAME: "Throwable";
|
|
4
|
+
type Throwable = Error & Typeable<typeof NAME> & {
|
|
5
|
+
readonly data?: unknown;
|
|
6
|
+
};
|
|
7
|
+
declare const Throwable: {
|
|
8
|
+
(srcError: unknown, data?: unknown): Throwable;
|
|
9
|
+
NAME: "Throwable";
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { Throwable };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2U34DUZUjs = require('../../chunk-2U34DUZU.js');exports.Throwable = _chunk2U34DUZUjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-HD6YYUHO.mjs";export{a as Throwable};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { E as Either } from '../../index-C05iGqWH.mjs';
|
|
2
|
+
import { Throwable } from '../error/Throwable.mjs';
|
|
3
|
+
import '../../functor/index.mjs';
|
|
4
|
+
import '../../identity/Identity.mjs';
|
|
5
|
+
import '../../tuple/Tuple.mjs';
|
|
6
|
+
import '../../typeable/Typeable.mjs';
|
|
7
|
+
import '../../valuable/Valuable.mjs';
|
|
8
|
+
|
|
9
|
+
type AppException<T> = Either<Throwable, T>;
|
|
10
|
+
/**
|
|
11
|
+
* AppException factory function
|
|
12
|
+
* @param error
|
|
13
|
+
* @param data
|
|
14
|
+
* @constructor
|
|
15
|
+
*/
|
|
16
|
+
declare const AppException: <T>(error: unknown, data?: unknown) => AppException<T>;
|
|
17
|
+
type AppResult<T> = Either<Throwable, T>;
|
|
18
|
+
declare const AppResult: <T>(data: T) => AppResult<T>;
|
|
19
|
+
type Task<T> = Either<Throwable, T>;
|
|
20
|
+
declare function Task<T>(f: () => T, e?: (error: unknown) => unknown): Task<T>;
|
|
21
|
+
declare namespace Task {
|
|
22
|
+
var success: <T>(data: T) => AppResult<T>;
|
|
23
|
+
var fail: <T>(error: unknown) => AppException<T>;
|
|
24
|
+
}
|
|
25
|
+
type AsyncTask<T> = Promise<Task<T>>;
|
|
26
|
+
declare function AsyncTask<T>(f: () => T, e?: (error: unknown) => unknown): AsyncTask<T>;
|
|
27
|
+
declare namespace AsyncTask {
|
|
28
|
+
var success: <T>(data: T) => AppResult<T>;
|
|
29
|
+
var fail: <T>(error: unknown) => AppException<T>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { AppException, AppResult, AsyncTask, Task };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { E as Either } from '../../index-CgK2qCd3.js';
|
|
2
|
+
import { Throwable } from '../error/Throwable.js';
|
|
3
|
+
import '../../functor/index.js';
|
|
4
|
+
import '../../identity/Identity.js';
|
|
5
|
+
import '../../tuple/Tuple.js';
|
|
6
|
+
import '../../typeable/Typeable.js';
|
|
7
|
+
import '../../valuable/Valuable.js';
|
|
8
|
+
|
|
9
|
+
type AppException<T> = Either<Throwable, T>;
|
|
10
|
+
/**
|
|
11
|
+
* AppException factory function
|
|
12
|
+
* @param error
|
|
13
|
+
* @param data
|
|
14
|
+
* @constructor
|
|
15
|
+
*/
|
|
16
|
+
declare const AppException: <T>(error: unknown, data?: unknown) => AppException<T>;
|
|
17
|
+
type AppResult<T> = Either<Throwable, T>;
|
|
18
|
+
declare const AppResult: <T>(data: T) => AppResult<T>;
|
|
19
|
+
type Task<T> = Either<Throwable, T>;
|
|
20
|
+
declare function Task<T>(f: () => T, e?: (error: unknown) => unknown): Task<T>;
|
|
21
|
+
declare namespace Task {
|
|
22
|
+
var success: <T>(data: T) => AppResult<T>;
|
|
23
|
+
var fail: <T>(error: unknown) => AppException<T>;
|
|
24
|
+
}
|
|
25
|
+
type AsyncTask<T> = Promise<Task<T>>;
|
|
26
|
+
declare function AsyncTask<T>(f: () => T, e?: (error: unknown) => unknown): AsyncTask<T>;
|
|
27
|
+
declare namespace AsyncTask {
|
|
28
|
+
var success: <T>(data: T) => AppResult<T>;
|
|
29
|
+
var fail: <T>(error: unknown) => AppException<T>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { AppException, AppResult, AsyncTask, Task };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSQWNJC6Ojs = require('../../chunk-SQWNJC6O.js');var _chunk2U34DUZUjs = require('../../chunk-2U34DUZU.js');var _chunkB42G4XDTjs = require('../../chunk-B42G4XDT.js');require('../../chunk-OXLZ6UIZ.js');require('../../chunk-BNNK42JC.js');require('../../chunk-5O6YELD3.js');require('../../chunk-5VTXJIR3.js');require('../../chunk-3VJERXBP.js');require('../../chunk-XORABVON.js');require('../../chunk-K3EKBPQE.js');var e=(r,t)=>{let n=_chunk2U34DUZUjs.a.call(void 0, r,t);return{..._chunkSQWNJC6Ojs.a.call(void 0, "AppException"),..._chunkB42G4XDTjs.j.call(void 0, n)}},o= exports.AppResult =r=>({..._chunkSQWNJC6Ojs.a.call(void 0, "AppResult"),..._chunkB42G4XDTjs.i.call(void 0, r)});function c(r,t=n=>n){try{return o(r())}catch(n){return e(t(n))}}c.success=r=>o(r);c.fail=r=>e(r);async function a(r,t=n=>n){try{let n=await r();return o(n)}catch(n){let i=await t(n);return e(i)}}a.success=r=>o(r);a.fail=r=>e(r);exports.AppException = e; exports.AppResult = o; exports.AsyncTask = a; exports.Task = c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as T}from"../../chunk-JF5YGNCO.mjs";import{a as u}from"../../chunk-HD6YYUHO.mjs";import{i as p,j as s}from"../../chunk-YBXR3LKX.mjs";import"../../chunk-2I2NKDFN.mjs";import"../../chunk-RRAIFS3D.mjs";import"../../chunk-V7DKESTM.mjs";import"../../chunk-377WQNCB.mjs";import"../../chunk-HA5XD5KC.mjs";import"../../chunk-V2J3R5IU.mjs";import"../../chunk-2ML63TYF.mjs";var e=(r,t)=>{let n=u(r,t);return{...T("AppException"),...s(n)}},o=r=>({...T("AppResult"),...p(r)});function c(r,t=n=>n){try{return o(r())}catch(n){return e(t(n))}}c.success=r=>o(r);c.fail=r=>e(r);async function a(r,t=n=>n){try{let n=await r();return o(n)}catch(n){let i=await t(n);return e(i)}}a.success=r=>o(r);a.fail=r=>e(r);export{e as AppException,o as AppResult,a as AsyncTask,c as Task};
|
package/dist/either/Either.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '../functor/index.mjs';
|
|
2
|
-
export { E as Either, f as Left, R as Right, e as TestEither, j as TypeCheckLeft, h as TypeCheckRight, g as isLeft, i as isRight, t as tryCatch, k as tryCatchAsync
|
|
2
|
+
export { E as Either, f as Left, R as Right, e as TestEither, j as TypeCheckLeft, h as TypeCheckRight, g as isLeft, i as isRight, t as tryCatch, k as tryCatchAsync } from '../index-C05iGqWH.mjs';
|
|
3
3
|
import '../typeable/Typeable.mjs';
|
|
4
4
|
import '../identity/Identity.mjs';
|
|
5
5
|
import '../tuple/Tuple.mjs';
|
|
6
|
+
import '../valuable/Valuable.mjs';
|
package/dist/either/Either.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '../functor/index.js';
|
|
2
|
-
export { E as Either, f as Left, R as Right, e as TestEither, j as TypeCheckLeft, h as TypeCheckRight, g as isLeft, i as isRight, t as tryCatch, k as tryCatchAsync
|
|
2
|
+
export { E as Either, f as Left, R as Right, e as TestEither, j as TypeCheckLeft, h as TypeCheckRight, g as isLeft, i as isRight, t as tryCatch, k as tryCatchAsync } from '../index-CgK2qCd3.js';
|
|
3
3
|
import '../typeable/Typeable.js';
|
|
4
4
|
import '../identity/Identity.js';
|
|
5
5
|
import '../tuple/Tuple.js';
|
|
6
|
+
import '../valuable/Valuable.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 _chunkB42G4XDTjs = require('../chunk-B42G4XDT.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-BNNK42JC.js');require('../chunk-5O6YELD3.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');exports.Either = _chunkB42G4XDTjs.q; exports.Left = _chunkB42G4XDTjs.j; exports.Right = _chunkB42G4XDTjs.i; exports.TypeCheckLeft = _chunkB42G4XDTjs.o; exports.TypeCheckRight = _chunkB42G4XDTjs.n; exports.isLeft = _chunkB42G4XDTjs.l; exports.isRight = _chunkB42G4XDTjs.k; exports.tryCatch = _chunkB42G4XDTjs.m; exports.tryCatchAsync = _chunkB42G4XDTjs.p;
|
package/dist/either/Either.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a,j as b,k as c,l as d,m as e,n as f,o as g,p as h,q as i
|
|
1
|
+
import{i as a,j as b,k as c,l as d,m as e,n as f,o as g,p as h,q as i}from"../chunk-YBXR3LKX.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.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};
|
|
@@ -2,6 +2,7 @@ import { Type, Functor } from './functor/index.mjs';
|
|
|
2
2
|
import './identity/Identity.mjs';
|
|
3
3
|
import { Tuple } from './tuple/Tuple.mjs';
|
|
4
4
|
import { Typeable } from './typeable/Typeable.mjs';
|
|
5
|
+
import { Valuable } from './valuable/Valuable.mjs';
|
|
5
6
|
|
|
6
7
|
declare const Some: <T extends Type>(value: T) => Option<T>;
|
|
7
8
|
declare const None: <T extends Type>() => Option<T>;
|
|
@@ -28,7 +29,7 @@ type Option<T extends Type> = {
|
|
|
28
29
|
_tag: "Some" | "None";
|
|
29
30
|
value: T;
|
|
30
31
|
};
|
|
31
|
-
} & (Traversable<T> & Functor<T> & Typeable<"Some" | "None">);
|
|
32
|
+
} & (Traversable<T> & Functor<T> & Typeable<"Some" | "None"> & Valuable<T>);
|
|
32
33
|
declare const Option: <T extends Type>(value: T | null | undefined) => Option<T>;
|
|
33
34
|
|
|
34
35
|
declare const createSeq: <A>(values?: Iterable<A> | _Iterable_<A>) => Seq<A>;
|
|
@@ -134,7 +135,6 @@ declare const tryCatch: <L extends Type, R extends Type>(f: () => R, onError: (e
|
|
|
134
135
|
declare const TypeCheckRight: <L extends Type, R extends Type>(value: R) => TestEither<L, R>;
|
|
135
136
|
declare const TypeCheckLeft: <L extends Type, R extends Type>(value: L) => TestEither<L, R>;
|
|
136
137
|
declare const tryCatchAsync: <L extends Type, R extends Type>(f: () => Promise<R>, onError: (error: unknown) => L) => Promise<Either<L, R>>;
|
|
137
|
-
declare const tryCatchSync: <L extends Type, R extends Type>(f: () => R, onError: (error: unknown) => L) => Either<L, R>;
|
|
138
138
|
type Either<L extends Type, R extends Type> = {
|
|
139
139
|
readonly _tag: "Left" | "Right";
|
|
140
140
|
value: L | R;
|
|
@@ -209,4 +209,4 @@ type Traversable<A extends Type> = Functor<A> & {
|
|
|
209
209
|
foldRight<B>(z: B): (op: (a: A, b: B) => B) => B;
|
|
210
210
|
};
|
|
211
211
|
|
|
212
|
-
export { 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, TestList as T, type _Iterable_ as _, Seq as a, Set as b, createSeq as c, type Collection as d, type TestEither as e, Left as f, isLeft as g, TypeCheckRight as h, isRight as i, TypeCheckLeft as j, tryCatchAsync as k,
|
|
212
|
+
export { 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, TestList as T, type _Iterable_ as _, Seq as a, Set as b, createSeq as c, type Collection as d, type TestEither as e, Left as f, isLeft as g, TypeCheckRight as h, isRight as i, TypeCheckLeft as j, tryCatchAsync as k, Try as l, type Traversable as m, tryCatch as t };
|
|
@@ -2,6 +2,7 @@ import { Type, Functor } from './functor/index.js';
|
|
|
2
2
|
import './identity/Identity.js';
|
|
3
3
|
import { Tuple } from './tuple/Tuple.js';
|
|
4
4
|
import { Typeable } from './typeable/Typeable.js';
|
|
5
|
+
import { Valuable } from './valuable/Valuable.js';
|
|
5
6
|
|
|
6
7
|
declare const Some: <T extends Type>(value: T) => Option<T>;
|
|
7
8
|
declare const None: <T extends Type>() => Option<T>;
|
|
@@ -28,7 +29,7 @@ type Option<T extends Type> = {
|
|
|
28
29
|
_tag: "Some" | "None";
|
|
29
30
|
value: T;
|
|
30
31
|
};
|
|
31
|
-
} & (Traversable<T> & Functor<T> & Typeable<"Some" | "None">);
|
|
32
|
+
} & (Traversable<T> & Functor<T> & Typeable<"Some" | "None"> & Valuable<T>);
|
|
32
33
|
declare const Option: <T extends Type>(value: T | null | undefined) => Option<T>;
|
|
33
34
|
|
|
34
35
|
declare const createSeq: <A>(values?: Iterable<A> | _Iterable_<A>) => Seq<A>;
|
|
@@ -134,7 +135,6 @@ declare const tryCatch: <L extends Type, R extends Type>(f: () => R, onError: (e
|
|
|
134
135
|
declare const TypeCheckRight: <L extends Type, R extends Type>(value: R) => TestEither<L, R>;
|
|
135
136
|
declare const TypeCheckLeft: <L extends Type, R extends Type>(value: L) => TestEither<L, R>;
|
|
136
137
|
declare const tryCatchAsync: <L extends Type, R extends Type>(f: () => Promise<R>, onError: (error: unknown) => L) => Promise<Either<L, R>>;
|
|
137
|
-
declare const tryCatchSync: <L extends Type, R extends Type>(f: () => R, onError: (error: unknown) => L) => Either<L, R>;
|
|
138
138
|
type Either<L extends Type, R extends Type> = {
|
|
139
139
|
readonly _tag: "Left" | "Right";
|
|
140
140
|
value: L | R;
|
|
@@ -209,4 +209,4 @@ type Traversable<A extends Type> = Functor<A> & {
|
|
|
209
209
|
foldRight<B>(z: B): (op: (a: A, b: B) => B) => B;
|
|
210
210
|
};
|
|
211
211
|
|
|
212
|
-
export { 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, TestList as T, type _Iterable_ as _, Seq as a, Set as b, createSeq as c, type Collection as d, type TestEither as e, Left as f, isLeft as g, TypeCheckRight as h, isRight as i, TypeCheckLeft as j, tryCatchAsync as k,
|
|
212
|
+
export { 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, TestList as T, type _Iterable_ as _, Seq as a, Set as b, createSeq as c, type Collection as d, type TestEither as e, Left as f, isLeft as g, TypeCheckRight as h, isRight as i, TypeCheckLeft as j, tryCatchAsync as k, Try as l, type Traversable as m, tryCatch as t };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { AbstractFunctor, ArrayFunctor, ArrayType, Functor, SingleType, Type } from './functor/index.mjs';
|
|
2
|
-
export { E as Either, f as Left, L as List, M as Map, N as None, O as Option, R as Right, a as Seq, b as Set, S as Some, e as TestEither, T as TestList,
|
|
2
|
+
export { E as Either, f as Left, L as List, M as Map, N as None, O as Option, R as Right, a as Seq, b as Set, S as Some, e as TestEither, T as TestList, m as Traversable, l as Try, j as TypeCheckLeft, h as TypeCheckRight, _ as _Iterable_, g as isLeft, i as isRight, t as tryCatch, k as tryCatchAsync } from './index-C05iGqWH.mjs';
|
|
3
3
|
export { Identity } from './identity/Identity.mjs';
|
|
4
4
|
export { Tuple } from './tuple/Tuple.mjs';
|
|
5
5
|
export { Typeable } from './typeable/Typeable.mjs';
|
|
6
|
+
import './valuable/Valuable.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { AbstractFunctor, ArrayFunctor, ArrayType, Functor, SingleType, Type } from './functor/index.js';
|
|
2
|
-
export { E as Either, f as Left, L as List, M as Map, N as None, O as Option, R as Right, a as Seq, b as Set, S as Some, e as TestEither, T as TestList,
|
|
2
|
+
export { E as Either, f as Left, L as List, M as Map, N as None, O as Option, R as Right, a as Seq, b as Set, S as Some, e as TestEither, T as TestList, m as Traversable, l as Try, j as TypeCheckLeft, h as TypeCheckRight, _ as _Iterable_, g as isLeft, i as isRight, t as tryCatch, k as tryCatchAsync } from './index-CgK2qCd3.js';
|
|
3
3
|
export { Identity } from './identity/Identity.js';
|
|
4
4
|
export { Tuple } from './tuple/Tuple.js';
|
|
5
5
|
export { Typeable } from './typeable/Typeable.js';
|
|
6
|
+
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 _chunkB42G4XDTjs = require('./chunk-B42G4XDT.js');var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');require('./chunk-BNNK42JC.js');var _chunk5O6YELD3js = require('./chunk-5O6YELD3.js');require('./chunk-5VTXJIR3.js');require('./chunk-3VJERXBP.js');require('./chunk-XORABVON.js');require('./chunk-K3EKBPQE.js');exports.Either = _chunkB42G4XDTjs.q; exports.Left = _chunkB42G4XDTjs.j; exports.List = _chunkB42G4XDTjs.g; exports.Map = _chunkB42G4XDTjs.r; exports.None = _chunkB42G4XDTjs.b; exports.Option = _chunkB42G4XDTjs.c; exports.Right = _chunkB42G4XDTjs.i; exports.Seq = _chunkB42G4XDTjs.e; exports.Set = _chunkB42G4XDTjs.f; exports.Some = _chunkB42G4XDTjs.a; exports.TestList = _chunkB42G4XDTjs.h; exports.Try = _chunkB42G4XDTjs.s; exports.Tuple = _chunkOXLZ6UIZjs.a; exports.TypeCheckLeft = _chunkB42G4XDTjs.o; exports.TypeCheckRight = _chunkB42G4XDTjs.n; exports.Typeable = _chunk5O6YELD3js.a; exports.isLeft = _chunkB42G4XDTjs.l; exports.isRight = _chunkB42G4XDTjs.k; exports.tryCatch = _chunkB42G4XDTjs.m; exports.tryCatchAsync = _chunkB42G4XDTjs.p;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o,q as p,r
|
|
1
|
+
import{a,b,c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o,q as p,r,s}from"./chunk-YBXR3LKX.mjs";import{a as q}from"./chunk-2I2NKDFN.mjs";import"./chunk-RRAIFS3D.mjs";import{a as t}from"./chunk-V7DKESTM.mjs";import"./chunk-377WQNCB.mjs";import"./chunk-HA5XD5KC.mjs";import"./chunk-V2J3R5IU.mjs";import"./chunk-2ML63TYF.mjs";export{p as Either,i as Left,f as List,r as Map,b as None,c as Option,h as Right,d as Seq,e as Set,a as Some,g as TestList,s as Try,q as Tuple,n as TypeCheckLeft,m as TypeCheckRight,t as Typeable,k as isLeft,j as isRight,l as tryCatch,o as tryCatchAsync};
|
package/dist/iterable/Seq.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { a as Seq, c as createSeq } from '../index-
|
|
1
|
+
export { a as Seq, c as createSeq } from '../index-C05iGqWH.mjs';
|
|
2
2
|
import '../typeable/Typeable.mjs';
|
|
3
3
|
import '../functor/index.mjs';
|
|
4
4
|
import '../identity/Identity.mjs';
|
|
5
5
|
import '../tuple/Tuple.mjs';
|
|
6
|
+
import '../valuable/Valuable.mjs';
|
package/dist/iterable/Seq.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { a as Seq, c as createSeq } from '../index-
|
|
1
|
+
export { a as Seq, c as createSeq } from '../index-CgK2qCd3.js';
|
|
2
2
|
import '../typeable/Typeable.js';
|
|
3
3
|
import '../functor/index.js';
|
|
4
4
|
import '../identity/Identity.js';
|
|
5
5
|
import '../tuple/Tuple.js';
|
|
6
|
+
import '../valuable/Valuable.js';
|
package/dist/iterable/Seq.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkB42G4XDTjs = require('../chunk-B42G4XDT.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-BNNK42JC.js');require('../chunk-5O6YELD3.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');exports.Seq = _chunkB42G4XDTjs.e; exports.createSeq = _chunkB42G4XDTjs.d;
|
package/dist/iterable/Seq.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a,e as b}from"../chunk-
|
|
1
|
+
import{d as a,e as b}from"../chunk-YBXR3LKX.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";export{b as Seq,a as createSeq};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '../functor/index.mjs';
|
|
2
|
-
export { a as Seq, _ as _Iterable_ } from '../index-
|
|
2
|
+
export { a as Seq, _ as _Iterable_ } from '../index-C05iGqWH.mjs';
|
|
3
3
|
import '../identity/Identity.mjs';
|
|
4
4
|
import '../tuple/Tuple.mjs';
|
|
5
5
|
import '../typeable/Typeable.mjs';
|
|
6
|
+
import '../valuable/Valuable.mjs';
|
package/dist/iterable/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '../functor/index.js';
|
|
2
|
-
export { a as Seq, _ as _Iterable_ } from '../index-
|
|
2
|
+
export { a as Seq, _ as _Iterable_ } from '../index-CgK2qCd3.js';
|
|
3
3
|
import '../identity/Identity.js';
|
|
4
4
|
import '../tuple/Tuple.js';
|
|
5
5
|
import '../typeable/Typeable.js';
|
|
6
|
+
import '../valuable/Valuable.js';
|
package/dist/iterable/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 _chunkB42G4XDTjs = require('../chunk-B42G4XDT.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-BNNK42JC.js');require('../chunk-5O6YELD3.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');exports.Seq = _chunkB42G4XDTjs.e;
|
package/dist/iterable/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a}from"../chunk-
|
|
1
|
+
import{e as a}from"../chunk-YBXR3LKX.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";export{a as Seq};
|
package/dist/list/List.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { L as List, T as TestList } from '../index-
|
|
1
|
+
export { L as List, T as TestList } from '../index-C05iGqWH.mjs';
|
|
2
2
|
import '../typeable/Typeable.mjs';
|
|
3
3
|
import '../functor/index.mjs';
|
|
4
4
|
import '../identity/Identity.mjs';
|
|
5
5
|
import '../tuple/Tuple.mjs';
|
|
6
|
+
import '../valuable/Valuable.mjs';
|
package/dist/list/List.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { L as List, T as TestList } from '../index-
|
|
1
|
+
export { L as List, T as TestList } from '../index-CgK2qCd3.js';
|
|
2
2
|
import '../typeable/Typeable.js';
|
|
3
3
|
import '../functor/index.js';
|
|
4
4
|
import '../identity/Identity.js';
|
|
5
5
|
import '../tuple/Tuple.js';
|
|
6
|
+
import '../valuable/Valuable.js';
|
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 _chunkB42G4XDTjs = require('../chunk-B42G4XDT.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-BNNK42JC.js');require('../chunk-5O6YELD3.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');exports.List = _chunkB42G4XDTjs.g; exports.TestList = _chunkB42G4XDTjs.h;
|
package/dist/list/List.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as a,h as b}from"../chunk-
|
|
1
|
+
import{g as a,h as b}from"../chunk-YBXR3LKX.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";export{a as List,b as TestList};
|
package/dist/map/Map.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { M as Map } from '../index-
|
|
1
|
+
export { M as Map } from '../index-C05iGqWH.mjs';
|
|
2
2
|
import '../tuple/Tuple.mjs';
|
|
3
3
|
import '../functor/index.mjs';
|
|
4
4
|
import '../identity/Identity.mjs';
|
|
5
5
|
import '../typeable/Typeable.mjs';
|
|
6
|
+
import '../valuable/Valuable.mjs';
|
package/dist/map/Map.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { M as Map } from '../index-
|
|
1
|
+
export { M as Map } from '../index-CgK2qCd3.js';
|
|
2
2
|
import '../tuple/Tuple.js';
|
|
3
3
|
import '../functor/index.js';
|
|
4
4
|
import '../identity/Identity.js';
|
|
5
5
|
import '../typeable/Typeable.js';
|
|
6
|
+
import '../valuable/Valuable.js';
|
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 _chunkB42G4XDTjs = require('../chunk-B42G4XDT.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-BNNK42JC.js');require('../chunk-5O6YELD3.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');exports.Map = _chunkB42G4XDTjs.r;
|
package/dist/map/Map.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as a}from"../chunk-YBXR3LKX.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";export{a as Map};
|
package/dist/option/Option.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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-C05iGqWH.mjs';
|
|
3
3
|
import '../typeable/Typeable.mjs';
|
|
4
|
+
import '../valuable/Valuable.mjs';
|
|
4
5
|
import '../identity/Identity.mjs';
|
|
5
6
|
import '../tuple/Tuple.mjs';
|
package/dist/option/Option.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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-CgK2qCd3.js';
|
|
3
3
|
import '../typeable/Typeable.js';
|
|
4
|
+
import '../valuable/Valuable.js';
|
|
4
5
|
import '../identity/Identity.js';
|
|
5
6
|
import '../tuple/Tuple.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 _chunkB42G4XDTjs = require('../chunk-B42G4XDT.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-BNNK42JC.js');require('../chunk-5O6YELD3.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');exports.None = _chunkB42G4XDTjs.b; exports.Option = _chunkB42G4XDTjs.c; exports.Some = _chunkB42G4XDTjs.a;
|
package/dist/option/Option.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-YBXR3LKX.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";export{b as None,c as Option,a as Some};
|
package/dist/set/Set.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { b as Set } from '../index-
|
|
1
|
+
export { b as Set } from '../index-C05iGqWH.mjs';
|
|
2
2
|
import '../functor/index.mjs';
|
|
3
3
|
import '../identity/Identity.mjs';
|
|
4
4
|
import '../tuple/Tuple.mjs';
|
|
5
5
|
import '../typeable/Typeable.mjs';
|
|
6
|
+
import '../valuable/Valuable.mjs';
|