Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.2.1 to 0.2.2

4

lib/content.d.ts
import { IOEither } from "fp-ts/lib/IOEither";
import { EnonicError } from "./common";
import { Attachments, AttachmentStreamParams, ByteSource, Content, ContentType, CreateContentParams, CreateMediaParams, DeleteContentParams, GetChildrenParams, GetContentParams, GetPermissionsParams, GetPermissionsResult, GetSiteConfigParams, GetSiteParams, ModifyContentParams, MoveParams, PublishContentParams, PublishResponse, QueryContentParams, QueryResponse, RemoveAttachmentParams, SetPermissionsParams, Site, UnpublishContentParams } from "enonic-types/lib/content";
export declare function get<A>(params: GetContentParams): IOEither<EnonicError, Content<A>>;
export declare function get<A, PageConfig = any>(params: GetContentParams): IOEither<EnonicError, Content<A, PageConfig>>;
export declare function query<A>(params: QueryContentParams): IOEither<EnonicError, QueryResponse<A>>;

@@ -13,3 +13,3 @@ export declare function create<A>(params: CreateContentParams<A>): IOEither<EnonicError, Content<A>>;

export declare function move<A>(params: MoveParams): IOEither<EnonicError, Content<A>>;
export declare function getSite<A>(params: GetSiteParams): IOEither<EnonicError, Site<A>>;
export declare function getSite<A, PageConfig = any>(params: GetSiteParams): IOEither<EnonicError, Site<A, PageConfig>>;
export declare function getSiteConfig<A>(params: GetSiteConfigParams): IOEither<EnonicError, A>;

@@ -16,0 +16,0 @@ export declare function createMedia<A>(params: CreateMediaParams): IOEither<EnonicError, Content<A>>;

@@ -66,3 +66,2 @@ "use strict";

exports.getAttachments = getAttachments;
// The return type is Java: com.google.common.io.ByteSource
function getAttachmentStream(params) {

@@ -69,0 +68,0 @@ return pipeable_1.pipe(utils_2.catchEnonicError(function () { return contentLib.getAttachmentStream(params); }), IOEither_1.chain(utils_1.fromNullable({ errorKey: "NotFoundError" })));

{
"name": "enonic-fp",
"version": "0.2.1",
"version": "0.2.2",
"description": "Functional programming helpers for Enonic XP",

@@ -27,3 +27,3 @@ "main": "lib/index.js",

"dependencies": {
"enonic-types": "^0.0.6",
"enonic-types": "^0.0.8",
"fp-ts": "^2.1.1"

@@ -30,0 +30,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc