@dnax/core 0.10.5 → 0.11.0

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.
Files changed (2) hide show
  1. package/lib/mail.ts +5 -6
  2. package/package.json +1 -1
package/lib/mail.ts CHANGED
@@ -132,14 +132,13 @@ function send(
132
132
  ...smtp,
133
133
  });
134
134
 
135
- let from = options?.mailOptions?.from || (
136
- `${options?.config?.fromName || ""} <${
137
- options?.config?.fromAddress || ""
138
- }>`),
135
+ let from =
136
+ options?.mailOptions?.from ||
137
+ `${Cfg?.email?.fromName || ""} <${Cfg?.email?.fromAddress || ""}>`;
139
138
 
140
139
  var response = await transport.sendMail({
141
- from:
142
-
140
+ from: from,
141
+
143
142
  to: options?.mailOptions?.to || undefined,
144
143
  subject: options?.mailOptions?.subject || "",
145
144
  text: options?.mailOptions?.text || "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.10.5",
3
+ "version": "0.11.0",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {