Skip to content

Commit 2d0ca70

Browse files
authored
Merge pull request #18 from cmdotcom/fix/clientresponse-deprecation
ClientResponse --> IncomingMessage
2 parents 43e2a12 + aa10a34 commit 2d0ca70

File tree

5 files changed

+1051
-719
lines changed

5 files changed

+1051
-719
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [1.3.1] - 2020-08-19
2+
### Fixed
3+
- Moved from ClientResponse to IncomingMessage to support higher node/ts versions.
4+
- Updated devDependencies to for audit fixes.
5+
16
## [1.3.0] - 2020-06-15
27
### Added
38
- Support for Twitter as channel.

lib/MessageApiClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ export class Message extends CMTypes.MessageEnvelope {
106106

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

0 commit comments

Comments
 (0)