@visisoft/staticland
Advanced tools
Comparing version 0.1.38 to 0.1.39
@@ -25,2 +25,7 @@ export type Cancelable<A> = (res: (a: A) => void, rej: (e: any) => void) => (() => void); | ||
export function pluck<T>(propertyName: string, mKv: Cancelable<Record<string, T>>): Cancelable<T>; | ||
export function pluck(propertyName: string): <T>(mKv: Cancelable<Record<string, T>>) => Cancelable<T>; | ||
export function pluck<T>(index: number, mKv: Cancelable<[T]>): Cancelable<T>; | ||
export function pluck(index: number): <T>(mKv: Cancelable<[T]>) => Cancelable<T>; | ||
export function chain<A, B>(fn: (x: A) => Cancelable<B>, ma: Cancelable<A>): Cancelable<B>; | ||
@@ -27,0 +32,0 @@ export function chain<A, B>(fn: (x: A) => Cancelable<B>): (ma: Cancelable<A>) => Cancelable<B>; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.38 visisoft.de | ||
(Build date: 3/29/2022 - 11:52:55 PM) | ||
@visisoft/staticland v.0.1.39 visisoft.de | ||
(Build date: 4/19/2022 - 9:31:19 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.38 visisoft.de | ||
(Build date: 3/29/2022 - 11:52:55 PM) | ||
@visisoft/staticland v.0.1.39 visisoft.de | ||
(Build date: 4/19/2022 - 9:31:19 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.38 visisoft.de | ||
(Build date: 3/29/2022 - 11:52:55 PM) | ||
@visisoft/staticland v.0.1.39 visisoft.de | ||
(Build date: 4/19/2022 - 9:31:19 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.38 visisoft.de | ||
(Build date: 3/29/2022 - 11:52:55 PM) | ||
@visisoft/staticland v.0.1.39 visisoft.de | ||
(Build date: 4/19/2022 - 9:31:19 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.38 visisoft.de | ||
(Build date: 3/29/2022 - 11:52:55 PM) | ||
@visisoft/staticland v.0.1.39 visisoft.de | ||
(Build date: 4/19/2022 - 9:31:19 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.38 visisoft.de | ||
(Build date: 3/29/2022 - 11:52:55 PM) | ||
@visisoft/staticland v.0.1.39 visisoft.de | ||
(Build date: 4/19/2022 - 9:31:19 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.38 visisoft.de | ||
(Build date: 3/29/2022 - 11:52:55 PM) | ||
@visisoft/staticland v.0.1.39 visisoft.de | ||
(Build date: 4/19/2022 - 9:31:19 PM) | ||
*/ | ||
@@ -1504,4 +1504,10 @@ 'use strict'; | ||
const | ||
// :: Cancelable c => k -> c {k: v} -> c v | ||
pluck = ramda.curry((key, mc) => map$2(ramda.prop(key), mc)); | ||
var cancelable = /*#__PURE__*/Object.freeze({ | ||
__proto__: null, | ||
map: map$2, | ||
pluck: pluck, | ||
of: of$3, | ||
@@ -1513,3 +1519,2 @@ reject: reject$1, | ||
race: race$1, | ||
map: map$2, | ||
chain: chain$3, | ||
@@ -1516,0 +1521,0 @@ ap: ap$1, |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.38 visisoft.de | ||
(Build date: 3/29/2022 - 11:52:55 PM) | ||
@visisoft/staticland v.0.1.39 visisoft.de | ||
(Build date: 4/19/2022 - 9:31:19 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
@@ -68,2 +68,3 @@ { | ||
"src-external", | ||
"index.js", | ||
"*.d.ts" | ||
@@ -109,3 +110,3 @@ ], | ||
"type": "module", | ||
"version": "0.1.38" | ||
"version": "0.1.39" | ||
} |
@@ -25,2 +25,7 @@ export type Cancelable<A> = (res: (a: A) => void, rej: (e: any) => void) => (() => void); | ||
export function pluck<T>(propertyName: string, mKv: Cancelable<Record<string, T>>): Cancelable<T>; | ||
export function pluck(propertyName: string): <T>(mKv: Cancelable<Record<string, T>>) => Cancelable<T>; | ||
export function pluck<T>(index: number, mKv: Cancelable<[T]>): Cancelable<T>; | ||
export function pluck(index: number): <T>(mKv: Cancelable<[T]>) => Cancelable<T>; | ||
export function chain<A, B>(fn: (x: A) => Cancelable<B>, ma: Cancelable<A>): Cancelable<B>; | ||
@@ -27,0 +32,0 @@ export function chain<A, B>(fn: (x: A) => Cancelable<B>): (ma: Cancelable<A>) => Cancelable<B>; |
@@ -5,2 +5,5 @@ /** | ||
import { curry, prop } from 'ramda'; | ||
import map from './cancelable/map.js'; | ||
export {default as of} from './cancelable/of.js'; | ||
@@ -12,3 +15,2 @@ export {default as reject} from './cancelable/reject.js'; | ||
export {default as race} from './cancelable/race.js'; | ||
export {default as map} from './cancelable/map.js'; | ||
export {default as chain} from './cancelable/chain.js'; | ||
@@ -22,1 +24,10 @@ export {default as ap} from './cancelable/ap.js'; | ||
export {default as share} from './cancelable/share.js'; | ||
const | ||
// :: Cancelable c => k -> c {k: v} -> c v | ||
pluck = curry((key, mc) => map(prop(key), mc)); | ||
export { | ||
map, | ||
pluck | ||
}; |
203025
97
5483