enonic-wizardry
Advanced tools
Comparing version 0.2.29 to 0.2.30
@@ -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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23513
419
+ Addedenonic-types@0.0.40(transitive)
- Removedenonic-types@0.0.39(transitive)
Updatedenonic-fp@^0.2.31
Updatedenonic-types@^0.0.40
Updatedfp-ts@^2.5.2