@fileverse-dev/formulajs 4.4.11-mod-36-patch-2 → 4.4.11-mod-37
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @fileverse-dev/formulajs v4.4.11-mod-
|
|
1
|
+
/* @fileverse-dev/formulajs v4.4.11-mod-37 */
|
|
2
2
|
var _excluded = [ "confirmations", "dataDecoded" ];
|
|
3
3
|
|
|
4
4
|
function _objectWithoutProperties(e, t) {
|
|
@@ -115,6 +115,10 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
function _readOnlyError(r) {
|
|
119
|
+
throw new TypeError('"' + r + '" is read-only');
|
|
120
|
+
}
|
|
121
|
+
|
|
118
122
|
function _regeneratorRuntime() {
|
|
119
123
|
"use strict";
|
|
120
124
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() {
|
|
@@ -11327,7 +11331,7 @@ function _typeof(o) {
|
|
|
11327
11331
|
while (1) switch (_context5.prev = _context5.next) {
|
|
11328
11332
|
case 0:
|
|
11329
11333
|
if (!chain) {
|
|
11330
|
-
|
|
11334
|
+
"ethereum", _readOnlyError("chain");
|
|
11331
11335
|
}
|
|
11332
11336
|
if (type) {
|
|
11333
11337
|
_context5.next = 3;
|
|
@@ -11341,14 +11345,14 @@ function _typeof(o) {
|
|
|
11341
11345
|
endTimestamp = _argsToArray6[4], page = _argsToArray6[5], offset = _argsToArray6[6];
|
|
11342
11346
|
if (!startTimestamp) {
|
|
11343
11347
|
currentTimestamp = Date.now();
|
|
11344
|
-
|
|
11345
|
-
|
|
11348
|
+
currentTimestamp - 30 * 24 * 60 * 60 * 1e3, _readOnlyError("startTimestamp");
|
|
11349
|
+
Math.floor(startTimestamp / 1e3), _readOnlyError("startTimestamp");
|
|
11346
11350
|
}
|
|
11347
11351
|
if (isNaN(startTimestamp)) {
|
|
11348
|
-
startTimestamp
|
|
11352
|
+
toTimestamp(startTimestamp), _readOnlyError("startTimestamp");
|
|
11349
11353
|
}
|
|
11350
11354
|
if (isNaN(endTimestamp) && endTimestamp) {
|
|
11351
|
-
endTimestamp
|
|
11355
|
+
toTimestamp(endTimestamp), _readOnlyError("endTimestamp");
|
|
11352
11356
|
}
|
|
11353
11357
|
if (isAddress(address)) {
|
|
11354
11358
|
_context5.next = 11;
|
|
@@ -11358,7 +11362,7 @@ function _typeof(o) {
|
|
|
11358
11362
|
return fromEnsNameToAddress(address);
|
|
11359
11363
|
|
|
11360
11364
|
case 10:
|
|
11361
|
-
address
|
|
11365
|
+
_readOnlyError("address");
|
|
11362
11366
|
|
|
11363
11367
|
case 11:
|
|
11364
11368
|
if (address) {
|
|
@@ -12332,7 +12336,7 @@ function _typeof(o) {
|
|
|
12332
12336
|
return fromEnsNameToAddress(address);
|
|
12333
12337
|
|
|
12334
12338
|
case 16:
|
|
12335
|
-
address
|
|
12339
|
+
_readOnlyError("address");
|
|
12336
12340
|
|
|
12337
12341
|
case 17:
|
|
12338
12342
|
if (address) {
|