strapi-plugin-magic-mail 2.3.9 → 2.3.10
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 +4 -2
- package/dist/server/index.mjs +4 -2
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -5543,7 +5543,7 @@ function requireOauth() {
|
|
|
5543
5543
|
});
|
|
5544
5544
|
return oauth;
|
|
5545
5545
|
}
|
|
5546
|
-
const version = "2.3.
|
|
5546
|
+
const version = "2.3.9";
|
|
5547
5547
|
const require$$2 = {
|
|
5548
5548
|
version
|
|
5549
5549
|
};
|
|
@@ -6874,7 +6874,9 @@ function requireAnalytics() {
|
|
|
6874
6874
|
}
|
|
6875
6875
|
let result = html;
|
|
6876
6876
|
for (const replacement of replacements) {
|
|
6877
|
-
|
|
6877
|
+
const escapedFrom = replacement.from.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
6878
|
+
const hrefRegex = new RegExp(`(href\\s*=\\s*["'])${escapedFrom}(["'])`, "gi");
|
|
6879
|
+
result = result.replace(hrefRegex, `$1${replacement.to}$2`);
|
|
6878
6880
|
}
|
|
6879
6881
|
if (linkCount > 0) {
|
|
6880
6882
|
strapi2.log.info(`[magic-mail] [SUCCESS] Rewrote ${linkCount} links for click tracking`);
|
package/dist/server/index.mjs
CHANGED
|
@@ -5533,7 +5533,7 @@ function requireOauth() {
|
|
|
5533
5533
|
});
|
|
5534
5534
|
return oauth;
|
|
5535
5535
|
}
|
|
5536
|
-
const version = "2.3.
|
|
5536
|
+
const version = "2.3.9";
|
|
5537
5537
|
const require$$2 = {
|
|
5538
5538
|
version
|
|
5539
5539
|
};
|
|
@@ -6864,7 +6864,9 @@ function requireAnalytics() {
|
|
|
6864
6864
|
}
|
|
6865
6865
|
let result = html;
|
|
6866
6866
|
for (const replacement of replacements) {
|
|
6867
|
-
|
|
6867
|
+
const escapedFrom = replacement.from.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
6868
|
+
const hrefRegex = new RegExp(`(href\\s*=\\s*["'])${escapedFrom}(["'])`, "gi");
|
|
6869
|
+
result = result.replace(hrefRegex, `$1${replacement.to}$2`);
|
|
6868
6870
|
}
|
|
6869
6871
|
if (linkCount > 0) {
|
|
6870
6872
|
strapi2.log.info(`[magic-mail] [SUCCESS] Rewrote ${linkCount} links for click tracking`);
|
package/package.json
CHANGED