@visisoft/staticland
Advanced tools
Comparing version 0.1.33 to 0.1.34
@@ -31,2 +31,4 @@ export type Cancelable<A> = (res: (a: A) => void, rej: (e: any) => void) => (() => void); | ||
export function bi_tap<A>(onFailure: (e: any) => any, onSuccess: (a: A) => any): (ma: Cancelable<A>) => Cancelable<A>; | ||
export function bi_tap<A>(onFailure: (e: any) => any): (onSuccess: (a: A) => any, ma: Cancelable<A>) => Cancelable<A>; | ||
export function bi_tap<A>(onFailure: (e: any) => any): (onSuccess: (a: A) => any) => (ma: Cancelable<A>) => Cancelable<A>; | ||
@@ -33,0 +35,0 @@ // Combinations |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.33 visisoft.de | ||
(Build date: 1/4/2022 - 3:22:04 PM) | ||
@visisoft/staticland v.0.1.34 visisoft.de | ||
(Build date: 1/11/2022 - 8:08:44 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.33 visisoft.de | ||
(Build date: 1/4/2022 - 3:22:04 PM) | ||
@visisoft/staticland v.0.1.34 visisoft.de | ||
(Build date: 1/11/2022 - 8:08:44 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.33 visisoft.de | ||
(Build date: 1/4/2022 - 3:22:04 PM) | ||
@visisoft/staticland v.0.1.34 visisoft.de | ||
(Build date: 1/11/2022 - 8:08:44 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.33 visisoft.de | ||
(Build date: 1/4/2022 - 3:22:04 PM) | ||
@visisoft/staticland v.0.1.34 visisoft.de | ||
(Build date: 1/11/2022 - 8:08:44 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.33 visisoft.de | ||
(Build date: 1/4/2022 - 3:22:04 PM) | ||
@visisoft/staticland v.0.1.34 visisoft.de | ||
(Build date: 1/11/2022 - 8:08:44 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.33 visisoft.de | ||
(Build date: 1/4/2022 - 3:22:04 PM) | ||
@visisoft/staticland v.0.1.34 visisoft.de | ||
(Build date: 1/11/2022 - 8:08:44 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.33 visisoft.de | ||
(Build date: 1/4/2022 - 3:22:04 PM) | ||
@visisoft/staticland v.0.1.34 visisoft.de | ||
(Build date: 1/11/2022 - 8:08:44 PM) | ||
*/ | ||
@@ -650,6 +650,9 @@ 'use strict'; | ||
const | ||
noop = () => undefined, | ||
cancelableToBaconStream = cc => Bacon__namespace.fromBinder(sink => { | ||
return cc( | ||
let toAbort = cc( | ||
x => { | ||
sink(x); | ||
toAbort = noop; | ||
sink(new Bacon__namespace.End()); | ||
@@ -659,5 +662,8 @@ }, | ||
sink(new Bacon__namespace.Error(e)); | ||
toAbort = noop; | ||
sink(new Bacon__namespace.End()); | ||
} | ||
); | ||
return () => { toAbort(); }; | ||
}); | ||
@@ -664,0 +670,0 @@ |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.33 visisoft.de | ||
(Build date: 1/4/2022 - 3:22:04 PM) | ||
@visisoft/staticland v.0.1.34 visisoft.de | ||
(Build date: 1/11/2022 - 8:08:44 PM) | ||
*/ | ||
@@ -449,6 +449,9 @@ 'use strict'; | ||
const cancelableToBaconStream = cc => Bacon__namespace.fromBinder(sink => { | ||
return cc( | ||
const noop = () => undefined, | ||
cancelableToBaconStream = cc => Bacon__namespace.fromBinder(sink => { | ||
let toAbort = cc( | ||
x => { | ||
sink(x); | ||
toAbort = noop; | ||
sink(new Bacon__namespace.End()); | ||
@@ -458,5 +461,8 @@ }, | ||
sink(new Bacon__namespace.Error(e)); | ||
toAbort = noop; | ||
sink(new Bacon__namespace.End()); | ||
} | ||
); | ||
return () => { toAbort(); }; | ||
}); | ||
@@ -463,0 +469,0 @@ |
@@ -106,3 +106,3 @@ { | ||
"type": "module", | ||
"version": "0.1.33" | ||
"version": "0.1.34" | ||
} |
@@ -31,2 +31,4 @@ export type Cancelable<A> = (res: (a: A) => void, rej: (e: any) => void) => (() => void); | ||
export function bi_tap<A>(onFailure: (e: any) => any, onSuccess: (a: A) => any): (ma: Cancelable<A>) => Cancelable<A>; | ||
export function bi_tap<A>(onFailure: (e: any) => any): (onSuccess: (a: A) => any, ma: Cancelable<A>) => Cancelable<A>; | ||
export function bi_tap<A>(onFailure: (e: any) => any): (onSuccess: (a: A) => any) => (ma: Cancelable<A>) => Cancelable<A>; | ||
@@ -33,0 +35,0 @@ // Combinations |
import * as Bacon from 'baconjs'; | ||
const | ||
noop = () => undefined, | ||
cancelableToBaconStream = cc => Bacon.fromBinder(sink => { | ||
return cc( | ||
let toAbort = cc( | ||
x => { | ||
sink(x); | ||
toAbort = noop; | ||
sink(new Bacon.End()); | ||
@@ -12,7 +15,10 @@ }, | ||
sink(new Bacon.Error(e)); | ||
toAbort = noop; | ||
sink(new Bacon.End()); | ||
} | ||
); | ||
return () => { toAbort(); }; | ||
}); | ||
export default cancelableToBaconStream; |
197832
94
5302