resend 4.4.0 → 4.4.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/index.js CHANGED
@@ -72,7 +72,7 @@ __export(src_exports, {
72
72
  module.exports = __toCommonJS(src_exports);
73
73
 
74
74
  // package.json
75
- var version = "4.4.0";
75
+ var version = "4.4.1";
76
76
 
77
77
  // src/api-keys/api-keys.ts
78
78
  var ApiKeys = class {
@@ -585,12 +585,13 @@ var Resend = class {
585
585
  }
586
586
  post(_0, _1) {
587
587
  return __async(this, arguments, function* (path, entity, options = {}) {
588
+ const headers = new Headers(this.headers);
588
589
  if (options.idempotencyKey) {
589
- this.headers.set("Idempotency-Key", options.idempotencyKey);
590
+ headers.set("Idempotency-Key", options.idempotencyKey);
590
591
  }
591
592
  const requestOptions = __spreadValues({
592
593
  method: "POST",
593
- headers: this.headers,
594
+ headers,
594
595
  body: JSON.stringify(entity)
595
596
  }, options);
596
597
  return this.fetchRequest(path, requestOptions);
package/dist/index.mjs CHANGED
@@ -39,7 +39,7 @@ var __async = (__this, __arguments, generator) => {
39
39
  };
40
40
 
41
41
  // package.json
42
- var version = "4.4.0";
42
+ var version = "4.4.1";
43
43
 
44
44
  // src/api-keys/api-keys.ts
45
45
  var ApiKeys = class {
@@ -552,12 +552,13 @@ var Resend = class {
552
552
  }
553
553
  post(_0, _1) {
554
554
  return __async(this, arguments, function* (path, entity, options = {}) {
555
+ const headers = new Headers(this.headers);
555
556
  if (options.idempotencyKey) {
556
- this.headers.set("Idempotency-Key", options.idempotencyKey);
557
+ headers.set("Idempotency-Key", options.idempotencyKey);
557
558
  }
558
559
  const requestOptions = __spreadValues({
559
560
  method: "POST",
560
- headers: this.headers,
561
+ headers,
561
562
  body: JSON.stringify(entity)
562
563
  }, options);
563
564
  return this.fetchRequest(path, requestOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resend",
3
- "version": "4.4.0",
3
+ "version": "4.4.1",
4
4
  "description": "Node.js library for the Resend API",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -56,5 +56,5 @@
56
56
  "tsup": "7.2.0",
57
57
  "typescript": "5.8.3"
58
58
  },
59
- "packageManager": "pnpm@10.8.1"
59
+ "packageManager": "pnpm@10.9.0"
60
60
  }