Skip to content

Commit

Permalink
Merge pull request #18 from cmdotcom/fix/clientresponse-deprecation
Browse files Browse the repository at this point in the history
ClientResponse --> IncomingMessage
  • Loading branch information
EricSmekens authored Aug 19, 2020
2 parents 43e2a12 + aa10a34 commit 2d0ca70
Show file tree
Hide file tree
Showing 5 changed files with 1,051 additions and 719 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [1.3.1] - 2020-08-19
### Fixed
- Moved from ClientResponse to IncomingMessage to support higher node/ts versions.
- Updated devDependencies to for audit fixes.

## [1.3.0] - 2020-06-15
### Added
- Support for Twitter as channel.
Expand Down
3 changes: 2 additions & 1 deletion lib/MessageApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ export class Message extends CMTypes.MessageEnvelope {

/**
* Sets the allowed channels to use. Default is to allow any channel configured for your account
* @param channels array of allowed channels. Any of "SMS", "Viber", "RCS", "Apple Business Chat", "WhatsApp" and "Twitter"
* @param channels array of allowed channels.
* Any of "SMS", "Viber", "RCS", "Apple Business Chat", "WhatsApp" and "Twitter"
*/
public setAllowedChannels(channels: Channel[]): Message {
this.messages.msg[0].allowedChannels = channels || [];
Expand Down
Loading

0 comments on commit 2d0ca70

Please sign in to comment.