@fileverse-dev/formulajs 4.4.11-mod-43 → 4.4.11-mod-45
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/lib/browser/formula.js +9 -10
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +9 -10
- package/lib/esm/crypto-constants.mjs +6 -34
- package/lib/esm/index.mjs +9 -10
- package/package.json +1 -1
package/lib/browser/formula.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @fileverse-dev/formulajs v4.4.11-mod-
|
|
1
|
+
/* @fileverse-dev/formulajs v4.4.11-mod-45 */
|
|
2
2
|
var _excluded = [ "confirmations", "dataDecoded" ];
|
|
3
3
|
|
|
4
4
|
function _objectWithoutProperties(e, t) {
|
|
@@ -115,10 +115,6 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
function _readOnlyError(r) {
|
|
119
|
-
throw new TypeError('"' + r + '" is read-only');
|
|
120
|
-
}
|
|
121
|
-
|
|
122
118
|
function _regeneratorRuntime() {
|
|
123
119
|
"use strict";
|
|
124
120
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() {
|
|
@@ -11747,7 +11743,7 @@ function _typeof(o) {
|
|
|
11747
11743
|
}
|
|
11748
11744
|
function _COINGECKO() {
|
|
11749
11745
|
_COINGECKO = _asyncToGenerator(_regeneratorRuntime().mark((function _callee1(category, param1, param2) {
|
|
11750
|
-
var API_KEY, headers, url, lowerCategory,
|
|
11746
|
+
var API_KEY, headers, url, lowerCategory, token, vsCurrencies, ecosystemMap, key, categoryVal, trend, _category, _trend, exchange, response, json, _json$status, message, output, _i11, _Object$entries2, _Object$entries2$_i, _token, prices, _i12, _Object$entries3, _Object$entries3$_i, currency, _value6, _key3, _data, flatArray;
|
|
11751
11747
|
return _regeneratorRuntime().wrap((function _callee1$(_context1) {
|
|
11752
11748
|
while (1) switch (_context1.prev = _context1.next) {
|
|
11753
11749
|
case 0:
|
|
@@ -11770,9 +11766,9 @@ function _typeof(o) {
|
|
|
11770
11766
|
break;
|
|
11771
11767
|
|
|
11772
11768
|
case 9:
|
|
11773
|
-
|
|
11774
|
-
|
|
11775
|
-
if (
|
|
11769
|
+
token = param1;
|
|
11770
|
+
vsCurrencies = param2;
|
|
11771
|
+
if (token) {
|
|
11776
11772
|
_context1.next = 13;
|
|
11777
11773
|
break;
|
|
11778
11774
|
}
|
|
@@ -11882,8 +11878,11 @@ function _typeof(o) {
|
|
|
11882
11878
|
case 50:
|
|
11883
11879
|
_data = json;
|
|
11884
11880
|
if (lowerCategory === "derivatives") {
|
|
11881
|
+
if (json.length > 200) {
|
|
11882
|
+
_data = json.slice(0, 200);
|
|
11883
|
+
}
|
|
11885
11884
|
if (json && json.tickers && json.tickers.tickers) {
|
|
11886
|
-
json.tickers.tickers,
|
|
11885
|
+
_data = json.tickers.tickers.slice(0, 200);
|
|
11887
11886
|
}
|
|
11888
11887
|
}
|
|
11889
11888
|
flatArray = Array.isArray(_data) ? _data : [ _data ];
|