New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@contrail/document-generation

Package Overview
Dependencies
Maintainers
9
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrail/document-generation - npm Package Compare versions

Comparing version

to
1.0.21

9

lib/util/document-text-element-util.js

@@ -42,5 +42,12 @@ "use strict";

}
let fontStyles = '';
if ((_b = style === null || style === void 0 ? void 0 : style.font) === null || _b === void 0 ? void 0 : _b.size) {
formattedText = `<span style="font-size: ${style.font.size}pt;">${formattedText}</span>`;
fontStyles += `font-size: ${style.font.size}pt; `;
}
if (style === null || style === void 0 ? void 0 : style.color) {
fontStyles += `color: ${style.color}; `;
}
if (fontStyles.length) {
formattedText = `<span style="${fontStyles}">${formattedText}</span>`;
}
formattedText = `<p>${formattedText}</p>`;

@@ -47,0 +54,0 @@ return formattedText;

2

package.json
{
"name": "@contrail/document-generation",
"version": "1.0.20",
"version": "1.0.21",
"description": "Utilities for automatic generation of documents.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",