Skip to content

Commit

Permalink
Fix/clientresponse fix, use IncomingMessage for external api as well. (
Browse files Browse the repository at this point in the history
…#19)

* Also changed ClientResponse to IncomingMessage

* Update to 1.3.2

* Update CHANGELOG.md
  • Loading branch information
EricSmekens authored Aug 20, 2020
1 parent 2d0ca70 commit f2fcd2a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [1.3.2] - 2020-08-20
### Fixed
- Moved from ClientResponse to IncomingMessage in the external api as well.

## [1.3.1] - 2020-08-19
### Fixed
- Moved from ClientResponse to IncomingMessage to support higher node/ts versions.
Expand Down
2 changes: 1 addition & 1 deletion lib/MessageApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class Message extends CMTypes.MessageEnvelope {
/**
* Sends the message to the CM.com Platform
*/
public send(): Promise<{ body: MessagesResponse; response: http.ClientResponse }> {
public send(): Promise<{ body: MessagesResponse; response: http.IncomingMessage }> {
return this.api.messagesSendMessage(this);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cmdotcom/text-sdk",
"version": "1.3.1",
"version": "1.3.2",
"description": "Package to make it very easy to send text messages with CM.com",
"keywords": [
"cm",
Expand Down

0 comments on commit f2fcd2a

Please sign in to comment.