🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

@react-email/text

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-email/text - npm Package Compare versions

Comparing version

to
0.1.5

@@ -148,11 +148,10 @@ "use strict";

var _b = _a, { style } = _b, props = __objRest(_b, ["style"]);
let modifiedStyle = {};
if (modifiedStyle.marginBottom === void 0) {
modifiedStyle.marginBottom = "16px";
const defaultMargins = {};
if ((style == null ? void 0 : style.marginTop) === void 0) {
defaultMargins.marginTop = "16px";
}
if (modifiedStyle.marginTop === void 0) {
modifiedStyle.marginTop = "16px";
if ((style == null ? void 0 : style.marginBottom) === void 0) {
defaultMargins.marginBottom = "16px";
}
modifiedStyle = __spreadValues(__spreadValues({}, modifiedStyle), style);
const margins = computeMargins(modifiedStyle);
const margins = computeMargins(__spreadValues(__spreadValues({}, defaultMargins), style));
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(

@@ -159,0 +158,0 @@ "p",

{
"name": "@react-email/text",
"version": "0.1.4",
"version": "0.1.5",
"description": "A block of text separated by blank spaces",

@@ -42,3 +42,3 @@ "sideEffects": false,

"typescript": "5.8.3",
"@react-email/render": "1.1.0",
"@react-email/render": "1.1.2",
"tsconfig": "0.0.0"

@@ -45,0 +45,0 @@ },

Sorry, the diff of this file is not supported yet