functype 0.8.45 → 0.8.46
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-44WWBXBL.js +1 -0
- package/dist/chunk-5GE5W3Y5.mjs +1 -0
- package/dist/{chunk-6IUNLH4Y.js → chunk-AKJ5AKY4.js} +1 -1
- package/dist/{chunk-ZDHC32VM.js → chunk-UAFRIAJN.js} +1 -1
- package/dist/{chunk-EL6J5YHE.mjs → chunk-YXECCMSX.mjs} +1 -1
- package/dist/chunk-Z6YAH4SC.mjs +1 -0
- package/dist/collections/index.d.mts +1 -1
- package/dist/collections/index.d.ts +1 -1
- package/dist/core/base/Base.js +1 -1
- package/dist/core/base/Base.mjs +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-BMtTKWnx.d.mts → index-B79qaY6Y.d.mts} +1 -1
- package/dist/{index-nv4Kqten.d.ts → index-Cs3UWHHs.d.ts} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- 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/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 +1 -1
- package/dist/typeable/Typeable.d.ts +1 -1
- package/dist/typeable/Typeable.js +1 -1
- package/dist/typeable/Typeable.mjs +1 -1
- 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/package.json +1 -1
- package/dist/chunk-IVOWLU2S.js +0 -1
- package/dist/chunk-LTWGX3FD.mjs +0 -1
- package/dist/chunk-MQDESKWR.mjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkAKJ5AKY4js = require('./chunk-AKJ5AKY4.js');function o(r,n){return{..._chunkAKJ5AKY4js.a.call(void 0, r,n),toString(){return`${r}()`}}}exports.a = o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(e,t){return{...t,_tag:e}}function T(e,t){return!e||typeof e!="object"||!("_tag"in e)?!1:t?e._tag===t:!0}export{n as a,T as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});function
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});function n(e,t){return{...t,_tag:e}}function T(e,t){return!e||typeof e!="object"||!("_tag"in e)?!1:t?e._tag===t:!0}exports.a = n; exports.b = T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk2U34DUZUjs = require('./chunk-2U34DUZU.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk2U34DUZUjs = require('./chunk-2U34DUZU.js');var _chunk44WWBXBLjs = require('./chunk-44WWBXBL.js');var _chunkAKJ5AKY4js = require('./chunk-AKJ5AKY4.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 R=e=>{let t=new (0, _chunk3VJERXBPjs.a)(e),r=l(t),o={...r,add:n=>R([...t,n]),remove:n=>{let u=new (0, _chunk3VJERXBPjs.a)(t);return u.delete(n),R(u)},contains:n=>t.has(n),has:n=>t.has(n),map:n=>R(r.map(n)),flatMap:n=>R(r.flatMap(n)),toList:()=>l(t),toSet:()=>o,toString:()=>`Set(${Array.from(t).toString()})`};return o},A= exports.d =e=>R(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(n=>Array.from(o(n)))),flatMapAsync:async o=>{let n=await Promise.all(t.map(async u=>await o(u)));return T(n.flatMap(u=>Array.from(u)))},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(n=>!o(n))),filterType:o=>T(t.filter(n=>_chunkAKJ5AKY4js.b.call(void 0, n,o))),find:(o,n)=>{let u=t.find(d=>o(d)&&(n?_chunkAKJ5AKY4js.b.call(void 0, d,n):!0));return f(u)},get head(){return t[0]},get headOption(){return t.length>0?f(t[0]):L()},get isEmpty(){return t.length===0},toArray:()=>[...t],reduce:o=>t.reduce(o),reduceRight:o=>t.reduceRight(o),foldLeft:o=>n=>t.reduce(n,o),foldRight:o=>n=>t.reduceRight((u,d)=>n(d,u),o),remove:o=>T(t.filter(n=>n!==o)),removeAt:o=>o<0||o>=t.length?r:T([...t.slice(0,o),...t.slice(o+1)]),add:o=>T([...t,o]),get:o=>f(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(n=>!o(n)))),flatten:()=>T(t.flatMap(o=>Array.isArray(o)?o:[o])),toList:()=>r,toSet:()=>A(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(s(r))),merge:t=>t.isLeft()?s(t.value):i([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>s(r)),toOption:()=>c(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()?s(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:()=>s(e),then:(t,r)=>Promise.resolve(e).then(t,r)}),O=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>s(e),mapAsync:t=>Promise.resolve(s(e)),merge:t=>s(e),flatMap:t=>s(e),flatMapAsync:t=>Promise.resolve(s(e)),toOption:()=>L(),toList:()=>l(),toString:()=>`Left(${_safestablestringify2.default.call(void 0, e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>s(e),lazyMap:function*(t){yield s(e)},tap:t=>s(e),tapLeft:t=>(t(e),s(e)),mapLeft:t=>s(t(e)),bimap:(t,r)=>s(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),s= exports.g =e=>O(e),me= exports.h =e=>e.isRight(),Re= exports.i =e=>e.isLeft(),he= exports.j =(e,t)=>{try{return i(e())}catch(r){return s(t(r))}},D= exports.k =e=>V(e);console.assert(D);var H=e=>O(e);console.assert(H);var Ae=async(e,t)=>{try{let r=await e();return i(r)}catch(r){return s(t(r))}},J= exports.n ={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return s(r.value);t.push(r.value)}return i(t)},traverse:(e,t)=>J.sequence(e.map(t)),fromNullable:(e,t)=>e==null?s(t):i(e),fromPredicate:(e,t,r)=>t(e)?i(e):s(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 s(t(r))}}};var E=(e,t)=>{let r=_chunk2U34DUZUjs.a.call(void 0, e,t);return{..._chunk44WWBXBLjs.a.call(void 0, "AppException",s(r))}},x= exports.p =e=>({..._chunk44WWBXBLjs.a.call(void 0, "AppResult",i(e))});function K(e,t=o=>o,r=()=>{}){try{return x(e())}catch(o){return E(t(o))}finally{r()}}K.success=e=>x(e);K.fail=e=>E(e);async function k(e,t=o=>o,r=async()=>{}){try{let o=await e();return x(o)}catch(o){let n=await t(o);return E(n)}finally{await r()}}k.success=e=>x(e);k.fail=e=>E(e);var y=e=>{let t={values:new (0, _chunk5VTXJIR3js.a)(e)},r=()=>Array.from(t.values.entries()).map(([a,p])=>_chunkOXLZ6UIZjs.a.call(void 0, [a,p])),o=a=>y(new (0, _chunk5VTXJIR3js.a)(t.values).set(a.toArray()[0],a.toArray()[1]).entries()),n=a=>{let p=new (0, _chunk5VTXJIR3js.a)(t.values);return p.delete(a)?y(p.entries()):y(t.values.entries())},u=a=>t.values.get(a[0])===a[1],d=()=>t.values.size,_=a=>y(Array.from(t.values.entries()).map(([p,j])=>[p,a(j)])),I=a=>{let p=y(t.values.entries()).toList();return y(p.flatMap(a).toArray())},F=a=>l(r()).reduce(a),N=a=>l(r()).reduceRight(a),z=a=>p=>l(r()).foldLeft(a)(p),C=a=>p=>l(r()).foldRight(a)(p),$=a=>f(t.values.get(a)),q=(a,p)=>f(t.values.get(a)).getOrElse(p),G=()=>t.values.size===0;return{add:o,remove:n,contains:u,get size(){return d()},map:_,flatMap:I,reduce:F,reduceRight:N,foldLeft:z,foldRight:C,get:$,getOrElse:q,get isEmpty(){return G()},orElse:(a,p)=>f(t.values.get(a)).orElse(p),toList:()=>l(r()),toSet:()=>A(r()),toString:()=>`Map(${r().toString()})`}},ke= exports.s =e=>y(e);var P=e=>({_tag:"Success",value:e,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,get:()=>e,getOrElse:t=>e,orElse:t=>P(e),orThrow:t=>e,toEither:()=>i(e),map:t=>Q(()=>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:()=>s(e),map:t=>v(e),flatMap:t=>v(e),toString:()=>`Failure(${_safestablestringify2.default.call(void 0, e)}))`}),Q= exports.t =e=>{try{return P(e())}catch(t){return v(t instanceof Error?t:new Error(String(t)))}};var c=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,getOrThrow:()=>e,orElse:()=>c(e),orNull:()=>e,map:t=>c(t(e)),filter(t){return t(e)?c(e):m},fold:(t,r)=>r(e),flatMap:t=>t(e),flatMapAsync:async t=>await 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,flatMapAsync:async e=>m,reduce:()=>{},reduceRight:()=>{},fold:(e,t)=>e(),foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>l([]),contains:()=>!1,size:0,toEither:e=>s(e),toString:()=>"None",toValue:()=>({_tag:"None",value:void 0})},L= exports.b =()=>m,f= exports.c =e=>e!=null?c(e):L();f.from=e=>f(e);f.none=()=>L();exports.a = c; exports.b = L; exports.c = f; exports.d = A; exports.e = l; exports.f = i; exports.g = s; exports.h = me; exports.i = Re; exports.j = he; exports.k = D; exports.l = H; exports.m = Ae; exports.n = J; exports.o = E; exports.p = x; exports.q = K; exports.r = k; exports.s = ke; exports.t = Q;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as B}from"./chunk-HD6YYUHO.mjs";import{a as U}from"./chunk-
|
|
1
|
+
import{a as B}from"./chunk-HD6YYUHO.mjs";import{a as U}from"./chunk-Z6YAH4SC.mjs";import{b as g}from"./chunk-5GE5W3Y5.mjs";import{a as h}from"./chunk-377WQNCB.mjs";import{a as b}from"./chunk-HA5XD5KC.mjs";import{a as S}from"./chunk-2I2NKDFN.mjs";import X from"safe-stable-stringify";import w from"safe-stable-stringify";import W from"safe-stable-stringify";var R=e=>{let t=new b(e),r=l(t),o={...r,add:n=>R([...t,n]),remove:n=>{let u=new b(t);return u.delete(n),R(u)},contains:n=>t.has(n),has:n=>t.has(n),map:n=>R(r.map(n)),flatMap:n=>R(r.flatMap(n)),toList:()=>l(t),toSet:()=>o,toString:()=>`Set(${Array.from(t).toString()})`};return o},A=e=>R(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(n=>Array.from(o(n)))),flatMapAsync:async o=>{let n=await Promise.all(t.map(async u=>await o(u)));return T(n.flatMap(u=>Array.from(u)))},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(n=>!o(n))),filterType:o=>T(t.filter(n=>g(n,o))),find:(o,n)=>{let u=t.find(d=>o(d)&&(n?g(d,n):!0));return f(u)},get head(){return t[0]},get headOption(){return t.length>0?f(t[0]):L()},get isEmpty(){return t.length===0},toArray:()=>[...t],reduce:o=>t.reduce(o),reduceRight:o=>t.reduceRight(o),foldLeft:o=>n=>t.reduce(n,o),foldRight:o=>n=>t.reduceRight((u,d)=>n(d,u),o),remove:o=>T(t.filter(n=>n!==o)),removeAt:o=>o<0||o>=t.length?r:T([...t.slice(0,o),...t.slice(o+1)]),add:o=>T([...t,o]),get:o=>f(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(n=>!o(n)))),flatten:()=>T(t.flatMap(o=>Array.isArray(o)?o:[o])),toList:()=>r,toSet:()=>A(t),toString:()=>`List(${W(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(s(r))),merge:t=>t.isLeft()?s(t.value):i([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>s(r)),toOption:()=>c(e),toList:()=>l([e]),toString:()=>`Right(${w(e)})`,[Symbol.iterator]:function*(){yield e},yield:function*(){yield e},traverse:t=>{let r=t(e);return r.isLeft()?s(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:()=>s(e),then:(t,r)=>Promise.resolve(e).then(t,r)}),O=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>s(e),mapAsync:t=>Promise.resolve(s(e)),merge:t=>s(e),flatMap:t=>s(e),flatMapAsync:t=>Promise.resolve(s(e)),toOption:()=>L(),toList:()=>l(),toString:()=>`Left(${w(e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>s(e),lazyMap:function*(t){yield s(e)},tap:t=>s(e),tapLeft:t=>(t(e),s(e)),mapLeft:t=>s(t(e)),bimap:(t,r)=>s(t(e)),fold:(t,r)=>t(e),swap:()=>i(e),then:(t,r)=>Promise.reject(e).then(null,r)}),i=e=>V(e),s=e=>O(e),me=e=>e.isRight(),Re=e=>e.isLeft(),he=(e,t)=>{try{return i(e())}catch(r){return s(t(r))}},D=e=>V(e);console.assert(D);var H=e=>O(e);console.assert(H);var Ae=async(e,t)=>{try{let r=await e();return i(r)}catch(r){return s(t(r))}},J={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return s(r.value);t.push(r.value)}return i(t)},traverse:(e,t)=>J.sequence(e.map(t)),fromNullable:(e,t)=>e==null?s(t):i(e),fromPredicate:(e,t,r)=>t(e)?i(e):s(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 s(t(r))}}};var E=(e,t)=>{let r=B(e,t);return{...U("AppException",s(r))}},x=e=>({...U("AppResult",i(e))});function K(e,t=o=>o,r=()=>{}){try{return x(e())}catch(o){return E(t(o))}finally{r()}}K.success=e=>x(e);K.fail=e=>E(e);async function k(e,t=o=>o,r=async()=>{}){try{let o=await e();return x(o)}catch(o){let n=await t(o);return E(n)}finally{await r()}}k.success=e=>x(e);k.fail=e=>E(e);var y=e=>{let t={values:new h(e)},r=()=>Array.from(t.values.entries()).map(([a,p])=>S([a,p])),o=a=>y(new h(t.values).set(a.toArray()[0],a.toArray()[1]).entries()),n=a=>{let p=new h(t.values);return p.delete(a)?y(p.entries()):y(t.values.entries())},u=a=>t.values.get(a[0])===a[1],d=()=>t.values.size,_=a=>y(Array.from(t.values.entries()).map(([p,j])=>[p,a(j)])),I=a=>{let p=y(t.values.entries()).toList();return y(p.flatMap(a).toArray())},F=a=>l(r()).reduce(a),N=a=>l(r()).reduceRight(a),z=a=>p=>l(r()).foldLeft(a)(p),C=a=>p=>l(r()).foldRight(a)(p),$=a=>f(t.values.get(a)),q=(a,p)=>f(t.values.get(a)).getOrElse(p),G=()=>t.values.size===0;return{add:o,remove:n,contains:u,get size(){return d()},map:_,flatMap:I,reduce:F,reduceRight:N,foldLeft:z,foldRight:C,get:$,getOrElse:q,get isEmpty(){return G()},orElse:(a,p)=>f(t.values.get(a)).orElse(p),toList:()=>l(r()),toSet:()=>A(r()),toString:()=>`Map(${r().toString()})`}},ke=e=>y(e);import M from"safe-stable-stringify";var P=e=>({_tag:"Success",value:e,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,get:()=>e,getOrElse:t=>e,orElse:t=>P(e),orThrow:t=>e,toEither:()=>i(e),map:t=>Q(()=>t(e)),flatMap:t=>t(e),toString:()=>`Success(${M(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:()=>s(e),map:t=>v(e),flatMap:t=>v(e),toString:()=>`Failure(${M(e)}))`}),Q=e=>{try{return P(e())}catch(t){return v(t instanceof Error?t:new Error(String(t)))}};var c=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,getOrThrow:()=>e,orElse:()=>c(e),orNull:()=>e,map:t=>c(t(e)),filter(t){return t(e)?c(e):m},fold:(t,r)=>r(e),flatMap:t=>t(e),flatMapAsync:async t=>await 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(${X(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,flatMapAsync:async e=>m,reduce:()=>{},reduceRight:()=>{},fold:(e,t)=>e(),foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>l([]),contains:()=>!1,size:0,toEither:e=>s(e),toString:()=>"None",toValue:()=>({_tag:"None",value:void 0})},L=()=>m,f=e=>e!=null?c(e):L();f.from=e=>f(e);f.none=()=>L();export{c as a,L as b,f as c,A as d,l as e,i as f,s as g,me as h,Re as i,he as j,D as k,H as l,Ae as m,J as n,E as o,x as p,K as q,k as r,ke as s,Q as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-5GE5W3Y5.mjs";function o(r,n){return{...t(r,n),toString(){return`${r}()`}}}export{o as a};
|
package/dist/core/base/Base.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk44WWBXBLjs = require('../../chunk-44WWBXBL.js');require('../../chunk-AKJ5AKY4.js');exports.Base = _chunk44WWBXBLjs.a;
|
package/dist/core/base/Base.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-Z6YAH4SC.mjs";import"../../chunk-5GE5W3Y5.mjs";export{a as Base};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index-
|
|
1
|
+
export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index-B79qaY6Y.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, h as AppResult, k as AsyncTask, j as Task } from '../../index-
|
|
1
|
+
export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index-Cs3UWHHs.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 _chunkUAFRIAJNjs = require('../../chunk-UAFRIAJN.js');require('../../chunk-2U34DUZU.js');require('../../chunk-44WWBXBL.js');require('../../chunk-AKJ5AKY4.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 = _chunkUAFRIAJNjs.o; exports.AppResult = _chunkUAFRIAJNjs.p; exports.AsyncTask = _chunkUAFRIAJNjs.r; exports.Task = _chunkUAFRIAJNjs.q;
|
package/dist/core/task/Task.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as a,p as b,q as c,r as d}from"../../chunk-
|
|
1
|
+
import{o as a,p as b,q as c,r as d}from"../../chunk-YXECCMSX.mjs";import"../../chunk-HD6YYUHO.mjs";import"../../chunk-Z6YAH4SC.mjs";import"../../chunk-5GE5W3Y5.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, 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-
|
|
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-B79qaY6Y.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, 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-
|
|
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-Cs3UWHHs.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 _chunkUAFRIAJNjs = require('../chunk-UAFRIAJN.js');require('../chunk-2U34DUZU.js');require('../chunk-44WWBXBL.js');require('../chunk-AKJ5AKY4.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 = _chunkUAFRIAJNjs.n; exports.Left = _chunkUAFRIAJNjs.g; exports.Right = _chunkUAFRIAJNjs.f; exports.TypeCheckLeft = _chunkUAFRIAJNjs.l; exports.TypeCheckRight = _chunkUAFRIAJNjs.k; exports.isLeft = _chunkUAFRIAJNjs.i; exports.isRight = _chunkUAFRIAJNjs.h; exports.tryCatch = _chunkUAFRIAJNjs.j; exports.tryCatchAsync = _chunkUAFRIAJNjs.m;
|
package/dist/either/Either.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-YXECCMSX.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-Z6YAH4SC.mjs";import"../chunk-5GE5W3Y5.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};
|
|
@@ -102,7 +102,7 @@ type List<A> = {
|
|
|
102
102
|
filter<S extends A>(predicate: (a: A) => a is S): List<S>;
|
|
103
103
|
filter(predicate: (a: A) => unknown): List<A>;
|
|
104
104
|
filterNot: (p: (a: A) => boolean) => List<A>;
|
|
105
|
-
filterType: <T extends A
|
|
105
|
+
filterType: <T extends A & Typeable<string, unknown>>(tag: string) => List<T>;
|
|
106
106
|
find: <T extends A = A>(predicate: (a: A) => boolean, tag?: ExtractTag<T>) => Option<T>;
|
|
107
107
|
readonly head: A;
|
|
108
108
|
readonly headOption: Option<A>;
|
|
@@ -102,7 +102,7 @@ type List<A> = {
|
|
|
102
102
|
filter<S extends A>(predicate: (a: A) => a is S): List<S>;
|
|
103
103
|
filter(predicate: (a: A) => unknown): List<A>;
|
|
104
104
|
filterNot: (p: (a: A) => boolean) => List<A>;
|
|
105
|
-
filterType: <T extends A
|
|
105
|
+
filterType: <T extends A & Typeable<string, unknown>>(tag: string) => List<T>;
|
|
106
106
|
find: <T extends A = A>(predicate: (a: A) => boolean, tag?: ExtractTag<T>) => Option<T>;
|
|
107
107
|
readonly head: A;
|
|
108
108
|
readonly headOption: Option<A>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AbstractFunctor, ArrayFunctor, ArrayType, AsyncFunctor, 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, 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-
|
|
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-B79qaY6Y.mjs';
|
|
5
5
|
export { Identity } from './identity/Identity.mjs';
|
|
6
6
|
export { Tuple } from './tuple/Tuple.mjs';
|
|
7
7
|
export { ExtractTag, Typeable, isTypeable } from './typeable/Typeable.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AbstractFunctor, ArrayFunctor, ArrayType, AsyncFunctor, 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, 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-
|
|
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-Cs3UWHHs.js';
|
|
5
5
|
export { Identity } from './identity/Identity.js';
|
|
6
6
|
export { Tuple } from './tuple/Tuple.js';
|
|
7
7
|
export { ExtractTag, Typeable, isTypeable } from './typeable/Typeable.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 _chunkUAFRIAJNjs = require('./chunk-UAFRIAJN.js');var _chunk2U34DUZUjs = require('./chunk-2U34DUZU.js');var _chunk44WWBXBLjs = require('./chunk-44WWBXBL.js');var _chunkAKJ5AKY4js = require('./chunk-AKJ5AKY4.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 = _chunkUAFRIAJNjs.o; exports.AppResult = _chunkUAFRIAJNjs.p; exports.AsyncTask = _chunkUAFRIAJNjs.r; exports.Base = _chunk44WWBXBLjs.a; exports.Either = _chunkUAFRIAJNjs.n; exports.Left = _chunkUAFRIAJNjs.g; exports.List = _chunkUAFRIAJNjs.e; exports.Map = _chunkUAFRIAJNjs.s; exports.None = _chunkUAFRIAJNjs.b; exports.Option = _chunkUAFRIAJNjs.c; exports.Right = _chunkUAFRIAJNjs.f; exports.Set = _chunkUAFRIAJNjs.d; exports.Some = _chunkUAFRIAJNjs.a; exports.Task = _chunkUAFRIAJNjs.q; exports.Throwable = _chunk2U34DUZUjs.a; exports.Try = _chunkUAFRIAJNjs.t; exports.Tuple = _chunkOXLZ6UIZjs.a; exports.TypeCheckLeft = _chunkUAFRIAJNjs.l; exports.TypeCheckRight = _chunkUAFRIAJNjs.k; exports.Typeable = _chunkAKJ5AKY4js.a; exports.isLeft = _chunkUAFRIAJNjs.i; exports.isRight = _chunkUAFRIAJNjs.h; exports.isTypeable = _chunkAKJ5AKY4js.b; exports.tryCatch = _chunkUAFRIAJNjs.j; exports.tryCatchAsync = _chunkUAFRIAJNjs.m;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as f,c as g,d as h,e as i,f as j,g as k,h as l,i as m,j as n,k as o,l as p,m as q,n as r,o as s,p as t,q as u,r as v,s as x,t as y}from"./chunk-
|
|
1
|
+
import{a as e,b as f,c as g,d as h,e as i,f as j,g as k,h as l,i as m,j as n,k as o,l as p,m as q,n as r,o as s,p as t,q as u,r as v,s as x,t as y}from"./chunk-YXECCMSX.mjs";import{a as d}from"./chunk-HD6YYUHO.mjs";import{a as c}from"./chunk-Z6YAH4SC.mjs";import{a,b}from"./chunk-5GE5W3Y5.mjs";import"./chunk-377WQNCB.mjs";import"./chunk-HA5XD5KC.mjs";import{a as w}from"./chunk-2I2NKDFN.mjs";import"./chunk-V2J3R5IU.mjs";import"./chunk-2ML63TYF.mjs";import"./chunk-4H62YQ42.mjs";export{s as AppException,t as AppResult,v as AsyncTask,c as Base,r as Either,k as Left,i as List,x as Map,f as None,g as Option,j as Right,h as Set,e as Some,u as Task,d as Throwable,y as Try,w as Tuple,p as TypeCheckLeft,o as TypeCheckRight,a as Typeable,m as isLeft,l as isRight,b as isTypeable,n as tryCatch,q as tryCatchAsync};
|
package/dist/iterable/index.d.ts
CHANGED
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 _chunkUAFRIAJNjs = require('../chunk-UAFRIAJN.js');require('../chunk-2U34DUZU.js');require('../chunk-44WWBXBL.js');require('../chunk-AKJ5AKY4.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 = _chunkUAFRIAJNjs.e;
|
package/dist/list/List.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a}from"../chunk-
|
|
1
|
+
import{e as a}from"../chunk-YXECCMSX.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-Z6YAH4SC.mjs";import"../chunk-5GE5W3Y5.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 _chunkUAFRIAJNjs = require('../chunk-UAFRIAJN.js');require('../chunk-2U34DUZU.js');require('../chunk-44WWBXBL.js');require('../chunk-AKJ5AKY4.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 = _chunkUAFRIAJNjs.s;
|
package/dist/map/Map.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a}from"../chunk-
|
|
1
|
+
import{s as a}from"../chunk-YXECCMSX.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-Z6YAH4SC.mjs";import"../chunk-5GE5W3Y5.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-B79qaY6Y.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-Cs3UWHHs.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 _chunkUAFRIAJNjs = require('../chunk-UAFRIAJN.js');require('../chunk-2U34DUZU.js');require('../chunk-44WWBXBL.js');require('../chunk-AKJ5AKY4.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 = _chunkUAFRIAJNjs.b; exports.Option = _chunkUAFRIAJNjs.c; exports.Some = _chunkUAFRIAJNjs.a;
|
package/dist/option/Option.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-YXECCMSX.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-Z6YAH4SC.mjs";import"../chunk-5GE5W3Y5.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 _chunkUAFRIAJNjs = require('../chunk-UAFRIAJN.js');require('../chunk-2U34DUZU.js');require('../chunk-44WWBXBL.js');require('../chunk-AKJ5AKY4.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 = _chunkUAFRIAJNjs.d;
|
package/dist/set/Set.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a}from"../chunk-
|
|
1
|
+
import{d as a}from"../chunk-YXECCMSX.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-Z6YAH4SC.mjs";import"../chunk-5GE5W3Y5.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 _chunkUAFRIAJNjs = require('../chunk-UAFRIAJN.js');require('../chunk-2U34DUZU.js');require('../chunk-44WWBXBL.js');require('../chunk-AKJ5AKY4.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 = _chunkUAFRIAJNjs.t;
|
package/dist/try/Try.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as a}from"../chunk-
|
|
1
|
+
import{t as a}from"../chunk-YXECCMSX.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-Z6YAH4SC.mjs";import"../chunk-5GE5W3Y5.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};
|
|
@@ -3,6 +3,6 @@ type Typeable<Tag extends string, T = object> = T & {
|
|
|
3
3
|
readonly _tag: Tag;
|
|
4
4
|
};
|
|
5
5
|
declare function Typeable<Tag extends string, T>(tag: Tag, data: T): Typeable<Tag, T>;
|
|
6
|
-
declare function isTypeable<T>(value: unknown, tag
|
|
6
|
+
declare function isTypeable<T>(value: unknown, tag: string): value is T;
|
|
7
7
|
|
|
8
8
|
export { type ExtractTag, Typeable, isTypeable };
|
|
@@ -3,6 +3,6 @@ type Typeable<Tag extends string, T = object> = T & {
|
|
|
3
3
|
readonly _tag: Tag;
|
|
4
4
|
};
|
|
5
5
|
declare function Typeable<Tag extends string, T>(tag: Tag, data: T): Typeable<Tag, T>;
|
|
6
|
-
declare function isTypeable<T>(value: unknown, tag
|
|
6
|
+
declare function isTypeable<T>(value: unknown, tag: string): value is T;
|
|
7
7
|
|
|
8
8
|
export { type ExtractTag, Typeable, isTypeable };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkAKJ5AKY4js = require('../chunk-AKJ5AKY4.js');exports.Typeable = _chunkAKJ5AKY4js.a; exports.isTypeable = _chunkAKJ5AKY4js.b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-5GE5W3Y5.mjs";export{a as Typeable,b as isTypeable};
|
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 _chunkUAFRIAJNjs = require('../chunk-UAFRIAJN.js');require('../chunk-2U34DUZU.js');require('../chunk-44WWBXBL.js');require('../chunk-AKJ5AKY4.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)?_chunkUAFRIAJNjs.g.call(void 0, _chunkE6RS47F7js.a.call(void 0, `${r}`)):_chunkUAFRIAJNjs.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{f as e,g as t}from"../chunk-
|
|
1
|
+
import{a as s}from"../chunk-VK5GL6NM.mjs";import{f as e,g as t}from"../chunk-YXECCMSX.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-Z6YAH4SC.mjs";import"../chunk-5GE5W3Y5.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/package.json
CHANGED
package/dist/chunk-IVOWLU2S.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk6IUNLH4Yjs = require('./chunk-6IUNLH4Y.js');function o(r,n){return{..._chunk6IUNLH4Yjs.a.call(void 0, r,n),toString(){return`${r}()`}}}exports.a = o;
|
package/dist/chunk-LTWGX3FD.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function T(e,t){return{...t,_tag:e}}function n(e,t){return!e||typeof e!="object"||!("_tag"in e)?!1:t?e._tag===t:!0}export{T as a,n as b};
|
package/dist/chunk-MQDESKWR.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-LTWGX3FD.mjs";function o(r,n){return{...t(r,n),toString(){return`${r}()`}}}export{o as a};
|