twilio-chat
Advanced tools
Comparing version 3.3.3 to 3.3.4-rc1
@@ -241,3 +241,3 @@ "use strict"; | ||
if (!(mediaContent instanceof FormData)) { | ||
if (!(typeof FormData !== 'undefined' && mediaContent instanceof FormData)) { | ||
_context3.next = 11; | ||
@@ -244,0 +244,0 @@ break; |
@@ -301,3 +301,3 @@ /// <reference types="node" /> | ||
* @param {String | FormData | Channel#SendMediaOptions} message - The message body for text message, | ||
* FormData or MediaOptions for media content | ||
* FormData or MediaOptions for media content. Sending FormData supported only with browser engine | ||
* @param {Object} messageAttributes - attributes for the message | ||
@@ -304,0 +304,0 @@ * @returns {Promise<number|Error|SessionError>} new Message's index in the Channel's messages list |
@@ -608,3 +608,3 @@ "use strict"; | ||
* @param {String | FormData | Channel#SendMediaOptions} message - The message body for text message, | ||
* FormData or MediaOptions for media content | ||
* FormData or MediaOptions for media content. Sending FormData supported only with browser engine | ||
* @param {Object} messageAttributes - attributes for the message | ||
@@ -611,0 +611,0 @@ * @returns {Promise<number|Error|SessionError>} new Message's index in the Channel's messages list |
@@ -106,3 +106,3 @@ "use strict"; | ||
let media; | ||
if (mediaContent instanceof FormData) { | ||
if (typeof FormData !== 'undefined' && (mediaContent instanceof FormData)) { | ||
log.debug('Sending media message as FormData', mediaContent, attributes); | ||
@@ -109,0 +109,0 @@ media = await this.services.mcsClient.postFormData(mediaContent); |
{ | ||
"name": "twilio-chat", | ||
"version": "3.3.3", | ||
"version": "3.3.4-rc1", | ||
"description": "Twilio Chat service client library", | ||
@@ -11,3 +11,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"twilio-mcs-client": "^0.3.1", | ||
"twilio-mcs-client": "^0.3.3", | ||
"twilio-notifications": "^0.5.8", | ||
@@ -14,0 +14,0 @@ "twilio-sync": "^0.11.5", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6102870
4
Updatedtwilio-mcs-client@^0.3.3