@audius/sdk 1.0.31 → 1.0.33

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.
@@ -513,9 +513,9 @@ if (typeof window !== 'undefined' && window && window.Web3) {
513
513
  var LibsWeb3 = Web3;
514
514
 
515
515
  var name = "@audius/sdk";
516
- var version = "1.0.31";
516
+ var version = "1.0.33";
517
517
  var audius = {
518
- releaseSHA: "6b9562b0bf229dc32799315990f7d160e1223367"
518
+ releaseSHA: "503765c37798a57b28320d6bb45253c27cb34741"
519
519
  };
520
520
  var description = "";
521
521
  var main = "dist/index.cjs.js";
@@ -599,6 +599,7 @@ var dependencies = {
599
599
  lodash: "4.17.21",
600
600
  "micro-aes-gcm": "0.3.3",
601
601
  "node-localstorage": "^1.3.1",
602
+ "patch-package": "6.5.0",
602
603
  "proper-url-join": "1.2.0",
603
604
  "rollup-plugin-shim": "^1.0.0",
604
605
  "safe-buffer": "5.2.1",
@@ -646,7 +647,6 @@ var devDependencies = {
646
647
  mocha: "9.2.2",
647
648
  nock: "13.1.2",
648
649
  nyc: "15.1.0",
649
- "patch-package": "6.5.0",
650
650
  prettier: "^2.6.1",
651
651
  "prettier-config-standard": "^5.0.0",
652
652
  rollup: "2.70.1",
@@ -50786,7 +50786,7 @@ var getNewPrimary = /*#__PURE__*/function () {
50786
50786
  }();
50787
50787
 
50788
50788
  var rolloverNodes = /*#__PURE__*/function () {
50789
- var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(libs, creatorNodeWhitelist) {
50789
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(libs, creatorNodeWhitelist, creatorNodeBlacklist) {
50790
50790
  var _libs$userStateManage;
50791
50791
 
50792
50792
  var user, primary, healthy, secondaries, _libs$ServiceProvider, _libs$User, _libs$User2, _libs$creatorNode2, _libs$User3, newPrimary, index, newSecondaries, autoselect, newEndpoints, newMetadata;
@@ -50822,7 +50822,7 @@ var rolloverNodes = /*#__PURE__*/function () {
50822
50822
  case 9:
50823
50823
  healthy = _context3.sent;
50824
50824
 
50825
- if (!healthy) {
50825
+ if (!(healthy && !(creatorNodeBlacklist !== null && creatorNodeBlacklist !== void 0 && creatorNodeBlacklist.has(primary)))) {
50826
50826
  _context3.next = 12;
50827
50827
  break;
50828
50828
  }
@@ -50888,7 +50888,7 @@ var rolloverNodes = /*#__PURE__*/function () {
50888
50888
  }, _callee3, null, [[13, 34]]);
50889
50889
  }));
50890
50890
 
50891
- return function rolloverNodes(_x6, _x7) {
50891
+ return function rolloverNodes(_x6, _x7, _x8) {
50892
50892
  return _ref3.apply(this, arguments);
50893
50893
  };
50894
50894
  }();
@@ -51005,37 +51005,39 @@ var SanityChecks = /*#__PURE__*/function () {
51005
51005
  value: function () {
51006
51006
  var _run = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
51007
51007
  var creatorNodeWhitelist,
51008
+ creatorNodeBlacklist,
51008
51009
  _args = arguments;
51009
51010
  return regeneratorRuntime.wrap(function _callee$(_context) {
51010
51011
  while (1) {
51011
51012
  switch (_context.prev = _context.next) {
51012
51013
  case 0:
51013
51014
  creatorNodeWhitelist = _args.length > 0 && _args[0] !== undefined ? _args[0] : null;
51014
- _context.next = 3;
51015
+ creatorNodeBlacklist = _args.length > 1 && _args[1] !== undefined ? _args[1] : null;
51016
+ _context.next = 4;
51015
51017
  return addSecondaries(this.libs);
51016
51018
 
51017
- case 3:
51018
- _context.next = 5;
51019
+ case 4:
51020
+ _context.next = 6;
51019
51021
  return assignReplicaSetIfNecessary(this.libs);
51020
51022
 
51021
- case 5:
51022
- _context.next = 7;
51023
+ case 6:
51024
+ _context.next = 8;
51023
51025
  return syncNodes(this.libs);
51024
51026
 
51025
- case 7:
51027
+ case 8:
51026
51028
  if (this.options.skipRollover) {
51027
- _context.next = 10;
51029
+ _context.next = 11;
51028
51030
  break;
51029
51031
  }
51030
51032
 
51031
- _context.next = 10;
51032
- return rolloverNodes(this.libs, creatorNodeWhitelist);
51033
+ _context.next = 11;
51034
+ return rolloverNodes(this.libs, creatorNodeWhitelist, creatorNodeBlacklist);
51033
51035
 
51034
- case 10:
51035
- _context.next = 12;
51036
+ case 11:
51037
+ _context.next = 13;
51036
51038
  return needsRecoveryEmail(this.libs);
51037
51039
 
51038
- case 12:
51040
+ case 13:
51039
51041
  case "end":
51040
51042
  return _context.stop();
51041
51043
  }