@audius/sdk 0.0.1 → 0.0.2

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/browser.js CHANGED
@@ -89171,17 +89171,16 @@ var EthWeb3Manager = /*#__PURE__*/function () {
89171
89171
  this.web3Config = web3Config;
89172
89172
  this.web3 = new web3(provider);
89173
89173
  this.identityService = identityService;
89174
- this.hedgehog = hedgehog; // Hedgehog might not exist (in the case of @audius/sdk)
89174
+ this.hedgehog = hedgehog;
89175
89175
 
89176
- if (this.hedgehog) {
89177
- if (this.web3Config.ownerWallet) {
89178
- this.ownerWallet = this.web3Config.ownerWallet;
89179
- } else {
89180
- var storedWallet = this.hedgehog.getWallet();
89176
+ if (this.web3Config.ownerWallet) {
89177
+ this.ownerWallet = this.web3Config.ownerWallet;
89178
+ } else if (this.hedgehog) {
89179
+ // Hedgehog might not exist (in the case of @audius/sdk)
89180
+ var storedWallet = this.hedgehog.getWallet();
89181
89181
 
89182
- if (storedWallet) {
89183
- this.ownerWallet = storedWallet;
89184
- }
89182
+ if (storedWallet) {
89183
+ this.ownerWallet = storedWallet;
89185
89184
  }
89186
89185
  }
89187
89186
  }
@@ -90933,7 +90932,7 @@ var Oauth = /*#__PURE__*/function () {
90933
90932
  }
90934
90933
 
90935
90934
  this.discoveryProvider = discoveryProvider;
90936
- this.appName = appName !== null && appName !== void 0 ? appName : null;
90935
+ this.appName = appName;
90937
90936
  this.activePopupWindow = null;
90938
90937
  this.loginSuccessCallback = null;
90939
90938
  this.loginErrorCallback = null;
@@ -91165,13 +91164,12 @@ var sdk = /*#__PURE__*/function () {
91165
91164
  var _ref = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee(config) {
91166
91165
  var _ethWeb3Config$provid;
91167
91166
 
91168
- var _ref2, appName, discoveryNodeConfig, ethContractsConfig, ethWeb3Config, identityServiceConfig, userStateManager, identityService, ethWeb3Manager, ethContracts, discoveryNode, oauth;
91169
-
91167
+ var appName, discoveryNodeConfig, ethContractsConfig, ethWeb3Config, identityServiceConfig, userStateManager, identityService, ethWeb3Manager, ethContracts, discoveryNode, oauth;
91170
91168
  return regeneratorRuntime.wrap(function _callee$(_context) {
91171
91169
  while (1) {
91172
91170
  switch (_context.prev = _context.next) {
91173
91171
  case 0:
91174
- _ref2 = config !== null && config !== void 0 ? config : {}, appName = _ref2.appName, discoveryNodeConfig = _ref2.discoveryNodeConfig, ethContractsConfig = _ref2.ethContractsConfig, ethWeb3Config = _ref2.ethWeb3Config, identityServiceConfig = _ref2.identityServiceConfig;
91172
+ appName = config.appName, discoveryNodeConfig = config.discoveryNodeConfig, ethContractsConfig = config.ethContractsConfig, ethWeb3Config = config.ethWeb3Config, identityServiceConfig = config.identityServiceConfig;
91175
91173
  /** Initialize services */
91176
91174
 
91177
91175
  userStateManager = new UserStateManager();