Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

enonic-wizardry

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enonic-wizardry - npm Package Compare versions

Comparing version 0.2.29 to 0.2.30

12

lib/content.js

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

return pipeable_1.pipe(Apply_1.sequenceS(IOEither_1.ioEither)({
data: portal_1.getMultipartStream(params.name, params.index, params.errorMessage),
item: portal_1.getMultipartItem(params.name, params.index, params.errorMessage)
}), IOEither_1.filterOrElse(function (res) { var _a, _b, _c; return ((_c = (_b = (_a = res.item) === null || _a === void 0 ? void 0 : _a.fileName) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 0) > 0; }, function () {
data: portal_1.getMultipartStream(params.name, params.index),
item: portal_1.getMultipartItem(params.name, params.index)
}), IOEither_1.filterOrElse(hasDataAndItem, function () {
var _a;

@@ -82,3 +82,3 @@ return ({

name: item.fileName,
mimeType: item.contentType
mimeType: item === null || item === void 0 ? void 0 : item.contentType
});

@@ -88,1 +88,5 @@ }));

exports.createMediaFromAttachment = createMediaFromAttachment;
function hasDataAndItem(attachment) {
var _a, _b, _c;
return (attachment.data !== undefined) && (((_c = (_b = (_a = attachment.item) === null || _a === void 0 ? void 0 : _a.fileName) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 0) > 0);
}
{
"name": "enonic-wizardry",
"version": "0.2.29",
"version": "0.2.30",
"description": "Functional utility library for Enonic XP",

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

"dependencies": {
"enonic-fp": "^0.2.30",
"enonic-types": "^0.0.39",
"fp-ts": "^2.5.1",
"enonic-fp": "^0.2.31",
"enonic-types": "^0.0.40",
"fp-ts": "^2.5.2",
"io-ts": "^2.1.2"

@@ -33,0 +33,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