resend 3.2.0-canary.1 → 3.2.0

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.d.mts CHANGED
@@ -435,16 +435,16 @@ interface ListDomainsResponse {
435
435
  error: ErrorResponse | null;
436
436
  }
437
437
 
438
- interface PatchDomainsOptions {
438
+ interface UpdateDomainsOptions {
439
439
  id: string;
440
440
  clickTracking?: boolean;
441
441
  openTracking?: boolean;
442
442
  }
443
- type PatchDomainsResponseSuccess = Pick<Domain, 'id'> & {
443
+ type UpdateDomainsResponseSuccess = Pick<Domain, 'id'> & {
444
444
  object: 'domain';
445
445
  };
446
- interface PatchDomainsResponse {
447
- data: PatchDomainsResponseSuccess | null;
446
+ interface UpdateDomainsResponse {
447
+ data: UpdateDomainsResponseSuccess | null;
448
448
  error: ErrorResponse | null;
449
449
  }
450
450
 
@@ -466,7 +466,7 @@ declare class Domains {
466
466
  create(payload: CreateDomainOptions, options?: CreateDomainRequestOptions): Promise<CreateDomainResponse>;
467
467
  list(): Promise<ListDomainsResponse>;
468
468
  get(id: string): Promise<GetDomainResponse>;
469
- patch(payload: PatchDomainsOptions): Promise<PatchDomainsResponse>;
469
+ update(payload: UpdateDomainsOptions): Promise<UpdateDomainsResponse>;
470
470
  remove(id: string): Promise<RemoveDomainsResponse>;
471
471
  verify(id: string): Promise<VerifyDomainsResponse>;
472
472
  }
package/dist/index.d.ts CHANGED
@@ -435,16 +435,16 @@ interface ListDomainsResponse {
435
435
  error: ErrorResponse | null;
436
436
  }
437
437
 
438
- interface PatchDomainsOptions {
438
+ interface UpdateDomainsOptions {
439
439
  id: string;
440
440
  clickTracking?: boolean;
441
441
  openTracking?: boolean;
442
442
  }
443
- type PatchDomainsResponseSuccess = Pick<Domain, 'id'> & {
443
+ type UpdateDomainsResponseSuccess = Pick<Domain, 'id'> & {
444
444
  object: 'domain';
445
445
  };
446
- interface PatchDomainsResponse {
447
- data: PatchDomainsResponseSuccess | null;
446
+ interface UpdateDomainsResponse {
447
+ data: UpdateDomainsResponseSuccess | null;
448
448
  error: ErrorResponse | null;
449
449
  }
450
450
 
@@ -466,7 +466,7 @@ declare class Domains {
466
466
  create(payload: CreateDomainOptions, options?: CreateDomainRequestOptions): Promise<CreateDomainResponse>;
467
467
  list(): Promise<ListDomainsResponse>;
468
468
  get(id: string): Promise<GetDomainResponse>;
469
- patch(payload: PatchDomainsOptions): Promise<PatchDomainsResponse>;
469
+ update(payload: UpdateDomainsOptions): Promise<UpdateDomainsResponse>;
470
470
  remove(id: string): Promise<RemoveDomainsResponse>;
471
471
  verify(id: string): Promise<VerifyDomainsResponse>;
472
472
  }
package/dist/index.js CHANGED
@@ -59,7 +59,7 @@ __export(src_exports, {
59
59
  module.exports = __toCommonJS(src_exports);
60
60
 
61
61
  // package.json
62
- var version = "3.2.0-canary.1";
62
+ var version = "3.2.0";
63
63
 
64
64
  // src/api-keys/api-keys.ts
65
65
  var ApiKeys = class {
@@ -248,7 +248,7 @@ var Domains = class {
248
248
  return data;
249
249
  });
250
250
  }
251
- patch(payload) {
251
+ update(payload) {
252
252
  return __async(this, null, function* () {
253
253
  const data = yield this.resend.patch(
254
254
  `/domains/${payload.id}`,
package/dist/index.mjs CHANGED
@@ -36,7 +36,7 @@ var __async = (__this, __arguments, generator) => {
36
36
  };
37
37
 
38
38
  // package.json
39
- var version = "3.2.0-canary.1";
39
+ var version = "3.2.0";
40
40
 
41
41
  // src/api-keys/api-keys.ts
42
42
  var ApiKeys = class {
@@ -225,7 +225,7 @@ var Domains = class {
225
225
  return data;
226
226
  });
227
227
  }
228
- patch(payload) {
228
+ update(payload) {
229
229
  return __async(this, null, function* () {
230
230
  const data = yield this.resend.patch(
231
231
  `/domains/${payload.id}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resend",
3
- "version": "3.2.0-canary.1",
3
+ "version": "3.2.0",
4
4
  "description": "Node.js library for the Resend API",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -23,7 +23,7 @@
23
23
  }
24
24
  }
25
25
  },
26
- "packageManager": "yarn@3.7.0",
26
+ "packageManager": "yarn@3.8.0",
27
27
  "scripts": {
28
28
  "build": "tsup src/index.ts --format esm,cjs --dts",
29
29
  "test": "jest",
@@ -47,16 +47,16 @@
47
47
  "@react-email/render": "0.0.12"
48
48
  },
49
49
  "devDependencies": {
50
- "@types/jest": "29.5.11",
51
- "@types/node": "18.19.7",
52
- "@types/react": "18.2.48",
53
- "@typescript-eslint/eslint-plugin": "6.19.0",
54
- "@typescript-eslint/parser": "6.19.0",
50
+ "@types/jest": "29.5.12",
51
+ "@types/node": "18.19.15",
52
+ "@types/react": "18.2.55",
53
+ "@typescript-eslint/eslint-plugin": "6.21.0",
54
+ "@typescript-eslint/parser": "6.21.0",
55
55
  "eslint": "8.56.0",
56
56
  "jest": "29.7.0",
57
57
  "jest-fetch-mock": "3.0.3",
58
- "prettier": "3.2.4",
59
- "ts-jest": "29.1.1",
58
+ "prettier": "3.2.5",
59
+ "ts-jest": "29.1.2",
60
60
  "ts-node": "10.9.2",
61
61
  "tsup": "7.2.0",
62
62
  "typescript": "5.3.3"