@zeniai/client-epic-state 4.7.76 → 4.7.77

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.
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getPaymentAccountsByBankAccountIds = exports.getPaymentAccountByBankAccountId = exports.getPaymentAccountByPaymentAccountId = exports.getPaymentAccountsByPaymentAccountIds = void 0;
7
7
  const get_1 = __importDefault(require("lodash/get"));
8
- const lodash_1 = require("lodash");
8
+ const values_1 = __importDefault(require("lodash/values"));
9
9
  function getPaymentAccountsByPaymentAccountIds(paymentAccountState, paymentAccountIds) {
10
10
  const paymentAccounts = paymentAccountIds
11
11
  .map((paymentAccountId) => getPaymentAccountByPaymentAccountId(paymentAccountState, paymentAccountId))
@@ -18,7 +18,7 @@ function getPaymentAccountByPaymentAccountId(paymentAccountState, PaymentAccount
18
18
  }
19
19
  exports.getPaymentAccountByPaymentAccountId = getPaymentAccountByPaymentAccountId;
20
20
  function getPaymentAccountByBankAccountId(paymentAccountState, bankAccountId) {
21
- const allPaymentAccounts = (0, lodash_1.values)(paymentAccountState.paymentAccountByID);
21
+ const allPaymentAccounts = (0, values_1.default)(paymentAccountState.paymentAccountByID);
22
22
  return allPaymentAccounts.find((account) => account.bankAccountId === bankAccountId);
23
23
  }
24
24
  exports.getPaymentAccountByBankAccountId = getPaymentAccountByBankAccountId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.7.76",
3
+ "version": "4.7.77",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",