@imranq2/fhirpatientsummary 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -564,7 +564,7 @@ var TemplateUtilities = class {
|
|
|
564
564
|
formatQuantityValue(quantity) {
|
|
565
565
|
if (!quantity) return "";
|
|
566
566
|
const parts = [];
|
|
567
|
-
if (quantity.comparator) parts.push(quantity.comparator);
|
|
567
|
+
if (quantity.comparator) parts.push(`${quantity.comparator}`.replace(/</g, "<").replace(/>/g, ">"));
|
|
568
568
|
if (quantity.value !== void 0) parts.push(quantity.value.toString());
|
|
569
569
|
if (quantity.unit) parts.push(quantity.unit);
|
|
570
570
|
return parts.join(" ").trim();
|
|
@@ -2264,8 +2264,8 @@ var NarrativeGenerator = class {
|
|
|
2264
2264
|
const options = aggressive ? AGGRESSIVE_MINIFY_OPTIONS : DEFAULT_MINIFY_OPTIONS;
|
|
2265
2265
|
return await (0, import_html_minifier_terser.minify)(html, options);
|
|
2266
2266
|
} catch (error) {
|
|
2267
|
-
console.warn("HTML minification failed
|
|
2268
|
-
return html
|
|
2267
|
+
console.warn("HTML minification failed", error);
|
|
2268
|
+
return html;
|
|
2269
2269
|
}
|
|
2270
2270
|
}
|
|
2271
2271
|
/**
|
package/dist/index.js
CHANGED
|
@@ -536,7 +536,7 @@ var TemplateUtilities = class {
|
|
|
536
536
|
formatQuantityValue(quantity) {
|
|
537
537
|
if (!quantity) return "";
|
|
538
538
|
const parts = [];
|
|
539
|
-
if (quantity.comparator) parts.push(quantity.comparator);
|
|
539
|
+
if (quantity.comparator) parts.push(`${quantity.comparator}`.replace(/</g, "<").replace(/>/g, ">"));
|
|
540
540
|
if (quantity.value !== void 0) parts.push(quantity.value.toString());
|
|
541
541
|
if (quantity.unit) parts.push(quantity.unit);
|
|
542
542
|
return parts.join(" ").trim();
|
|
@@ -2236,8 +2236,8 @@ var NarrativeGenerator = class {
|
|
|
2236
2236
|
const options = aggressive ? AGGRESSIVE_MINIFY_OPTIONS : DEFAULT_MINIFY_OPTIONS;
|
|
2237
2237
|
return await htmlMinify(html, options);
|
|
2238
2238
|
} catch (error) {
|
|
2239
|
-
console.warn("HTML minification failed
|
|
2240
|
-
return html
|
|
2239
|
+
console.warn("HTML minification failed", error);
|
|
2240
|
+
return html;
|
|
2241
2241
|
}
|
|
2242
2242
|
}
|
|
2243
2243
|
/**
|