react-native-update 10.37.12 → 10.37.13
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.
|
@@ -434,7 +434,7 @@ export class DownloadTask {
|
|
|
434
434
|
const mediaBuffer = await resourceManager.getMediaByName(mediaName);
|
|
435
435
|
for (const target of targets) {
|
|
436
436
|
const fileStream = fileIo.createStreamSync(target, 'w+');
|
|
437
|
-
fileStream.writeSync(mediaBuffer);
|
|
437
|
+
fileStream.writeSync(mediaBuffer.buffer);
|
|
438
438
|
fileStream.close();
|
|
439
439
|
}
|
|
440
440
|
continue;
|
|
@@ -451,9 +451,7 @@ export class DownloadTask {
|
|
|
451
451
|
',' +
|
|
452
452
|
error.code +
|
|
453
453
|
',' +
|
|
454
|
-
error.message
|
|
455
|
-
',' +
|
|
456
|
-
error.stack;
|
|
454
|
+
error.message;
|
|
457
455
|
console.error(error);
|
|
458
456
|
throw error;
|
|
459
457
|
}
|