🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

enonic-fp

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enonic-fp - npm Package Compare versions

Comparing version

to
0.2.1

3

lib/portal.d.ts
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 @@ },