@postrun/react 2.16.0 → 2.17.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.cjs CHANGED
@@ -612,7 +612,10 @@ async function runUpload(client, file, options, signal, callbacks) {
612
612
  }
613
613
  })).data;
614
614
  if (created.upload) {
615
- await js.uploadToTarget(file, created.upload, {
615
+ await js.uploadFile(file, {
616
+ mediaId: created.id,
617
+ session: created.upload,
618
+ client,
616
619
  onProgress: callbacks.onProgress,
617
620
  signal
618
621
  });