@visisoft/staticland
Advanced tools
Comparing version 0.1.43 to 0.1.44
@@ -22,2 +22,5 @@ export type Cancelable<A> = (res: (a: A) => void, rej: (e: any) => void) => (() => void); | ||
export function coalesce<A, B>(onFailure: (e: any) => B, onSuccess: (a?: A) => B, cc: Cancelable<A>): Cancelable<B>; | ||
export function coalesce<A, B>(onFailure: (e: any) => B, onSuccess: (a?: A) => B): (cc: Cancelable<A>) => Cancelable<B>; | ||
export function map<A, B>(fn: (a: A) => B, ma: Cancelable<A>): Cancelable<B>; | ||
@@ -24,0 +27,0 @@ export function map<A, B>(fn: (a: A) => B): (ma: Cancelable<A>) => Cancelable<B>; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.43 visisoft.de | ||
(Build date: 5/10/2022 - 4:05:04 PM) | ||
@visisoft/staticland v.0.1.44 visisoft.de | ||
(Build date: 6/7/2022 - 11:05:23 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.43 visisoft.de | ||
(Build date: 5/10/2022 - 4:05:04 PM) | ||
@visisoft/staticland v.0.1.44 visisoft.de | ||
(Build date: 6/7/2022 - 11:05:23 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.43 visisoft.de | ||
(Build date: 5/10/2022 - 4:05:04 PM) | ||
@visisoft/staticland v.0.1.44 visisoft.de | ||
(Build date: 6/7/2022 - 11:05:23 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.43 visisoft.de | ||
(Build date: 5/10/2022 - 4:05:04 PM) | ||
@visisoft/staticland v.0.1.44 visisoft.de | ||
(Build date: 6/7/2022 - 11:05:23 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.43 visisoft.de | ||
(Build date: 5/10/2022 - 4:05:04 PM) | ||
@visisoft/staticland v.0.1.44 visisoft.de | ||
(Build date: 6/7/2022 - 11:05:23 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.43 visisoft.de | ||
(Build date: 5/10/2022 - 4:05:04 PM) | ||
@visisoft/staticland v.0.1.44 visisoft.de | ||
(Build date: 6/7/2022 - 11:05:23 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.43 visisoft.de | ||
(Build date: 5/10/2022 - 4:05:04 PM) | ||
@visisoft/staticland v.0.1.44 visisoft.de | ||
(Build date: 6/7/2022 - 11:05:23 PM) | ||
*/ | ||
@@ -1514,2 +1514,7 @@ 'use strict'; | ||
var coalesce$1 = ramda.curry( | ||
(onFailure, onSuccess, cc) => (resolve, unused) => | ||
cc(ramda.o(resolve, onSuccess), ramda.o(resolve, onFailure)) | ||
); | ||
/** | ||
@@ -1542,3 +1547,4 @@ * @typedef {function(function(*): void, function(*): void): function(): void} CancelableComputation | ||
bi_tap: biTap$1, | ||
share: share | ||
share: share, | ||
coalesce: coalesce$1 | ||
}); | ||
@@ -1545,0 +1551,0 @@ |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.43 visisoft.de | ||
(Build date: 5/10/2022 - 4:05:04 PM) | ||
@visisoft/staticland v.0.1.44 visisoft.de | ||
(Build date: 6/7/2022 - 11:05:23 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
import {BinaryCurriedFn, Opaque, PlainObjectOf, TernaryCurriedFn} from './common'; | ||
import {Either} from './either'; | ||
import {Cancelable} from "./cancelable"; | ||
@@ -5,0 +4,0 @@ export type Just<T> = Opaque<"Just", T>; |
@@ -109,3 +109,3 @@ { | ||
"type": "module", | ||
"version": "0.1.43" | ||
"version": "0.1.44" | ||
} |
@@ -22,2 +22,5 @@ export type Cancelable<A> = (res: (a: A) => void, rej: (e: any) => void) => (() => void); | ||
export function coalesce<A, B>(onFailure: (e: any) => B, onSuccess: (a?: A) => B, cc: Cancelable<A>): Cancelable<B>; | ||
export function coalesce<A, B>(onFailure: (e: any) => B, onSuccess: (a?: A) => B): (cc: Cancelable<A>) => Cancelable<B>; | ||
export function map<A, B>(fn: (a: A) => B, ma: Cancelable<A>): Cancelable<B>; | ||
@@ -24,0 +27,0 @@ export function map<A, B>(fn: (a: A) => B): (ma: Cancelable<A>) => Cancelable<B>; |
@@ -24,2 +24,3 @@ /** | ||
export {default as share} from './cancelable/share.js'; | ||
export {default as coalesce} from './cancelable/coalesce.js'; | ||
@@ -26,0 +27,0 @@ const |
import {BinaryCurriedFn, Opaque, PlainObjectOf, TernaryCurriedFn} from './common'; | ||
import {Either} from './either'; | ||
import {Cancelable} from "./cancelable"; | ||
@@ -5,0 +4,0 @@ export type Just<T> = Opaque<"Just", T>; |
212749
101
5588