@social-mail/social-mail-client 1.9.107 → 1.9.109
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/css-for-email.js +2 -5
- package/package.json +1 -1
package/css-for-email.js
CHANGED
|
@@ -26,11 +26,8 @@ const te = new TextEncoder();
|
|
|
26
26
|
async function encodeTo36(text) {
|
|
27
27
|
const buffer = te.encode(text);
|
|
28
28
|
const hash = await window.crypto.subtle.digest("SHA-1", buffer);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
b = (b << 8n) | BigInt(byte);
|
|
32
|
-
}
|
|
33
|
-
return "c_" + b.toString(64).replaceAll("=", "_");
|
|
29
|
+
const c = window.btoa(hash);
|
|
30
|
+
return "c_" + c.replaceAll("=", "_");
|
|
34
31
|
}
|
|
35
32
|
|
|
36
33
|
async function flattenStyler() {
|