Comparing version 0.1.3 to 0.1.4
@@ -0,1 +1,2 @@ | ||
import { IO } from "fp-ts/lib/IO"; | ||
import { IOEither } from "fp-ts/lib/IOEither"; | ||
@@ -33,3 +34,4 @@ import { EnonicError } from "./common"; | ||
} | ||
export declare function run<T>(runContext: RunContext, f: () => T): T; | ||
export declare function runUnsafe<A>(runContext: RunContext, f: () => A): A; | ||
export declare function run<A>(runContext: RunContext): (a: IO<A>) => IO<A>; | ||
export {}; |
@@ -12,5 +12,9 @@ "use strict"; | ||
exports.get = get; | ||
function run(runContext, f) { | ||
function runUnsafe(runContext, f) { | ||
return context.run(runContext, f); | ||
} | ||
exports.runUnsafe = runUnsafe; | ||
function run(runContext) { | ||
return function (a) { return function () { return runUnsafe(runContext, a); }; }; | ||
} | ||
exports.run = run; |
{ | ||
"name": "enonic-fp", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Functional programming helpers for Enonic XP", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
51889
1221