@ng-doc/core
Advanced tools
Comparing version 16.1.0 to 16.1.1
@@ -13,5 +13,7 @@ "use strict"; | ||
// @ts-ignore | ||
return (0, rxjs_1.from)(Promise.resolve().then(() => require('js-beautify/js/lib/beautify-html.js'))).pipe((0, operators_1.map)((formatter) => formatter.default.html_beautify(html.trim()))); | ||
return (0, rxjs_1.from)(Promise.resolve().then(() => require('js-beautify/js/lib/beautify-html.js'))).pipe( | ||
/* This hack is needed to make it work with different bundlers. */ | ||
(0, operators_1.map)((formatter) => formatter?.html_beautify ?? formatter?.default?.html_beautify), (0, operators_1.map)((beautifyHtml) => beautifyHtml(html.trim()))); | ||
} | ||
exports.formatHtml = formatHtml; | ||
//# sourceMappingURL=format-html.js.map |
{ | ||
"name": "@ng-doc/core", | ||
"version": "16.1.0", | ||
"version": "16.1.1", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
47345
826