groundmail 0.32.0 → 0.32.1
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/authjs.js +1 -1
- package/dist/better-auth.js +1 -1
- package/dist/{chunk-PMQDWLBY.js → chunk-KOSFM5QK.js} +12 -4
- package/dist/clerk.js +1 -1
- package/dist/index.js +1 -1
- package/dist/payload.js +1 -1
- package/package.json +1 -1
package/dist/authjs.js
CHANGED
package/dist/better-auth.js
CHANGED
|
@@ -61,10 +61,18 @@ function mergeSpfInclude(existing, includeHost) {
|
|
|
61
61
|
if (!/^v=spf1\b/i.test(trimmed)) {
|
|
62
62
|
return `v=spf1 ${include} ~all`;
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
const terms = trimmed.split(/\s+/);
|
|
65
|
+
const redirect = terms.find((t) => /^redirect=/i.test(t));
|
|
66
|
+
const kept = terms.filter((t) => !/^redirect=/i.test(t));
|
|
67
|
+
const allIndex = kept.findIndex((t) => /^[~?+-]?all$/i.test(t));
|
|
68
|
+
if (redirect && allIndex === -1) {
|
|
69
|
+
kept.push(`include:${redirect.slice("redirect=".length)}`);
|
|
70
|
+
}
|
|
71
|
+
if (allIndex !== -1) {
|
|
72
|
+
kept.splice(allIndex, 0, include);
|
|
73
|
+
return kept.join(" ");
|
|
74
|
+
}
|
|
75
|
+
return `${kept.join(" ")} ${include} ~all`;
|
|
68
76
|
}
|
|
69
77
|
function isSpfRecord(value) {
|
|
70
78
|
return value.trim().toLowerCase().startsWith("v=spf1");
|
package/dist/clerk.js
CHANGED
package/dist/index.js
CHANGED
package/dist/payload.js
CHANGED