@upyo/resend 0.6.0-dev.312 → 0.6.0-dev.314

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/index.cjs CHANGED
@@ -342,8 +342,11 @@ function uint8ArrayToBase64(bytes) {
342
342
  const bitmap = a << 16 | b << 8 | c;
343
343
  result += chars.charAt(bitmap >> 18 & 63) + chars.charAt(bitmap >> 12 & 63) + chars.charAt(bitmap >> 6 & 63) + chars.charAt(bitmap & 63);
344
344
  }
345
- const padding = 3 - (bytes.length - 1) % 3;
346
- if (padding < 3) result = result.slice(0, -padding) + "=".repeat(padding);
345
+ const remainder = bytes.length % 3;
346
+ if (remainder !== 0) {
347
+ const padding = 3 - remainder;
348
+ result = result.slice(0, -padding) + "=".repeat(padding);
349
+ }
347
350
  return result;
348
351
  }
349
352
  /**
package/dist/index.js CHANGED
@@ -319,8 +319,11 @@ function uint8ArrayToBase64(bytes) {
319
319
  const bitmap = a << 16 | b << 8 | c;
320
320
  result += chars.charAt(bitmap >> 18 & 63) + chars.charAt(bitmap >> 12 & 63) + chars.charAt(bitmap >> 6 & 63) + chars.charAt(bitmap & 63);
321
321
  }
322
- const padding = 3 - (bytes.length - 1) % 3;
323
- if (padding < 3) result = result.slice(0, -padding) + "=".repeat(padding);
322
+ const remainder = bytes.length % 3;
323
+ if (remainder !== 0) {
324
+ const padding = 3 - remainder;
325
+ result = result.slice(0, -padding) + "=".repeat(padding);
326
+ }
324
327
  return result;
325
328
  }
326
329
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upyo/resend",
3
- "version": "0.6.0-dev.312",
3
+ "version": "0.6.0-dev.314",
4
4
  "description": "Resend transport for Upyo email library",
5
5
  "keywords": [
6
6
  "email",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "sideEffects": false,
55
55
  "peerDependencies": {
56
- "@upyo/core": "0.6.0-dev.312+646e2370"
56
+ "@upyo/core": "0.6.0-dev.314+70a7c9c7"
57
57
  },
58
58
  "devDependencies": {
59
59
  "tsdown": "^0.12.7",