Comparing version 0.2.0 to 0.2.1
import { IOEither } from "fp-ts/lib/IOEither"; | ||
import { EnonicError } from "./common"; | ||
import { ByteSource, Content, Site } from "enonic-types/lib/content"; | ||
import { AssetUrlParams, AttachmentUrlParams, ComponentUrlParams, IdProviderUrlParams, ImagePlaceHolderParams, ImageUrlParams, LoginUrlParams, LogoutUrlParams, MultipartItem, PageUrlParams, ProcessHtmlParams, ServiceUrlParams, UrlParams } from "enonic-types/lib/portal"; | ||
import { AssetUrlParams, AttachmentUrlParams, Component, ComponentUrlParams, IdProviderUrlParams, ImagePlaceHolderParams, ImageUrlParams, LoginUrlParams, LogoutUrlParams, MultipartItem, PageUrlParams, ProcessHtmlParams, ServiceUrlParams, UrlParams } from "enonic-types/lib/portal"; | ||
export declare function getContent<A>(): IOEither<EnonicError, Content<A>>; | ||
export declare function getComponent<A>(): IOEither<EnonicError, Component<A>>; | ||
export declare function getIdProviderKey(): IOEither<EnonicError, string>; | ||
@@ -7,0 +8,0 @@ /** |
@@ -11,2 +11,6 @@ "use strict"; | ||
exports.getContent = getContent; | ||
function getComponent() { | ||
return pipeable_1.pipe(utils_1.catchEnonicError(function () { return portalLib.getComponent(); }), IOEither_1.chain(utils_1.fromNullable({ errorKey: "NotFoundError" }))); | ||
} | ||
exports.getComponent = getComponent; | ||
function getIdProviderKey() { | ||
@@ -13,0 +17,0 @@ return utils_1.fromNullable({ |
{ | ||
"name": "enonic-fp", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Functional programming helpers for Enonic XP", | ||
@@ -27,3 +27,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"enonic-types": "^0.0.5", | ||
"enonic-types": "^0.0.6", | ||
"fp-ts": "^2.1.1" | ||
@@ -30,0 +30,0 @@ }, |
44602
838
+ Addedenonic-types@0.0.6(transitive)
- Removedenonic-types@0.0.5(transitive)
Updatedenonic-types@^0.0.6