strapi-plugin-magic-mail 2.6.5 → 2.6.6
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.
- package/dist/server/index.js +10 -1
- package/dist/server/index.mjs +10 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -4009,6 +4009,15 @@ var emailRouter$1 = ({ strapi: strapi2 }) => ({
|
|
|
4009
4009
|
if (!templateData && data) {
|
|
4010
4010
|
templateData = data;
|
|
4011
4011
|
}
|
|
4012
|
+
if (to && typeof to === "string") {
|
|
4013
|
+
to = to.trim().toLowerCase();
|
|
4014
|
+
}
|
|
4015
|
+
if (from && typeof from === "string") {
|
|
4016
|
+
from = from.trim();
|
|
4017
|
+
}
|
|
4018
|
+
if (replyTo && typeof replyTo === "string") {
|
|
4019
|
+
replyTo = replyTo.trim();
|
|
4020
|
+
}
|
|
4012
4021
|
if (skipLinkTracking) {
|
|
4013
4022
|
strapi2.log.info(`[magic-mail] [SKIP-TRACK] skipLinkTracking=true received for email to: ${to}`);
|
|
4014
4023
|
}
|
|
@@ -5982,7 +5991,7 @@ var oauth$1 = ({ strapi: strapi2 }) => ({
|
|
|
5982
5991
|
return account;
|
|
5983
5992
|
}
|
|
5984
5993
|
});
|
|
5985
|
-
const version = "2.6.
|
|
5994
|
+
const version = "2.6.5";
|
|
5986
5995
|
const require$$2 = {
|
|
5987
5996
|
version
|
|
5988
5997
|
};
|
package/dist/server/index.mjs
CHANGED
|
@@ -3999,6 +3999,15 @@ var emailRouter$1 = ({ strapi: strapi2 }) => ({
|
|
|
3999
3999
|
if (!templateData && data) {
|
|
4000
4000
|
templateData = data;
|
|
4001
4001
|
}
|
|
4002
|
+
if (to && typeof to === "string") {
|
|
4003
|
+
to = to.trim().toLowerCase();
|
|
4004
|
+
}
|
|
4005
|
+
if (from && typeof from === "string") {
|
|
4006
|
+
from = from.trim();
|
|
4007
|
+
}
|
|
4008
|
+
if (replyTo && typeof replyTo === "string") {
|
|
4009
|
+
replyTo = replyTo.trim();
|
|
4010
|
+
}
|
|
4002
4011
|
if (skipLinkTracking) {
|
|
4003
4012
|
strapi2.log.info(`[magic-mail] [SKIP-TRACK] skipLinkTracking=true received for email to: ${to}`);
|
|
4004
4013
|
}
|
|
@@ -5972,7 +5981,7 @@ var oauth$1 = ({ strapi: strapi2 }) => ({
|
|
|
5972
5981
|
return account;
|
|
5973
5982
|
}
|
|
5974
5983
|
});
|
|
5975
|
-
const version = "2.6.
|
|
5984
|
+
const version = "2.6.5";
|
|
5976
5985
|
const require$$2 = {
|
|
5977
5986
|
version
|
|
5978
5987
|
};
|
package/package.json
CHANGED