Comparing version 1.1.0 to 1.1.1
@@ -154,2 +154,8 @@ 'use strict'; | ||
var of = success; | ||
var fromEither = function (e) { | ||
if (e.isLeft()) { | ||
return failure(e.value); | ||
} | ||
return success(e.value); | ||
}; | ||
var ap = function (fab, fa) { return fa.ap(fab); }; | ||
@@ -185,2 +191,3 @@ var map = function (fa, f) { | ||
exports.fold = fold; | ||
exports.fromEither = fromEither; | ||
exports.loading = loading; | ||
@@ -187,0 +194,0 @@ exports.map2 = map2; |
@@ -150,2 +150,8 @@ var URI = 'Dataway'; | ||
var of = success; | ||
var fromEither = function (e) { | ||
if (e.isLeft()) { | ||
return failure(e.value); | ||
} | ||
return success(e.value); | ||
}; | ||
var ap = function (fab, fa) { return fa.ap(fab); }; | ||
@@ -172,2 +178,2 @@ var map = function (fa, f) { | ||
export { Failure, Loading, NotAsked, Success, URI, append, dataway, failure, fold, loading, map2, map3, notAsked, success }; | ||
export { Failure, Loading, NotAsked, Success, URI, append, dataway, failure, fold, fromEither, loading, map2, map3, notAsked, success }; |
@@ -156,2 +156,8 @@ (function (global, factory) { | ||
var of = success; | ||
var fromEither = function (e) { | ||
if (e.isLeft()) { | ||
return failure(e.value); | ||
} | ||
return success(e.value); | ||
}; | ||
var ap = function (fab, fa) { return fa.ap(fab); }; | ||
@@ -187,2 +193,3 @@ var map = function (fa, f) { | ||
exports.fold = fold; | ||
exports.fromEither = fromEither; | ||
exports.loading = loading; | ||
@@ -189,0 +196,0 @@ exports.map2 = map2; |
@@ -0,1 +1,2 @@ | ||
import { Either } from 'fp-ts/lib/Either'; | ||
import { Monad2 } from 'fp-ts/lib/Monad'; | ||
@@ -64,2 +65,3 @@ declare module 'fp-ts/lib/HKT' { | ||
export declare const success: <L, A>(a: A) => Dataway<L, A>; | ||
export declare const fromEither: <L, A>(e: Either<L, A>) => Dataway<L, A>; | ||
export declare const map2: <L, A, B, C>(f: (a: A) => (b: B) => C, fa: Dataway<L, A>, fb: Dataway<L, B>) => Dataway<L, C>; | ||
@@ -66,0 +68,0 @@ export declare const map3: <L, A, B, C, D>(f: (a: A) => (b: B) => (c: C) => D, fa: Dataway<L, A>, fb: Dataway<L, B>, fc: Dataway<L, C>) => Dataway<L, D>; |
{ | ||
"name": "dataway", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "dist/dataway.cjs.js", | ||
"module": "dist/dataway.esm.js", | ||
"browser": "dist/dataway.umd.js", | ||
"types": "dist/main.d.ts", | ||
"license": "MIT", | ||
@@ -8,0 +9,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26355
7
635