dymo-api 1.0.33 → 1.0.34

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.
@@ -68,8 +68,11 @@ const sendEmail = async (token, data) => {
68
68
  if (data.html && data.react)
69
69
  throw customError(1500, "You must provide only HTML or a React component, not both.");
70
70
  try {
71
- data.html = await (0, render_1.renderAsync)(data.react);
72
- delete data.react;
71
+ if (data.react) {
72
+ //@ts-ignore
73
+ data.html = await (0, render_1.renderAsync)(data.react);
74
+ delete data.react;
75
+ }
73
76
  }
74
77
  catch (error) {
75
78
  throw customError(1500, "An error occurred while rendering your React component.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dymo-api",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "Flow system for Dymo API.",
5
5
  "main": "dist/dymo-api.js",
6
6
  "module": "dist/dymo-api.mjs",