New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.0.9 to 0.0.10

2

es6/auth.d.ts

@@ -25,3 +25,3 @@ import { Either } from "fp-ts/lib/Either";

export declare function login(params: LoginParams): Either<Error, LoginResult>;
export declare function logout(): Either<Error, boolean>;
export declare function logout(): Either<Error, void>;
export declare function getUser(): Option<LoginResultUser>;

@@ -10,3 +10,3 @@ import { tryCatch } from "fp-ts/lib/Either";

auth.logout();
return true;
return undefined;
}, function (e) { return ({ errorKey: "InternalServerError", cause: String(e) }); });

@@ -13,0 +13,0 @@ }

@@ -186,3 +186,3 @@ import { Either } from 'fp-ts/lib/Either';

export declare function modify<T>(params: ModifyContentParams<T>): Either<Error, Content<T>>;
export declare function remove(params: DeleteContentParams): Either<Error, boolean>;
export declare function remove(params: DeleteContentParams): Either<Error, void>;
export declare function publish(params: PublishContentParams): Either<Error, PublishResponse>;

@@ -189,0 +189,0 @@ export declare function unpublish(params: UnpublishContentParams): Either<Error, string[]>;

@@ -18,3 +18,3 @@ import { tryCatch, chain, fromNullable, right, left } from 'fp-ts/lib/Either';

return pipe(tryCatch(function () { return content.delete(params); }, function (e) { return ({ errorKey: "InternalServerError", cause: String(e) }); }), chain(function (success) { return success
? right(success)
? right(undefined)
: left({ errorKey: "NotFoundError" }); }));

@@ -21,0 +21,0 @@ }

@@ -23,2 +23,2 @@ import * as E from "fp-ts/lib/Either";

}
export declare function send(params: EmailParams): E.Either<Error, boolean>;
export declare function send(params: EmailParams): E.Either<Error, void>;

@@ -9,4 +9,4 @@ import * as E from "fp-ts/lib/Either";

}); }), E.chain(function (success) { return success
? E.right(success)
? E.right(undefined)
: E.left({ errorKey: "InternalServerError" }); }));
}

@@ -25,3 +25,3 @@ import { Either } from "fp-ts/lib/Either";

export declare function login(params: LoginParams): Either<Error, LoginResult>;
export declare function logout(): Either<Error, boolean>;
export declare function logout(): Either<Error, void>;
export declare function getUser(): Option<LoginResultUser>;

@@ -13,3 +13,3 @@ "use strict";

auth.logout();
return true;
return undefined;
}, function (e) { return ({ errorKey: "InternalServerError", cause: String(e) }); });

@@ -16,0 +16,0 @@ }

@@ -186,3 +186,3 @@ import { Either } from 'fp-ts/lib/Either';

export declare function modify<T>(params: ModifyContentParams<T>): Either<Error, Content<T>>;
export declare function remove(params: DeleteContentParams): Either<Error, boolean>;
export declare function remove(params: DeleteContentParams): Either<Error, void>;
export declare function publish(params: PublishContentParams): Either<Error, PublishResponse>;

@@ -189,0 +189,0 @@ export declare function unpublish(params: UnpublishContentParams): Either<Error, string[]>;

@@ -24,3 +24,3 @@ "use strict";

return pipeable_1.pipe(Either_1.tryCatch(function () { return content.delete(params); }, function (e) { return ({ errorKey: "InternalServerError", cause: String(e) }); }), Either_1.chain(function (success) { return success
? Either_1.right(success)
? Either_1.right(undefined)
: Either_1.left({ errorKey: "NotFoundError" }); }));

@@ -27,0 +27,0 @@ }

@@ -23,2 +23,2 @@ import * as E from "fp-ts/lib/Either";

}
export declare function send(params: EmailParams): E.Either<Error, boolean>;
export declare function send(params: EmailParams): E.Either<Error, void>;

@@ -11,5 +11,5 @@ "use strict";

}); }), E.chain(function (success) { return success
? E.right(success)
? E.right(undefined)
: E.left({ errorKey: "InternalServerError" }); }));
}
exports.send = send;
{
"name": "enonic-fp",
"version": "0.0.9",
"version": "0.0.10",
"description": "Functional programming helpers for Enonic XP",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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