@deadair/sdk 0.37.6 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -3482,8 +3482,9 @@ var RenderClient = class {
|
|
|
3482
3482
|
* @name Get segment audio
|
|
3483
3483
|
* @description The audio of one segment
|
|
3484
3484
|
*/
|
|
3485
|
-
async getSegmentAudio(id) {
|
|
3486
|
-
const
|
|
3485
|
+
async getSegmentAudio(id, query) {
|
|
3486
|
+
const qs = buildQueryString(query);
|
|
3487
|
+
const result = await this.fetch(`/segments/${encodeURIComponent(id)}/audio${qs}`, {
|
|
3487
3488
|
method: "GET",
|
|
3488
3489
|
expectStatuses: [
|
|
3489
3490
|
304
|
|
@@ -3501,7 +3502,8 @@ var RenderClient = class {
|
|
|
3501
3502
|
data: await result.blob(),
|
|
3502
3503
|
headers: {
|
|
3503
3504
|
cacheControl: result.headers.get("cache-control") ?? void 0,
|
|
3504
|
-
etag: result.headers.get("etag") ?? void 0
|
|
3505
|
+
etag: result.headers.get("etag") ?? void 0,
|
|
3506
|
+
contentDisposition: result.headers.get("content-disposition") ?? void 0
|
|
3505
3507
|
}
|
|
3506
3508
|
};
|
|
3507
3509
|
}
|