@trycourier/courier
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -8,2 +8,6 @@ # Change Log | ||
## [v3.2.0] - 2021-11-18 | ||
- adds idempotency expiration support for send and send list endpoints | ||
## [v3.1.0] - 2021-11-16 | ||
@@ -185,3 +189,4 @@ | ||
[unreleased]: https://github.com/trycourier/courier-node/compare/v3.1.0...HEAD | ||
[unreleased]: https://github.com/trycourier/courier-node/compare/v3.2.0...HEAD | ||
[v3.2.0]: https://github.com/trycourier/courier-node/compare/v3.1.0...v3.2.0 | ||
[v3.1.0]: https://github.com/trycourier/courier-node/compare/v3.0.0...v3.1.0 | ||
@@ -188,0 +193,0 @@ [v3.0.0]: https://github.com/trycourier/courier-node/compare/v2.8.0...v3.0.0 |
@@ -58,2 +58,6 @@ "use strict"; | ||
} | ||
if (config && config.idempotencyExpiry) { | ||
axiosConfig.headers["x-idempotency-expiration"] = | ||
config.idempotencyExpiry; | ||
} | ||
return [4 /*yield*/, options.httpClient.post("/send", { | ||
@@ -60,0 +64,0 @@ brand: params.brand, |
@@ -195,2 +195,6 @@ "use strict"; | ||
} | ||
if (config && config.idempotencyExpiry) { | ||
axiosConfig.headers["x-idempotency-expiration"] = | ||
config.idempotencyExpiry; | ||
} | ||
return [4 /*yield*/, options.httpClient.post("/send/list", params, axiosConfig)]; | ||
@@ -197,0 +201,0 @@ case 1: |
@@ -34,2 +34,3 @@ import { AxiosRequestConfig } from "axios"; | ||
idempotencyKey?: string; | ||
idempotencyExpiry?: number; | ||
} | ||
@@ -36,0 +37,0 @@ export interface ICourierSendResponse { |
{ | ||
"name": "@trycourier/courier", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "A node.js module for communicating with the Courier REST API.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
93528
1634