@barchart/portfolio-api-common 1.2.70 → 1.2.71

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.
@@ -30,7 +30,6 @@ module.exports = (() => {
30
30
  * @static
31
31
  * @param {Array.<Object>} transactions
32
32
  * @param {Array.<Object>} positions
33
- * @param {Boolean=} mutate
34
33
  * @param {Boolean=} descending
35
34
  * @returns {Array}
36
35
  */
@@ -70,17 +69,7 @@ module.exports = (() => {
70
69
  formatted = Object.assign({}, formatted, formattedTransaction);
71
70
  }
72
71
 
73
- let transactionToInsert;
74
-
75
- if (mutate) {
76
- transaction.formatted = formatted;
77
-
78
- transactionToInsert = transaction;
79
- } else {
80
- transactionToInsert = formatted;
81
- }
82
-
83
- list.push(transactionToInsert);
72
+ list.push(formatted);
84
73
  }
85
74
 
86
75
  return list;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.2.70",
3
+ "version": "1.2.71",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",