@huma-finance/widgets 0.0.43-beta.109 → 0.0.43-beta.114

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.
@@ -2393,20 +2393,13 @@ function CreditLineApprove(_ref) {
2393
2393
  });
2394
2394
  }
2395
2395
 
2396
- var checkIsDev = function checkIsDev() {
2397
- return window.location.hostname.startsWith('dev') || window.location.hostname.startsWith('deploy-preview') || process.env.NODE_ENV === 'development';
2398
- };
2399
- var envUtil = {
2400
- checkIsDev: checkIsDev
2401
- };
2402
-
2403
2396
  function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2404
2397
  function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2405
2398
  var useEA = function useEA() {
2406
2399
  var dispatch = useAppDispatch();
2407
2400
  var _useWeb3React = core.useWeb3React(),
2408
2401
  chainId = _useWeb3React.chainId;
2409
- var _useAuthErrorHandling = shared.useAuthErrorHandling(envUtil.checkIsDev()),
2402
+ var _useAuthErrorHandling = shared.useAuthErrorHandling(shared.checkIsDev()),
2410
2403
  isWalletOwnershipVerificationRequired = _useAuthErrorHandling.isWalletOwnershipVerificationRequired,
2411
2404
  isWalletOwnershipVerified = _useAuthErrorHandling.isWalletOwnershipVerified,
2412
2405
  setAuthError = _useAuthErrorHandling.setError;
@@ -2418,7 +2411,7 @@ var useEA = function useEA() {
2418
2411
  case 0:
2419
2412
  _context.prev = 0;
2420
2413
  _context.next = 3;
2421
- return shared.EAService.approve(payload, chainId, envUtil.checkIsDev());
2414
+ return shared.EAService.approve(payload, chainId, shared.checkIsDev());
2422
2415
  case 3:
2423
2416
  result = _context.sent;
2424
2417
  dispatch(setApproval(_objectSpread$3(_objectSpread$3({}, result), {}, {
@@ -3041,8 +3034,8 @@ function NotifiSubscriptionModal(_ref) {
3041
3034
  account: {
3042
3035
  publicKey: account
3043
3036
  },
3044
- tenantId: shared.getNotifiDappId(envUtil.checkIsDev()),
3045
- env: envUtil.checkIsDev() ? 'Development' : 'Production',
3037
+ tenantId: shared.getNotifiDappId(shared.checkIsDev()),
3038
+ env: shared.checkIsDev() ? 'Development' : 'Production',
3046
3039
  walletBlockchain: shared.getBlockchainConfigFromChain(chainId)
3047
3040
  });
3048
3041
  _context.next = 4;
@@ -3261,7 +3254,7 @@ var useIsFirstTimeNotifiUser = function useIsFirstTimeNotifiUser(account, chainI
3261
3254
  publicKey: account
3262
3255
  },
3263
3256
  tenantId: 'humadapp',
3264
- env: envUtil.checkIsDev() ? 'Development' : 'Production',
3257
+ env: shared.checkIsDev() ? 'Development' : 'Production',
3265
3258
  walletBlockchain: shared.getBlockchainConfigFromChain(chainId)
3266
3259
  });
3267
3260
  _context.next = 4;
@@ -3316,7 +3309,7 @@ var useDoesChainSupportNotifi = function useDoesChainSupportNotifi(account, chai
3316
3309
  while (1) switch (_context2.prev = _context2.next) {
3317
3310
  case 0:
3318
3311
  if (account != null && chainId != null) {
3319
- setNotifiChainSupported(shared.doesChainSupportNotifi(chainId, envUtil.checkIsDev(), account));
3312
+ setNotifiChainSupported(shared.doesChainSupportNotifi(chainId, shared.checkIsDev(), account));
3320
3313
  }
3321
3314
  case 1:
3322
3315
  case "end":
@@ -4204,7 +4197,7 @@ function EvaluationKYC(_ref) {
4204
4197
  handleClose = _ref.handleClose;
4205
4198
  var theme = material.useTheme();
4206
4199
  var dispatch = useAppDispatch();
4207
- var isDev = envUtil.checkIsDev();
4200
+ var isDev = shared.checkIsDev();
4208
4201
  var _useWeb3React = core.useWeb3React(),
4209
4202
  account = _useWeb3React.account,
4210
4203
  chainId = _useWeb3React.chainId;