Skip to content

Commit f2fcd2a

Browse files
authored
Fix/clientresponse fix, use IncomingMessage for external api as well. (#19)
* Also changed ClientResponse to IncomingMessage * Update to 1.3.2 * Update CHANGELOG.md
1 parent 2d0ca70 commit f2fcd2a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [1.3.2] - 2020-08-20
2+
### Fixed
3+
- Moved from ClientResponse to IncomingMessage in the external api as well.
4+
15
## [1.3.1] - 2020-08-19
26
### Fixed
37
- Moved from ClientResponse to IncomingMessage to support higher node/ts versions.

lib/MessageApiClient.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class Message extends CMTypes.MessageEnvelope {
144144
/**
145145
* Sends the message to the CM.com Platform
146146
*/
147-
public send(): Promise<{ body: MessagesResponse; response: http.ClientResponse }> {
147+
public send(): Promise<{ body: MessagesResponse; response: http.IncomingMessage }> {
148148
return this.api.messagesSendMessage(this);
149149
}
150150

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cmdotcom/text-sdk",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"description": "Package to make it very easy to send text messages with CM.com",
55
"keywords": [
66
"cm",

0 commit comments

Comments
 (0)