enonic-wizardry
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -15,3 +15,3 @@ import { EnonicError, EnonicErrorKey } from "enonic-fp/lib/errors"; | ||
*/ | ||
export declare function renderErrorPage(view: any): (err: EnonicError) => IO<Response>; | ||
export declare function unsafeRenderErrorPage(view: any): (err: EnonicError) => IO<Response>; | ||
export declare const ok: (body: any) => IO<Response>; | ||
@@ -18,0 +18,0 @@ export declare const created: (body: any) => IO<Response>; |
@@ -67,6 +67,6 @@ "use strict"; | ||
*/ | ||
function renderErrorPage(view) { | ||
function unsafeRenderErrorPage(view) { | ||
return function (err) { return status(err, thymeleaf_1.getUnsafeRenderer(view)); }; | ||
} | ||
exports.renderErrorPage = renderErrorPage; | ||
exports.unsafeRenderErrorPage = unsafeRenderErrorPage; | ||
exports.ok = function (body) { return status(200, body); }; | ||
@@ -73,0 +73,0 @@ exports.created = function (body) { return status(201, body); }; |
{ | ||
"name": "enonic-wizardry", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Functional utility library for Enonic XP", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
22056