functype 0.8.46 → 0.8.48
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-3VJERXBP.js +1 -1
- package/dist/chunk-44WWBXBL.js +1 -1
- package/dist/chunk-5VTXJIR3.js +1 -1
- package/dist/chunk-A74BGUJY.js +1 -0
- package/dist/chunk-AKJ5AKY4.js +1 -1
- package/dist/chunk-E6RS47F7.js +1 -1
- package/dist/chunk-ETZOPDED.cjs +1 -0
- package/dist/chunk-F2MMVEVC.cjs +1 -0
- package/dist/chunk-F4X3NIWH.cjs +1 -0
- package/dist/chunk-GTEH27TN.cjs +1 -0
- package/dist/chunk-K3EKBPQE.js +0 -1
- package/dist/chunk-MGVXS4LE.js +1 -0
- package/dist/chunk-NK7YQNSE.cjs +1 -0
- package/dist/chunk-NSNLRGHP.js +1 -0
- package/dist/chunk-O2XFH626.js +1 -0
- package/dist/chunk-OTPXQIIK.cjs +1 -0
- package/dist/chunk-SKWCM5HU.cjs +1 -0
- package/dist/chunk-VYU4CRRS.cjs +1 -0
- package/dist/chunk-W4XJI2DG.cjs +1 -0
- package/dist/chunk-WRNN6RXF.cjs +1 -0
- package/dist/chunk-WTWWDZY6.js +0 -1
- package/dist/chunk-XORABVON.js +0 -1
- package/dist/chunk-YMNGLB2A.cjs +1 -0
- package/dist/chunk-YXBYA3MQ.cjs +1 -0
- package/dist/collections/index.cjs +1 -0
- package/dist/collections/index.d.cts +9 -0
- package/dist/collections/index.d.ts +4 -3
- package/dist/collections/index.js +0 -1
- package/dist/core/base/Base.cjs +1 -0
- package/dist/core/base/Base.js +1 -1
- package/dist/core/info/Info.cjs +1 -0
- package/dist/core/info/Info.d.cts +28 -0
- package/dist/core/info/Info.d.ts +28 -0
- package/dist/core/info/Info.js +1 -0
- package/dist/core/task/Task.cjs +1 -0
- package/dist/core/task/Task.d.cts +9 -0
- package/dist/core/task/Task.d.ts +5 -4
- package/dist/core/task/Task.js +1 -1
- package/dist/core/throwable/Throwable.cjs +1 -0
- package/dist/core/throwable/Throwable.d.cts +20 -0
- package/dist/core/throwable/Throwable.d.ts +20 -0
- package/dist/core/throwable/Throwable.js +1 -0
- package/dist/either/Either.cjs +1 -0
- package/dist/either/Either.d.cts +9 -0
- package/dist/either/Either.d.ts +4 -3
- package/dist/either/Either.js +1 -1
- package/dist/error/ParseError.cjs +1 -0
- package/dist/error/ParseError.js +1 -1
- package/dist/functor/index.cjs +1 -0
- package/dist/functor/index.js +1 -1
- package/dist/identity/Identity.cjs +1 -0
- package/dist/identity/Identity.js +1 -1
- package/dist/{index-Cs3UWHHs.d.ts → index-Bu5HXzs9.d.ts} +13 -20
- package/dist/{index-B79qaY6Y.d.mts → index-DxmJscpB.d.cts} +17 -24
- package/dist/index.cjs +1 -0
- package/dist/{index.d.mts → index.d.cts} +9 -8
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/iterable/index.cjs +1 -0
- package/dist/iterable/index.d.cts +9 -0
- package/dist/iterable/index.d.ts +4 -3
- package/dist/iterable/index.js +1 -1
- package/dist/list/List.cjs +1 -0
- package/dist/list/List.d.cts +9 -0
- package/dist/list/List.d.ts +4 -3
- package/dist/list/List.js +1 -1
- package/dist/map/Map.cjs +1 -0
- package/dist/map/Map.d.cts +9 -0
- package/dist/map/Map.d.ts +5 -4
- package/dist/map/Map.js +1 -1
- package/dist/map/shim.cjs +1 -0
- package/dist/map/shim.js +1 -1
- package/dist/option/Option.cjs +1 -0
- package/dist/option/Option.d.cts +9 -0
- package/dist/option/Option.d.ts +3 -2
- package/dist/option/Option.js +1 -1
- package/dist/serializable/Serializable.cjs +3 -0
- package/dist/serializable/Serializable.js +2 -2
- package/dist/set/Set.cjs +1 -0
- package/dist/set/Set.d.cts +9 -0
- package/dist/set/Set.d.ts +5 -4
- package/dist/set/Set.js +1 -1
- package/dist/set/shim.cjs +1 -0
- package/dist/set/shim.js +1 -1
- package/dist/try/Try.cjs +1 -0
- package/dist/try/Try.d.cts +9 -0
- package/dist/try/Try.d.ts +4 -3
- package/dist/try/Try.js +1 -1
- package/dist/tuple/Tuple.cjs +1 -0
- package/dist/tuple/{Tuple.d.mts → Tuple.d.cts} +4 -2
- package/dist/tuple/Tuple.d.ts +3 -1
- package/dist/tuple/Tuple.js +1 -1
- package/dist/typeable/Typeable.cjs +1 -0
- package/dist/typeable/Typeable.js +1 -1
- package/dist/util/index.cjs +1 -0
- package/dist/util/index.d.cts +14 -0
- package/dist/util/index.d.ts +4 -3
- package/dist/util/index.js +1 -1
- package/dist/util/isIterable.cjs +1 -0
- package/dist/util/isIterable.js +1 -1
- package/dist/valuable/Valuable.cjs +1 -0
- package/dist/valuable/Valuable.d.cts +9 -0
- package/dist/valuable/Valuable.d.ts +6 -3
- package/dist/valuable/Valuable.js +1 -1
- package/package.json +10 -8
- package/dist/chunk-2I2NKDFN.mjs +0 -1
- package/dist/chunk-2ML63TYF.mjs +0 -0
- package/dist/chunk-2U34DUZU.js +0 -1
- package/dist/chunk-377WQNCB.mjs +0 -1
- package/dist/chunk-4H62YQ42.mjs +0 -0
- package/dist/chunk-5GE5W3Y5.mjs +0 -1
- package/dist/chunk-HA5XD5KC.mjs +0 -1
- package/dist/chunk-HD6YYUHO.mjs +0 -1
- package/dist/chunk-OXLZ6UIZ.js +0 -1
- package/dist/chunk-UAFRIAJN.js +0 -1
- package/dist/chunk-V2J3R5IU.mjs +0 -0
- package/dist/chunk-VK5GL6NM.mjs +0 -1
- package/dist/chunk-YXECCMSX.mjs +0 -1
- package/dist/chunk-Z6YAH4SC.mjs +0 -1
- package/dist/collections/index.d.mts +0 -8
- package/dist/collections/index.mjs +0 -0
- package/dist/core/base/Base.mjs +0 -1
- package/dist/core/error/Throwable.d.mts +0 -12
- package/dist/core/error/Throwable.d.ts +0 -12
- package/dist/core/error/Throwable.js +0 -1
- package/dist/core/error/Throwable.mjs +0 -1
- package/dist/core/task/Task.d.mts +0 -8
- package/dist/core/task/Task.mjs +0 -1
- package/dist/either/Either.d.mts +0 -8
- package/dist/either/Either.mjs +0 -1
- package/dist/error/ParseError.mjs +0 -1
- package/dist/functor/index.mjs +0 -1
- package/dist/identity/Identity.mjs +0 -1
- package/dist/index.mjs +0 -1
- package/dist/iterable/index.d.mts +0 -8
- package/dist/iterable/index.mjs +0 -1
- package/dist/list/List.d.mts +0 -8
- package/dist/list/List.mjs +0 -1
- package/dist/map/Map.d.mts +0 -8
- package/dist/map/Map.mjs +0 -1
- package/dist/map/shim.mjs +0 -1
- package/dist/option/Option.d.mts +0 -8
- package/dist/option/Option.mjs +0 -1
- package/dist/serializable/Serializable.mjs +0 -3
- package/dist/set/Set.d.mts +0 -8
- package/dist/set/Set.mjs +0 -1
- package/dist/set/shim.mjs +0 -1
- package/dist/try/Try.d.mts +0 -8
- package/dist/try/Try.mjs +0 -1
- package/dist/tuple/Tuple.mjs +0 -1
- package/dist/typeable/Typeable.mjs +0 -1
- package/dist/util/index.d.mts +0 -13
- package/dist/util/index.mjs +0 -1
- package/dist/util/isIterable.mjs +0 -1
- package/dist/valuable/Valuable.d.mts +0 -6
- package/dist/valuable/Valuable.mjs +0 -1
- 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/dist/core/base/{Base.d.mts → Base.d.cts} +0 -0
- /package/dist/error/{ParseError.d.mts → ParseError.d.cts} +0 -0
- /package/dist/functor/{index.d.mts → index.d.cts} +0 -0
- /package/dist/identity/{Identity.d.mts → Identity.d.cts} +0 -0
- /package/dist/map/{shim.d.mts → shim.d.cts} +0 -0
- /package/dist/serializable/{Serializable.d.mts → Serializable.d.cts} +0 -0
- /package/dist/set/{shim.d.mts → shim.d.cts} +0 -0
- /package/dist/typeable/{Typeable.d.mts → Typeable.d.cts} +0 -0
- /package/dist/util/{isIterable.d.mts → isIterable.d.cts} +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { AbstractFunctor, ArrayFunctor, ArrayType, AsyncFunctor, Functor, SingleType, Type } from './functor/index.
|
|
2
|
-
export { Base } from './core/base/Base.
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export { Identity } from './identity/Identity.
|
|
6
|
-
export { Tuple } from './tuple/Tuple.
|
|
7
|
-
export { ExtractTag, Typeable, isTypeable } from './typeable/Typeable.
|
|
8
|
-
import './valuable/Valuable.
|
|
1
|
+
export { AbstractFunctor, ArrayFunctor, ArrayType, AsyncFunctor, Functor, SingleType, Type } from './functor/index.cjs';
|
|
2
|
+
export { Base } from './core/base/Base.cjs';
|
|
3
|
+
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-DxmJscpB.cjs';
|
|
4
|
+
export { Throwable, ThrowableType } from './core/throwable/Throwable.cjs';
|
|
5
|
+
export { Identity } from './identity/Identity.cjs';
|
|
6
|
+
export { Tuple } from './tuple/Tuple.cjs';
|
|
7
|
+
export { ExtractTag, Typeable, isTypeable } from './typeable/Typeable.cjs';
|
|
8
|
+
import './valuable/Valuable.cjs';
|
|
9
|
+
import './map/shim.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { AbstractFunctor, ArrayFunctor, ArrayType, AsyncFunctor, Functor, SingleType, Type } from './functor/index.js';
|
|
2
2
|
export { Base } from './core/base/Base.js';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
3
|
+
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-Bu5HXzs9.js';
|
|
4
|
+
export { Throwable, ThrowableType } from './core/throwable/Throwable.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';
|
|
8
8
|
import './valuable/Valuable.js';
|
|
9
|
+
import './map/shim.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +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-A74BGUJY.js";import{a as c}from"./chunk-44WWBXBL.js";import{a,b}from"./chunk-AKJ5AKY4.js";import{a as d}from"./chunk-MGVXS4LE.js";import"./chunk-5VTXJIR3.js";import"./chunk-3VJERXBP.js";import{a as w}from"./chunk-NSNLRGHP.js";import"./chunk-O2XFH626.js";import"./chunk-XORABVON.js";import"./chunk-K3EKBPQE.js";import"./chunk-WTWWDZY6.js";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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('../chunk-WRNN6RXF.cjs');
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../functor/index.cjs';
|
|
2
|
+
export { I as IterableType } from '../index-DxmJscpB.cjs';
|
|
3
|
+
import '../core/base/Base.cjs';
|
|
4
|
+
import '../core/throwable/Throwable.cjs';
|
|
5
|
+
import '../typeable/Typeable.cjs';
|
|
6
|
+
import '../valuable/Valuable.cjs';
|
|
7
|
+
import '../identity/Identity.cjs';
|
|
8
|
+
import '../tuple/Tuple.cjs';
|
|
9
|
+
import '../map/shim.cjs';
|
package/dist/iterable/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import '../functor/index.js';
|
|
2
|
-
export { I as IterableType } from '../index-
|
|
2
|
+
export { I as IterableType } from '../index-Bu5HXzs9.js';
|
|
3
3
|
import '../core/base/Base.js';
|
|
4
|
-
import '../core/
|
|
4
|
+
import '../core/throwable/Throwable.js';
|
|
5
5
|
import '../typeable/Typeable.js';
|
|
6
|
+
import '../valuable/Valuable.js';
|
|
6
7
|
import '../identity/Identity.js';
|
|
7
8
|
import '../tuple/Tuple.js';
|
|
8
|
-
import '../
|
|
9
|
+
import '../map/shim.js';
|
package/dist/iterable/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
import"../chunk-WTWWDZY6.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVYU4CRRScjs = require('../chunk-VYU4CRRS.cjs');require('../chunk-ETZOPDED.cjs');require('../chunk-YMNGLB2A.cjs');require('../chunk-SKWCM5HU.cjs');require('../chunk-YXBYA3MQ.cjs');require('../chunk-F4X3NIWH.cjs');require('../chunk-NK7YQNSE.cjs');require('../chunk-F2MMVEVC.cjs');require('../chunk-W4XJI2DG.cjs');require('../chunk-OTPXQIIK.cjs');require('../chunk-WRNN6RXF.cjs');exports.List = _chunkVYU4CRRScjs.e;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../functor/index.cjs';
|
|
2
|
+
export { L as List } from '../index-DxmJscpB.cjs';
|
|
3
|
+
import '../typeable/Typeable.cjs';
|
|
4
|
+
import '../valuable/Valuable.cjs';
|
|
5
|
+
import '../core/base/Base.cjs';
|
|
6
|
+
import '../core/throwable/Throwable.cjs';
|
|
7
|
+
import '../identity/Identity.cjs';
|
|
8
|
+
import '../tuple/Tuple.cjs';
|
|
9
|
+
import '../map/shim.cjs';
|
package/dist/list/List.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import '../functor/index.js';
|
|
2
|
-
export { L as List } from '../index-
|
|
2
|
+
export { L as List } from '../index-Bu5HXzs9.js';
|
|
3
3
|
import '../typeable/Typeable.js';
|
|
4
|
+
import '../valuable/Valuable.js';
|
|
4
5
|
import '../core/base/Base.js';
|
|
5
|
-
import '../core/
|
|
6
|
+
import '../core/throwable/Throwable.js';
|
|
6
7
|
import '../identity/Identity.js';
|
|
7
8
|
import '../tuple/Tuple.js';
|
|
8
|
-
import '../
|
|
9
|
+
import '../map/shim.js';
|
package/dist/list/List.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{e as a}from"../chunk-A74BGUJY.js";import"../chunk-44WWBXBL.js";import"../chunk-AKJ5AKY4.js";import"../chunk-MGVXS4LE.js";import"../chunk-5VTXJIR3.js";import"../chunk-3VJERXBP.js";import"../chunk-NSNLRGHP.js";import"../chunk-O2XFH626.js";import"../chunk-XORABVON.js";import"../chunk-K3EKBPQE.js";import"../chunk-WTWWDZY6.js";export{a as List};
|
package/dist/map/Map.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVYU4CRRScjs = require('../chunk-VYU4CRRS.cjs');require('../chunk-ETZOPDED.cjs');require('../chunk-YMNGLB2A.cjs');require('../chunk-SKWCM5HU.cjs');require('../chunk-YXBYA3MQ.cjs');require('../chunk-F4X3NIWH.cjs');require('../chunk-NK7YQNSE.cjs');require('../chunk-F2MMVEVC.cjs');require('../chunk-W4XJI2DG.cjs');require('../chunk-OTPXQIIK.cjs');require('../chunk-WRNN6RXF.cjs');exports.Map = _chunkVYU4CRRScjs.s;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { M as Map } from '../index-DxmJscpB.cjs';
|
|
2
|
+
import '../tuple/Tuple.cjs';
|
|
3
|
+
import '../valuable/Valuable.cjs';
|
|
4
|
+
import './shim.cjs';
|
|
5
|
+
import '../typeable/Typeable.cjs';
|
|
6
|
+
import '../functor/index.cjs';
|
|
7
|
+
import '../core/base/Base.cjs';
|
|
8
|
+
import '../core/throwable/Throwable.cjs';
|
|
9
|
+
import '../identity/Identity.cjs';
|
package/dist/map/Map.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { M as Map } from '../index-
|
|
1
|
+
export { M as Map } from '../index-Bu5HXzs9.js';
|
|
2
2
|
import '../tuple/Tuple.js';
|
|
3
|
+
import '../valuable/Valuable.js';
|
|
4
|
+
import './shim.js';
|
|
5
|
+
import '../typeable/Typeable.js';
|
|
3
6
|
import '../functor/index.js';
|
|
4
7
|
import '../core/base/Base.js';
|
|
5
|
-
import '../core/
|
|
6
|
-
import '../typeable/Typeable.js';
|
|
8
|
+
import '../core/throwable/Throwable.js';
|
|
7
9
|
import '../identity/Identity.js';
|
|
8
|
-
import '../valuable/Valuable.js';
|
package/dist/map/Map.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{s as a}from"../chunk-A74BGUJY.js";import"../chunk-44WWBXBL.js";import"../chunk-AKJ5AKY4.js";import"../chunk-MGVXS4LE.js";import"../chunk-5VTXJIR3.js";import"../chunk-3VJERXBP.js";import"../chunk-NSNLRGHP.js";import"../chunk-O2XFH626.js";import"../chunk-XORABVON.js";import"../chunk-K3EKBPQE.js";import"../chunk-WTWWDZY6.js";export{a as Map};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYXBYA3MQcjs = require('../chunk-YXBYA3MQ.cjs');require('../chunk-F2MMVEVC.cjs');exports.ESMap = _chunkYXBYA3MQcjs.a;
|
package/dist/map/shim.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
import{a}from"../chunk-5VTXJIR3.js";import"../chunk-O2XFH626.js";export{a as ESMap};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVYU4CRRScjs = require('../chunk-VYU4CRRS.cjs');require('../chunk-ETZOPDED.cjs');require('../chunk-YMNGLB2A.cjs');require('../chunk-SKWCM5HU.cjs');require('../chunk-YXBYA3MQ.cjs');require('../chunk-F4X3NIWH.cjs');require('../chunk-NK7YQNSE.cjs');require('../chunk-F2MMVEVC.cjs');require('../chunk-W4XJI2DG.cjs');require('../chunk-OTPXQIIK.cjs');require('../chunk-WRNN6RXF.cjs');exports.None = _chunkVYU4CRRScjs.b; exports.Option = _chunkVYU4CRRScjs.c; exports.Some = _chunkVYU4CRRScjs.a;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../functor/index.cjs';
|
|
2
|
+
import '../typeable/Typeable.cjs';
|
|
3
|
+
import '../valuable/Valuable.cjs';
|
|
4
|
+
export { N as None, O as Option, S as Some } from '../index-DxmJscpB.cjs';
|
|
5
|
+
import '../core/base/Base.cjs';
|
|
6
|
+
import '../core/throwable/Throwable.cjs';
|
|
7
|
+
import '../identity/Identity.cjs';
|
|
8
|
+
import '../tuple/Tuple.cjs';
|
|
9
|
+
import '../map/shim.cjs';
|
package/dist/option/Option.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import '../functor/index.js';
|
|
2
|
-
export { N as None, O as Option, S as Some } from '../index-Cs3UWHHs.js';
|
|
3
2
|
import '../typeable/Typeable.js';
|
|
4
3
|
import '../valuable/Valuable.js';
|
|
4
|
+
export { N as None, O as Option, S as Some } from '../index-Bu5HXzs9.js';
|
|
5
5
|
import '../core/base/Base.js';
|
|
6
|
-
import '../core/
|
|
6
|
+
import '../core/throwable/Throwable.js';
|
|
7
7
|
import '../identity/Identity.js';
|
|
8
8
|
import '../tuple/Tuple.js';
|
|
9
|
+
import '../map/shim.js';
|
package/dist/option/Option.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{a,b,c}from"../chunk-A74BGUJY.js";import"../chunk-44WWBXBL.js";import"../chunk-AKJ5AKY4.js";import"../chunk-MGVXS4LE.js";import"../chunk-5VTXJIR3.js";import"../chunk-3VJERXBP.js";import"../chunk-NSNLRGHP.js";import"../chunk-O2XFH626.js";import"../chunk-XORABVON.js";import"../chunk-K3EKBPQE.js";import"../chunk-WTWWDZY6.js";export{b as None,c as Option,a as Some};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('../chunk-F2MMVEVC.cjs');var _safestablestringify = require('safe-stable-stringify'); var _safestablestringify2 = _interopRequireDefault(_safestablestringify);function a(e,t){return{...e,...t}}var i=a({name:"John",age:30},{json:{toJSON(){return _safestablestringify2.default.call(void 0, this)},fromJSON(e){return JSON.parse(e)}},yaml:{toYAML(){return Object.entries(this).map(([e,t])=>`${e}: ${t}`).join(`
|
|
2
|
+
`)},fromYAML(e){return Object.fromEntries(e.split(`
|
|
3
|
+
`).map(t=>t.split(": ")))}}});console.log(i.toJSON());console.log(i.toYAML());exports.createSerializable = a;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"
|
|
1
|
+
import"../chunk-O2XFH626.js";import r from"safe-stable-stringify";function a(e,t){return{...e,...t}}var i=a({name:"John",age:30},{json:{toJSON(){return r(this)},fromJSON(e){return JSON.parse(e)}},yaml:{toYAML(){return Object.entries(this).map(([e,t])=>`${e}: ${t}`).join(`
|
|
2
2
|
`)},fromYAML(e){return Object.fromEntries(e.split(`
|
|
3
|
-
`).map(t=>t.split(": ")))}}});console.log(i.toJSON());console.log(i.toYAML());
|
|
3
|
+
`).map(t=>t.split(": ")))}}});console.log(i.toJSON());console.log(i.toYAML());export{a as createSerializable};
|
package/dist/set/Set.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVYU4CRRScjs = require('../chunk-VYU4CRRS.cjs');require('../chunk-ETZOPDED.cjs');require('../chunk-YMNGLB2A.cjs');require('../chunk-SKWCM5HU.cjs');require('../chunk-YXBYA3MQ.cjs');require('../chunk-F4X3NIWH.cjs');require('../chunk-NK7YQNSE.cjs');require('../chunk-F2MMVEVC.cjs');require('../chunk-W4XJI2DG.cjs');require('../chunk-OTPXQIIK.cjs');require('../chunk-WRNN6RXF.cjs');exports.Set = _chunkVYU4CRRScjs.d;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { b as Set } from '../index-DxmJscpB.cjs';
|
|
2
|
+
import '../typeable/Typeable.cjs';
|
|
3
|
+
import '../functor/index.cjs';
|
|
4
|
+
import '../core/base/Base.cjs';
|
|
5
|
+
import '../core/throwable/Throwable.cjs';
|
|
6
|
+
import '../valuable/Valuable.cjs';
|
|
7
|
+
import '../identity/Identity.cjs';
|
|
8
|
+
import '../tuple/Tuple.cjs';
|
|
9
|
+
import '../map/shim.cjs';
|
package/dist/set/Set.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { b as Set } from '../index-
|
|
1
|
+
export { b as Set } from '../index-Bu5HXzs9.js';
|
|
2
|
+
import '../typeable/Typeable.js';
|
|
2
3
|
import '../functor/index.js';
|
|
3
4
|
import '../core/base/Base.js';
|
|
4
|
-
import '../core/
|
|
5
|
-
import '../
|
|
5
|
+
import '../core/throwable/Throwable.js';
|
|
6
|
+
import '../valuable/Valuable.js';
|
|
6
7
|
import '../identity/Identity.js';
|
|
7
8
|
import '../tuple/Tuple.js';
|
|
8
|
-
import '../
|
|
9
|
+
import '../map/shim.js';
|
package/dist/set/Set.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{d as a}from"../chunk-A74BGUJY.js";import"../chunk-44WWBXBL.js";import"../chunk-AKJ5AKY4.js";import"../chunk-MGVXS4LE.js";import"../chunk-5VTXJIR3.js";import"../chunk-3VJERXBP.js";import"../chunk-NSNLRGHP.js";import"../chunk-O2XFH626.js";import"../chunk-XORABVON.js";import"../chunk-K3EKBPQE.js";import"../chunk-WTWWDZY6.js";export{a as Set};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkF4X3NIWHcjs = require('../chunk-F4X3NIWH.cjs');require('../chunk-F2MMVEVC.cjs');exports.ESSet = _chunkF4X3NIWHcjs.a;
|
package/dist/set/shim.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
import{a}from"../chunk-3VJERXBP.js";import"../chunk-O2XFH626.js";export{a as ESSet};
|
package/dist/try/Try.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVYU4CRRScjs = require('../chunk-VYU4CRRS.cjs');require('../chunk-ETZOPDED.cjs');require('../chunk-YMNGLB2A.cjs');require('../chunk-SKWCM5HU.cjs');require('../chunk-YXBYA3MQ.cjs');require('../chunk-F4X3NIWH.cjs');require('../chunk-NK7YQNSE.cjs');require('../chunk-F2MMVEVC.cjs');require('../chunk-W4XJI2DG.cjs');require('../chunk-OTPXQIIK.cjs');require('../chunk-WRNN6RXF.cjs');exports.Try = _chunkVYU4CRRScjs.t;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { l as Try } from '../index-DxmJscpB.cjs';
|
|
2
|
+
import '../typeable/Typeable.cjs';
|
|
3
|
+
import '../valuable/Valuable.cjs';
|
|
4
|
+
import '../functor/index.cjs';
|
|
5
|
+
import '../core/base/Base.cjs';
|
|
6
|
+
import '../core/throwable/Throwable.cjs';
|
|
7
|
+
import '../identity/Identity.cjs';
|
|
8
|
+
import '../tuple/Tuple.cjs';
|
|
9
|
+
import '../map/shim.cjs';
|
package/dist/try/Try.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { l as Try } from '../index-
|
|
1
|
+
export { l as Try } from '../index-Bu5HXzs9.js';
|
|
2
2
|
import '../typeable/Typeable.js';
|
|
3
|
+
import '../valuable/Valuable.js';
|
|
3
4
|
import '../functor/index.js';
|
|
4
5
|
import '../core/base/Base.js';
|
|
5
|
-
import '../core/
|
|
6
|
+
import '../core/throwable/Throwable.js';
|
|
6
7
|
import '../identity/Identity.js';
|
|
7
8
|
import '../tuple/Tuple.js';
|
|
8
|
-
import '../
|
|
9
|
+
import '../map/shim.js';
|
package/dist/try/Try.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{t as a}from"../chunk-A74BGUJY.js";import"../chunk-44WWBXBL.js";import"../chunk-AKJ5AKY4.js";import"../chunk-MGVXS4LE.js";import"../chunk-5VTXJIR3.js";import"../chunk-3VJERXBP.js";import"../chunk-NSNLRGHP.js";import"../chunk-O2XFH626.js";import"../chunk-XORABVON.js";import"../chunk-K3EKBPQE.js";import"../chunk-WTWWDZY6.js";export{a as Try};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNK7YQNSEcjs = require('../chunk-NK7YQNSE.cjs');require('../chunk-F2MMVEVC.cjs');exports.Tuple = _chunkNK7YQNSEcjs.a;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { ArrayType, ArrayFunctor } from '../functor/index.
|
|
1
|
+
import { ArrayType, ArrayFunctor } from '../functor/index.cjs';
|
|
2
|
+
import { Typeable } from '../typeable/Typeable.cjs';
|
|
3
|
+
import { Valuable } from '../valuable/Valuable.cjs';
|
|
2
4
|
|
|
3
5
|
type Tuple<T extends ArrayType> = {
|
|
4
6
|
get<K extends number>(index: K): T[K];
|
|
@@ -6,7 +8,7 @@ type Tuple<T extends ArrayType> = {
|
|
|
6
8
|
flatMap<U extends ArrayType>(f: (value: T) => Tuple<U>): Tuple<U>;
|
|
7
9
|
toArray(): T;
|
|
8
10
|
[Symbol.iterator](): Iterator<T[number]>;
|
|
9
|
-
} & ArrayFunctor<T>;
|
|
11
|
+
} & ArrayFunctor<T> & Typeable<"Tuple"> & Valuable<"Tuple", T>;
|
|
10
12
|
declare const Tuple: <T extends ArrayType>(values: T) => Tuple<T>;
|
|
11
13
|
|
|
12
14
|
export { Tuple };
|
package/dist/tuple/Tuple.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ArrayType, ArrayFunctor } from '../functor/index.js';
|
|
2
|
+
import { Typeable } from '../typeable/Typeable.js';
|
|
3
|
+
import { Valuable } from '../valuable/Valuable.js';
|
|
2
4
|
|
|
3
5
|
type Tuple<T extends ArrayType> = {
|
|
4
6
|
get<K extends number>(index: K): T[K];
|
|
@@ -6,7 +8,7 @@ type Tuple<T extends ArrayType> = {
|
|
|
6
8
|
flatMap<U extends ArrayType>(f: (value: T) => Tuple<U>): Tuple<U>;
|
|
7
9
|
toArray(): T;
|
|
8
10
|
[Symbol.iterator](): Iterator<T[number]>;
|
|
9
|
-
} & ArrayFunctor<T>;
|
|
11
|
+
} & ArrayFunctor<T> & Typeable<"Tuple"> & Valuable<"Tuple", T>;
|
|
10
12
|
declare const Tuple: <T extends ArrayType>(values: T) => Tuple<T>;
|
|
11
13
|
|
|
12
14
|
export { Tuple };
|
package/dist/tuple/Tuple.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
import{a}from"../chunk-NSNLRGHP.js";import"../chunk-O2XFH626.js";export{a as Tuple};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYMNGLB2Acjs = require('../chunk-YMNGLB2A.cjs');require('../chunk-F2MMVEVC.cjs');exports.Typeable = _chunkYMNGLB2Acjs.a; exports.isTypeable = _chunkYMNGLB2Acjs.b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
import{a,b}from"../chunk-AKJ5AKY4.js";import"../chunk-O2XFH626.js";export{a as Typeable,b as isTypeable};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGTEH27TNcjs = require('../chunk-GTEH27TN.cjs');var _chunkVYU4CRRScjs = require('../chunk-VYU4CRRS.cjs');require('../chunk-ETZOPDED.cjs');require('../chunk-YMNGLB2A.cjs');require('../chunk-SKWCM5HU.cjs');require('../chunk-YXBYA3MQ.cjs');require('../chunk-F4X3NIWH.cjs');require('../chunk-NK7YQNSE.cjs');require('../chunk-F2MMVEVC.cjs');require('../chunk-W4XJI2DG.cjs');require('../chunk-OTPXQIIK.cjs');require('../chunk-WRNN6RXF.cjs');var a=o=>{let r=parseInt(o,10);return isNaN(r)?_chunkVYU4CRRScjs.g.call(void 0, _chunkGTEH27TNcjs.a.call(void 0, `${r}`)):_chunkVYU4CRRScjs.f.call(void 0, r)};exports.parseNumber = a;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { E as Either } from '../index-DxmJscpB.cjs';
|
|
2
|
+
import { ParseError } from '../error/ParseError.cjs';
|
|
3
|
+
import '../functor/index.cjs';
|
|
4
|
+
import '../core/base/Base.cjs';
|
|
5
|
+
import '../core/throwable/Throwable.cjs';
|
|
6
|
+
import '../typeable/Typeable.cjs';
|
|
7
|
+
import '../valuable/Valuable.cjs';
|
|
8
|
+
import '../identity/Identity.cjs';
|
|
9
|
+
import '../tuple/Tuple.cjs';
|
|
10
|
+
import '../map/shim.cjs';
|
|
11
|
+
|
|
12
|
+
declare const parseNumber: (input: string) => Either<ParseError, number>;
|
|
13
|
+
|
|
14
|
+
export { parseNumber };
|
package/dist/util/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { E as Either } from '../index-
|
|
1
|
+
import { E as Either } from '../index-Bu5HXzs9.js';
|
|
2
2
|
import { ParseError } from '../error/ParseError.js';
|
|
3
3
|
import '../functor/index.js';
|
|
4
4
|
import '../core/base/Base.js';
|
|
5
|
-
import '../core/
|
|
5
|
+
import '../core/throwable/Throwable.js';
|
|
6
6
|
import '../typeable/Typeable.js';
|
|
7
|
+
import '../valuable/Valuable.js';
|
|
7
8
|
import '../identity/Identity.js';
|
|
8
9
|
import '../tuple/Tuple.js';
|
|
9
|
-
import '../
|
|
10
|
+
import '../map/shim.js';
|
|
10
11
|
|
|
11
12
|
declare const parseNumber: (input: string) => Either<ParseError, number>;
|
|
12
13
|
|
package/dist/util/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{a as s}from"../chunk-E6RS47F7.js";import{f as e,g as t}from"../chunk-A74BGUJY.js";import"../chunk-44WWBXBL.js";import"../chunk-AKJ5AKY4.js";import"../chunk-MGVXS4LE.js";import"../chunk-5VTXJIR3.js";import"../chunk-3VJERXBP.js";import"../chunk-NSNLRGHP.js";import"../chunk-O2XFH626.js";import"../chunk-XORABVON.js";import"../chunk-K3EKBPQE.js";import"../chunk-WTWWDZY6.js";var a=o=>{let r=parseInt(o,10);return isNaN(r)?t(s(`${r}`)):e(r)};export{a as parseNumber};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-F2MMVEVC.cjs');var e=t=>t!=null&&typeof t[Symbol.iterator]=="function";exports.isIterable = e;
|
package/dist/util/isIterable.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
import"../chunk-O2XFH626.js";var e=t=>t!=null&&typeof t[Symbol.iterator]=="function";export{e as isIterable};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYMNGLB2Acjs = require('../chunk-YMNGLB2A.cjs');require('../chunk-F2MMVEVC.cjs');function r(t,a,o){let T=_chunkYMNGLB2Acjs.a.call(void 0, t,a);return{toValue:()=>({_tag:T._tag,value:o})}}exports.Valuable = r;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare function Valuable<Tag extends string, V, T = object>(tag: Tag, data: T, value: V): {
|
|
2
|
+
toValue: () => {
|
|
3
|
+
_tag: Tag;
|
|
4
|
+
value: V;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
type Valuable<Tag extends string, V, T = object> = ReturnType<typeof Valuable<Tag, V, T>>;
|
|
8
|
+
|
|
9
|
+
export { Valuable };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
declare function Valuable<T>(value:
|
|
2
|
-
|
|
1
|
+
declare function Valuable<Tag extends string, V, T = object>(tag: Tag, data: T, value: V): {
|
|
2
|
+
toValue: () => {
|
|
3
|
+
_tag: Tag;
|
|
4
|
+
value: V;
|
|
5
|
+
};
|
|
3
6
|
};
|
|
4
|
-
type Valuable<T> = ReturnType<typeof Valuable<T>>;
|
|
7
|
+
type Valuable<Tag extends string, V, T = object> = ReturnType<typeof Valuable<Tag, V, T>>;
|
|
5
8
|
|
|
6
9
|
export { Valuable };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{a as e}from"../chunk-AKJ5AKY4.js";import"../chunk-O2XFH626.js";function r(t,a,o){let T=e(t,a);return{toValue:()=>({_tag:T._tag,value:o})}}export{r as Valuable};
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "functype",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.48",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "A smallish functional library for TypeScript",
|
|
5
6
|
"author": "jordan.burke@gmail.com",
|
|
6
7
|
"license": "MIT",
|
|
@@ -14,10 +15,11 @@
|
|
|
14
15
|
"@eslint/compat": "^1.2.4",
|
|
15
16
|
"@eslint/eslintrc": "^3.2.0",
|
|
16
17
|
"@eslint/js": "^9.17.0",
|
|
17
|
-
"@types/jest": "29.5.14",
|
|
18
18
|
"@types/node": "^22.10.2",
|
|
19
19
|
"@typescript-eslint/eslint-plugin": "^8.18.1",
|
|
20
20
|
"@typescript-eslint/parser": "^8.18.1",
|
|
21
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
22
|
+
"@vitest/ui": "^2.1.8",
|
|
21
23
|
"cross-env": "^7.0.3",
|
|
22
24
|
"eslint": "^9.17.0",
|
|
23
25
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -25,13 +27,12 @@
|
|
|
25
27
|
"eslint-plugin-prettier": "^5.2.1",
|
|
26
28
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
27
29
|
"globals": "^15.14.0",
|
|
28
|
-
"jest": "^29.7.0",
|
|
29
30
|
"prettier": "^3.4.2",
|
|
30
31
|
"rimraf": "^6.0.1",
|
|
31
|
-
"ts-jest": "^29.2.5",
|
|
32
32
|
"ts-node": "^10.9.2",
|
|
33
33
|
"tsup": "^8.3.5",
|
|
34
|
-
"typescript": "5.7.2"
|
|
34
|
+
"typescript": "5.7.2",
|
|
35
|
+
"vitest": "^2.1.8"
|
|
35
36
|
},
|
|
36
37
|
"main": "./dist/index.js",
|
|
37
38
|
"module": "./dist/index.mjs",
|
|
@@ -59,8 +60,9 @@
|
|
|
59
60
|
"lint:fix": "eslint ./src --quiet --fix",
|
|
60
61
|
"lint:format": "prettier --loglevel warn --write \"./**/*.{ts,tsx,css,md,json}\" ",
|
|
61
62
|
"lint": "pnpm lint:format && pnpm lint:fix ",
|
|
62
|
-
"test": "
|
|
63
|
-
"test:watch": "
|
|
64
|
-
"test:
|
|
63
|
+
"test": "vitest run",
|
|
64
|
+
"test:watch": "vitest",
|
|
65
|
+
"test:coverage": "vitest run --coverage",
|
|
66
|
+
"test:ui": "vitest --ui"
|
|
65
67
|
}
|
|
66
68
|
}
|
package/dist/chunk-2I2NKDFN.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=r=>({map:e=>{let t=e(r);return n(t)},flatMap:e=>e(r),get:e=>r[e],toArray:()=>r,[Symbol.iterator](){let e=0;return{next:()=>e<r.length?{value:r[e++],done:!1}:{value:void 0,done:!0}}}});export{n as a};
|
package/dist/chunk-2ML63TYF.mjs
DELETED
|
File without changes
|
package/dist/chunk-2U34DUZU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;
|
package/dist/chunk-377WQNCB.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var p=Map;export{p as a};
|
package/dist/chunk-4H62YQ42.mjs
DELETED
|
File without changes
|
package/dist/chunk-5GE5W3Y5.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|
package/dist/chunk-HA5XD5KC.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=Set;export{t as a};
|
package/dist/chunk-HD6YYUHO.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|
package/dist/chunk-OXLZ6UIZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var n=r=>({map:e=>{let t=e(r);return n(t)},flatMap:e=>e(r),get:e=>r[e],toArray:()=>r,[Symbol.iterator](){let e=0;return{next:()=>e<r.length?{value:r[e++],done:!1}:{value:void 0,done:!0}}}});exports.a = n;
|
package/dist/chunk-UAFRIAJN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;
|
package/dist/chunk-V2J3R5IU.mjs
DELETED
|
File without changes
|
package/dist/chunk-VK5GL6NM.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=e=>{let r=new Error(e);return r.name="ParseError",r};export{o as a};
|
package/dist/chunk-YXECCMSX.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|
package/dist/chunk-Z6YAH4SC.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-5GE5W3Y5.mjs";function o(r,n){return{...t(r,n),toString(){return`${r}()`}}}export{o as a};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { a as Collection, C as Converters } from '../index-B79qaY6Y.mjs';
|
|
2
|
-
import '../functor/index.mjs';
|
|
3
|
-
import '../core/base/Base.mjs';
|
|
4
|
-
import '../core/error/Throwable.mjs';
|
|
5
|
-
import '../typeable/Typeable.mjs';
|
|
6
|
-
import '../identity/Identity.mjs';
|
|
7
|
-
import '../tuple/Tuple.mjs';
|
|
8
|
-
import '../valuable/Valuable.mjs';
|
|
File without changes
|
package/dist/core/base/Base.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-Z6YAH4SC.mjs";import"../../chunk-5GE5W3Y5.mjs";export{a as Base};
|