twilio-mcs-client
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -153,3 +153,3 @@ "use strict"; | ||
if (!(media instanceof FormData) && contentType) { | ||
if ((typeof FormData === 'undefined' || !(media instanceof FormData)) && contentType) { | ||
(0, _assign2.default)(headers, { | ||
@@ -156,0 +156,0 @@ 'Content-Type': contentType |
@@ -8,6 +8,6 @@ declare class Configuration { | ||
constructor(token: string, baseUrl: string, options: any); | ||
static readonly backoffConfigDefault: any; | ||
static readonly retryWhenThrottledDefault: boolean; | ||
static get backoffConfigDefault(): any; | ||
static get retryWhenThrottledDefault(): boolean; | ||
updateToken(token: string): void; | ||
} | ||
export { Configuration }; |
@@ -18,9 +18,9 @@ import { Network } from './services/network'; | ||
constructor(config: Configuration, network: Network, data: any); | ||
readonly sid: string; | ||
readonly serviceSid: string; | ||
readonly dateCreated: Date; | ||
readonly dateUpdated: Date; | ||
readonly contentType: string; | ||
readonly size: number; | ||
readonly fileName: string; | ||
get sid(): string; | ||
get serviceSid(): string; | ||
get dateCreated(): Date; | ||
get dateUpdated(): Date; | ||
get contentType(): string; | ||
get size(): number; | ||
get fileName(): string; | ||
/** | ||
@@ -27,0 +27,0 @@ * Returns direct content URL to uploaded binary |
@@ -67,3 +67,3 @@ "use strict"; | ||
}; | ||
if (!(media instanceof FormData) && contentType) { | ||
if ((typeof FormData === 'undefined' || !(media instanceof FormData)) && contentType) { | ||
Object.assign(headers, { | ||
@@ -70,0 +70,0 @@ 'Content-Type': contentType |
{ | ||
"name": "twilio-mcs-client", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Twilio Media Content Service client library", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
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
346426
6432