@social-mail/social-mail-client 1.9.106 → 1.9.108

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/css-for-email.js +2 -5
  2. 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
- let b = 0n;
30
- for(const byte of Array.from(new Uint8Array(hash))) {
31
- b = (b << 8n) | BigInt(byte);
32
- }
33
- return "c-" + b.toString(36);
29
+ const c = window.atob(hash);
30
+ return "c_" + c.replaceAll("=", "_");
34
31
  }
35
32
 
36
33
  async function flattenStyler() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.9.106",
3
+ "version": "1.9.108",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {