@matechs/effect
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -9,2 +9,3 @@ import * as F from "fluture"; | ||
import { URIS3 } from "fp-ts/lib/HKT"; | ||
import { Option } from "fp-ts/lib/Option"; | ||
export declare const URI = "matechs/Effect"; | ||
@@ -60,1 +61,2 @@ export declare const URIC = "matechs/ConcurrentEffect"; | ||
export declare function fromTaskLike<R, E, A>(ma: Effect<R, never, Ei.Either<E, A>>): Effect<R, E, A>; | ||
export declare function fromNullableM<R, E, A>(ma: Effect<R, E, A>): Effect<R, E, Option<A>>; |
@@ -28,2 +28,3 @@ "use strict"; | ||
var fluture_1 = require("fluture"); | ||
var Option_1 = require("fp-ts/lib/Option"); | ||
exports.URI = "matechs/Effect"; | ||
@@ -187,2 +188,7 @@ exports.URIC = "matechs/ConcurrentEffect"; | ||
exports.fromTaskLike = fromTaskLike; | ||
/* utilities */ | ||
function fromNullableM(ma) { | ||
return exports.effectMonad.map(ma, Option_1.fromNullable); | ||
} | ||
exports.fromNullableM = fromNullableM; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@matechs/effect", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"license": "MIT", | ||
"private": false, | ||
"scripts": { | ||
"build": "rimraf lib && tsc" | ||
"build": "rimraf lib && tsc --build tsconfig.build.json", | ||
"test": "jest" | ||
}, | ||
@@ -18,5 +19,8 @@ "publishConfig": { | ||
"devDependencies": { | ||
"@types/deepmerge": "^2.2.0", | ||
"@babel/core": "^7.7.2", | ||
"@babel/preset-env": "^7.7.1", | ||
"@babel/preset-typescript": "^7.7.2", | ||
"@types/jest": "^24.0.23", | ||
"@types/node": "^12.12.7", | ||
"babel-jest": "^24.9.0", | ||
"jest": "^24.9.0", | ||
@@ -34,3 +38,3 @@ "rimraf": "^3.0.0", | ||
}, | ||
"gitHead": "71fa5e170963cd3d8c25ad721901d8cba73e6e60" | ||
"gitHead": "7a92fba3214d513dbae734449502a5b5e4c2a341" | ||
} |
Sorry, the diff of this file is not supported yet
34440
332
11