enonic-wizardry
Advanced tools
Comparing version 0.2.10 to 0.2.11
@@ -66,3 +66,3 @@ "use strict"; | ||
item: portal_1.getMultipartItem(params.name, params.index, params.errorMessage) | ||
}), IOEither_1.filterOrElse(function (res) { var _a; return ((_a = res.item.fileName) === null || _a === void 0 ? void 0 : _a.length) !== 0; }, function () { | ||
}), 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, (_c !== null && _c !== void 0 ? _c : 0)) > 0; }, function () { | ||
var _a; | ||
@@ -80,2 +80,3 @@ return ({ | ||
parentPath: params.parentPath, | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
name: item.fileName, | ||
@@ -82,0 +83,0 @@ mimeType: item.contentType |
import { EnonicError, EnonicErrorKey } from "enonic-fp/lib/errors"; | ||
import { Response } from "enonic-types/lib/controller"; | ||
import { IO } from "fp-ts/lib/IO"; | ||
import { ResourceKey } from "enonic-types/lib/thymeleaf"; | ||
export declare const defaultStatusNumbers: { | ||
@@ -15,3 +16,3 @@ [key in EnonicErrorKey]: number; | ||
*/ | ||
export declare function unsafeRenderErrorPage(view: any): (err: EnonicError) => IO<Response>; | ||
export declare function unsafeRenderErrorPage(view: ResourceKey): (err: EnonicError) => IO<Response>; | ||
export declare const ok: (body: any, other?: Partial<Response>) => IO<Response>; | ||
@@ -18,0 +19,0 @@ export declare const created: (body: any, other?: Partial<Response>) => IO<Response>; |
{ | ||
"name": "enonic-wizardry", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"description": "Functional utility library for Enonic XP", | ||
@@ -28,4 +28,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"enonic-fp": "^0.2.8", | ||
"enonic-types": "^0.0.13", | ||
"enonic-fp": "^0.2.10", | ||
"enonic-types": "^0.0.14", | ||
"fp-ts": "^2.1.2", | ||
@@ -32,0 +32,0 @@ "io-ts": "^2.0.1" |
22999
406
+ Addedenonic-types@0.0.14(transitive)
- Removedenonic-types@0.0.13(transitive)
Updatedenonic-fp@^0.2.10
Updatedenonic-types@^0.0.14