@audius/sdk 3.0.3-beta.69 → 3.0.3-beta.70

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.
@@ -600,9 +600,9 @@ if (typeof window !== 'undefined' && window && window.Web3) {
600
600
  var LibsWeb3 = Web3;
601
601
 
602
602
  var name = "@audius/sdk";
603
- var version$1 = "3.0.3-beta.69";
603
+ var version$1 = "3.0.3-beta.70";
604
604
  var audius = {
605
- releaseSHA: "997ff885d15fcd0e8a77ae4da6892f712c49f5d9"
605
+ releaseSHA: "7574803d6ab02b40764f5dd067ea1227ea83b8fb"
606
606
  };
607
607
  var description = "Audius SDK";
608
608
  var main = "dist/index.cjs.js";
@@ -47502,7 +47502,7 @@ var Track = /*#__PURE__*/function (_Base) {
47502
47502
  var _addTracksToChainV = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee20(trackMetadatas) {
47503
47503
  var _this2 = this;
47504
47504
 
47505
- var ownerId, trackIds, requestFailed, error;
47505
+ var ownerId, requestFailed, trackIds, error;
47506
47506
  return regeneratorRuntime.wrap(function _callee20$(_context20) {
47507
47507
  while (1) {
47508
47508
  switch (_context20.prev = _context20.next) {
@@ -47517,9 +47517,10 @@ var Track = /*#__PURE__*/function (_Base) {
47517
47517
  throw new Error('No users loaded for this wallet');
47518
47518
 
47519
47519
  case 3:
47520
- trackIds = [];
47520
+ // Any failures in adding track to the blockchain will prevent further progress.
47521
+ // The list of successful track uploads is returned for revert operations by caller
47521
47522
  requestFailed = false;
47522
- _context20.next = 7;
47523
+ _context20.next = 6;
47523
47524
  return Promise.all(trackMetadatas.map( /*#__PURE__*/function () {
47524
47525
  var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19(trackMetadata) {
47525
47526
  var _yield$_this2$writeTr, trackId;
@@ -47535,17 +47536,16 @@ var Track = /*#__PURE__*/function (_Base) {
47535
47536
  case 3:
47536
47537
  _yield$_this2$writeTr = _context19.sent;
47537
47538
  trackId = _yield$_this2$writeTr.trackId;
47538
- trackIds.push(trackId);
47539
- _context19.next = 12;
47540
- break;
47539
+ return _context19.abrupt("return", trackId);
47541
47540
 
47542
47541
  case 8:
47543
47542
  _context19.prev = 8;
47544
47543
  _context19.t0 = _context19["catch"](0);
47545
47544
  requestFailed = true;
47546
47545
  console.error("Failed to add track to chain: ".concat(_context19.t0));
47546
+ return _context19.abrupt("return", null);
47547
47547
 
47548
- case 12:
47548
+ case 13:
47549
47549
  case "end":
47550
47550
  return _context19.stop();
47551
47551
  }
@@ -47558,17 +47558,15 @@ var Track = /*#__PURE__*/function (_Base) {
47558
47558
  };
47559
47559
  }()));
47560
47560
 
47561
- case 7:
47562
- // Any failures in addding track to the blockchain will prevent further progress.
47563
- // The list of successful track uploads is returned for revert operations by caller
47564
- trackIds = trackIds.filter(Boolean);
47561
+ case 6:
47562
+ trackIds = _context20.sent.filter(Boolean);
47565
47563
  error = requestFailed || trackIds.length !== trackMetadatas.length;
47566
47564
  return _context20.abrupt("return", {
47567
47565
  error: error,
47568
47566
  trackIds: trackIds
47569
47567
  });
47570
47568
 
47571
- case 10:
47569
+ case 9:
47572
47570
  case "end":
47573
47571
  return _context20.stop();
47574
47572
  }