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

@react-email/render

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-email/render - npm Package Compare versions

Comparing version

to
1.1.2

@@ -26,3 +26,3 @@ import { HtmlToTextOptions, SelectorDefinition } from 'html-to-text';

declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
declare const render: (node: React.ReactNode, options?: Options) => Promise<string>;

@@ -29,0 +29,0 @@ /**

@@ -92,3 +92,3 @@ "use strict";

// src/shared/utils/pretty.ts
var import_html = __toESM(require("prettier/plugins/html"));
var html = __toESM(require("prettier/plugins/html"));
var import_standalone = require("prettier/standalone");

@@ -128,3 +128,3 @@ function recursivelyMapDoc(doc, callback) {

}
var modifiedHtml = __spreadValues({}, import_html.default);
var modifiedHtml = __spreadValues({}, html);
if (modifiedHtml.printers) {

@@ -192,4 +192,4 @@ const previousPrint = modifiedHtml.printers.html.print;

});
var render = (element, options) => __async(void 0, null, function* () {
const suspendedElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { children: element });
var render = (node, options) => __async(void 0, null, function* () {
const suspendedElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { children: node });
const reactDOMServer = yield import("react-dom/server").then(

@@ -196,0 +196,0 @@ // This is beacuse react-dom/server is CJS

@@ -26,3 +26,3 @@ import { HtmlToTextOptions, SelectorDefinition } from 'html-to-text';

declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
declare const render: (node: React.ReactNode, options?: Options) => Promise<string>;

@@ -29,0 +29,0 @@ /**

@@ -92,3 +92,3 @@ "use strict";

// src/shared/utils/pretty.ts
var import_html = __toESM(require("prettier/plugins/html"));
var html = __toESM(require("prettier/plugins/html"));
var import_standalone = require("prettier/standalone");

@@ -128,3 +128,3 @@ function recursivelyMapDoc(doc, callback) {

}
var modifiedHtml = __spreadValues({}, import_html.default);
var modifiedHtml = __spreadValues({}, html);
if (modifiedHtml.printers) {

@@ -190,4 +190,4 @@ const previousPrint = modifiedHtml.printers.html.print;

var import_jsx_runtime = require("react/jsx-runtime");
var render = (element, options) => __async(void 0, null, function* () {
const suspendedElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { children: element });
var render = (node, options) => __async(void 0, null, function* () {
const suspendedElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { children: node });
const reactDOMServer = yield import("react-dom/server").then(

@@ -194,0 +194,0 @@ // This is beacuse react-dom/server is CJS

{
"name": "@react-email/render",
"version": "1.1.2-canary.0",
"version": "1.1.2",
"description": "Transform React components into HTML email templates",

@@ -5,0 +5,0 @@ "sideEffects": false,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet