@fileverse-dev/formulajs 4.4.12-mod-7 → 4.4.12-mod-8

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.
@@ -1,4 +1,4 @@
1
- /* @fileverse-dev/formulajs v4.4.12-mod-7 */
1
+ /* @fileverse-dev/formulajs v4.4.12-mod-8 */
2
2
  var _excluded = [ "confirmations", "dataDecoded" ];
3
3
 
4
4
  function _objectWithoutProperties(e, t) {
@@ -18505,6 +18505,14 @@ function _typeof(o) {
18505
18505
  minute: "2-digit"
18506
18506
  }).format(new Date(item.first_acquired));
18507
18507
  }
18508
+ if (item.historical_prices) {
18509
+ var prices = item.historical_prices;
18510
+ prices.forEach((function(priceData) {
18511
+ var key = "price_" + priceData.offset_hours + "h";
18512
+ var price = priceData.price_usd;
18513
+ item[key] = price;
18514
+ }));
18515
+ }
18508
18516
  return flattenObject(item);
18509
18517
  }));
18510
18518
  return _context33.abrupt("return", result);