@visisoft/staticland
Advanced tools
Comparing version 0.1.19 to 0.1.20
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.19 visisoft.de | ||
(Build date: 3/18/2021 - 5:35:55 PM) | ||
@visisoft/staticland v.0.1.20 visisoft.de | ||
(Build date: 3/21/2021 - 7:34:44 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.19 visisoft.de | ||
(Build date: 3/18/2021 - 5:35:55 PM) | ||
@visisoft/staticland v.0.1.20 visisoft.de | ||
(Build date: 3/21/2021 - 7:34:44 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.19 visisoft.de | ||
(Build date: 3/18/2021 - 5:35:55 PM) | ||
@visisoft/staticland v.0.1.20 visisoft.de | ||
(Build date: 3/21/2021 - 7:34:44 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.19 visisoft.de | ||
(Build date: 3/18/2021 - 5:35:55 PM) | ||
@visisoft/staticland v.0.1.20 visisoft.de | ||
(Build date: 3/21/2021 - 7:34:44 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.19 visisoft.de | ||
(Build date: 3/18/2021 - 5:35:55 PM) | ||
@visisoft/staticland v.0.1.20 visisoft.de | ||
(Build date: 3/21/2021 - 7:34:44 PM) | ||
*/ | ||
@@ -607,2 +607,6 @@ 'use strict'; | ||
var map$2 = semmelRamda.curry((fn, cc) => (resolve, reject) => cc(semmelRamda.o(resolve, fn), reject)); | ||
var maybeOfCancelableToCancelableOfMaybe = maybe(semmelRamda.compose(of$3, nothing), map$2(just)); | ||
/** | ||
@@ -659,3 +663,4 @@ * StaticLand: transformations.js | ||
eitherToCancelable: eitherToCancelable, | ||
maybeOfBaconObservableToBaconObservableOfMaybe: maybeOfBaconObservableToBaconObservableOfMaybe | ||
maybeOfBaconObservableToBaconObservableOfMaybe: maybeOfBaconObservableToBaconObservableOfMaybe, | ||
maybeOfCancelableToCancelableOfMaybe: maybeOfCancelableToCancelableOfMaybe | ||
}); | ||
@@ -695,4 +700,2 @@ | ||
var map$2 = semmelRamda.curry((fn, cc) => (resolve, reject) => cc(semmelRamda.o(resolve, fn), reject)); | ||
var chain$3 = semmelRamda.curry((fn, cc) => (resolve, reject) => { | ||
@@ -699,0 +702,0 @@ let cancel = semmelRamda.identity; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.19 visisoft.de | ||
(Build date: 3/18/2021 - 5:35:55 PM) | ||
@visisoft/staticland v.0.1.20 visisoft.de | ||
(Build date: 3/21/2021 - 7:34:44 PM) | ||
*/ | ||
@@ -421,2 +421,6 @@ 'use strict'; | ||
var map_c = semmelRamda.curry((fn, cc) => (resolve, reject) => cc(semmelRamda.o(resolve, fn), reject)); | ||
var maybeOfCancelableToCancelableOfMaybe = maybe(semmelRamda.compose(of$3, nothing), map_c(just)); | ||
/** | ||
@@ -466,2 +470,3 @@ * StaticLand: transformations.js | ||
exports.maybeOfBaconObservableToBaconObservableOfMaybe = maybeOfBaconObservableToBaconObservableOfMaybe; | ||
exports.maybeOfCancelableToCancelableOfMaybe = maybeOfCancelableToCancelableOfMaybe; | ||
exports.maybeOfPromiseToPromiseOfMaybe = maybeOfPromiseToPromiseOfMaybe; | ||
@@ -468,0 +473,0 @@ exports.maybeToObj = maybeToObj; |
@@ -64,3 +64,3 @@ { | ||
], | ||
"license": "Apache-2.0", | ||
"license": "JSON", | ||
"main": "./dist/cjs/staticland.js", | ||
@@ -80,5 +80,6 @@ "module": "./index.js", | ||
"build:cjs": "rollup -c", | ||
"build:docs": "mkdocs build", | ||
"copy_ts_defs_into_root": "cp ./src/*.d.ts .", | ||
"remove_ts_defs_from_root": "rm -v ./*.d.ts", | ||
"prepack": "npm run test && npm run build:cjs && npm run copy_ts_defs_into_root", | ||
"prepack": "npm run test && npm run build:cjs && npm run copy_ts_defs_into_root && mkdocs gh-deploy", | ||
"postpack": "npm run remove_ts_defs_from_root", | ||
@@ -91,3 +92,3 @@ "setup:chai": "rollup --input node_modules/chai/chai.js --file test/helpers/chai.mjs -c scripts/rollup.cjs-dependencies.config.js", | ||
"type": "module", | ||
"version": "0.1.19" | ||
"version": "0.1.20" | ||
} |
[![Dependencies](https://img.shields.io/david/semmel/StaticLand.svg?style=flat-square)](https://david-dm.org/semmel/StaticLand) [![NPM Version](https://img.shields.io/npm/v/@visisoft/staticland.svg?style=flat-square)](https://www.npmjs.com/package/@visisoft/staticland) | ||
@visisoft/staticland | ||
[@visisoft/staticland](https://semmel.github.io/StaticLand/) | ||
==================== | ||
@@ -22,2 +22,5 @@ Operations on Algebraic Data Types (ADT) (Either, Maybe, Promise, CancelableComputation) realised with *free static functions*. The static functions do not expect custom-made ADT classes but work on the *native JavaScript types* as `Array`, `Promise` and `Function`. Fairness demands to confess that `Function` carries some data in the closed over variables. | ||
[Homepage and Documentation](https://semmel.github.io/StaticLand/) | ||
---------------------------------------- | ||
Hello @visisoft/staticland | ||
@@ -24,0 +27,0 @@ -------------------------- |
import {EventStream, Observable } from "baconjs"; | ||
import {Maybe} from "./maybe"; | ||
import {Cancelable} from "./cancelable"; | ||
import {Either} from "./either"; | ||
export function cancelableToEventStream<A>(ca: Cancelable<A>): EventStream<A>; | ||
export function cancelableToPromise<A>(ca: Cancelable<A>): Promise<A>; | ||
export function eitherToCancelable<A>(ma: Either<A>): Cancelable<A>; | ||
export function maybeOfBaconObservableToBaconObservableOfMaybe<A>(mma: Maybe<Observable<A>>): EventStream<Maybe<A>>; | ||
export function maybeOfCancelableToCancelableOfMaybe<A>(mma: Maybe<Cancelable<A>>) : Cancelable<Maybe<A>>; | ||
export function promiseToCancelable<A>(p: Promise<A>): Cancelable<A>; |
@@ -19,2 +19,4 @@ /** | ||
export {default as maybeOfBaconObservableToBaconObservableOfMaybe} from './transformations/maybeOfBaconObservableToBaconObservableOfMaybe.js'; | ||
export {default as maybeOfCancelableToCancelableOfMaybe} from | ||
'./transformations/maybeOfCancelableToCancelableOfMaybe.js'; | ||
@@ -21,0 +23,0 @@ const |
import {EventStream, Observable } from "baconjs"; | ||
import {Maybe} from "./maybe"; | ||
import {Cancelable} from "./cancelable"; | ||
import {Either} from "./either"; | ||
export function cancelableToEventStream<A>(ca: Cancelable<A>): EventStream<A>; | ||
export function cancelableToPromise<A>(ca: Cancelable<A>): Promise<A>; | ||
export function eitherToCancelable<A>(ma: Either<A>): Cancelable<A>; | ||
export function maybeOfBaconObservableToBaconObservableOfMaybe<A>(mma: Maybe<Observable<A>>): EventStream<Maybe<A>>; | ||
export function maybeOfCancelableToCancelableOfMaybe<A>(mma: Maybe<Cancelable<A>>) : Cancelable<Maybe<A>>; | ||
export function promiseToCancelable<A>(p: Promise<A>): Cancelable<A>; |
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
55
2731
111
107461
1
90