bytex-sdk 1.7.5 → 1.7.6
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/index.js +2 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -359,10 +359,8 @@ export class BytexCloud {
|
|
|
359
359
|
*/
|
|
360
360
|
async download(name, password) {
|
|
361
361
|
this._requireKey();
|
|
362
|
-
//
|
|
363
|
-
const
|
|
364
|
-
const streamName = (isDataFile || name.endsWith('.stream.btx')) ? name : `${name}.stream.btx`;
|
|
365
|
-
|
|
362
|
+
// ByteX Worker always expects .stream.btx for action=view
|
|
363
|
+
const streamName = name.endsWith('.stream.btx') ? name : `${name}.stream.btx`;
|
|
366
364
|
let url = `${this.workerUrl}?action=view&key=${this.apiKey}&file=${encodeURIComponent(streamName)}`;
|
|
367
365
|
if (password) url += `&password=${encodeURIComponent(password)}`;
|
|
368
366
|
|