@fileverse-dev/formulajs 4.4.11-mod-86-patch-2 → 4.4.11-mod-87
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 +16 -47
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +9 -26
- package/lib/esm/crypto-constants.mjs +1 -1
- package/lib/esm/index.mjs +9 -26
- package/package.json +1 -1
- package/types/cjs/index.d.cts +3 -5
- package/types/esm/index.d.mts +3 -5
package/lib/browser/formula.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
/* @fileverse-dev/formulajs v4.4.11-mod-
|
|
1
|
+
/* @fileverse-dev/formulajs v4.4.11-mod-87 */
|
|
2
2
|
var _excluded = [ "confirmations", "dataDecoded" ];
|
|
3
3
|
|
|
4
|
-
function _toArray(r) {
|
|
5
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
6
|
-
}
|
|
7
|
-
|
|
8
4
|
function _objectWithoutProperties(e, t) {
|
|
9
5
|
if (null == e) return {};
|
|
10
6
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -18248,53 +18244,26 @@ function _typeof(o) {
|
|
|
18248
18244
|
})));
|
|
18249
18245
|
return _UNISWAP.apply(this, arguments);
|
|
18250
18246
|
}
|
|
18251
|
-
var smartContractSchema = arrayType(anyType()).refine((function(args) {
|
|
18252
|
-
return args.length >= 2 && typeof args[0] === "string" && typeof args[1] === "string";
|
|
18253
|
-
}), {
|
|
18254
|
-
message: "First two arguments must be strings: contractName and functionName"
|
|
18255
|
-
});
|
|
18256
18247
|
function SMARTCONTRACT() {
|
|
18257
|
-
|
|
18258
|
-
|
|
18259
|
-
|
|
18260
|
-
|
|
18261
|
-
|
|
18262
|
-
|
|
18263
|
-
|
|
18264
|
-
|
|
18265
|
-
|
|
18266
|
-
_argsToArray29 = argsToArray(_args30), _argsToArray30 = _toArray(_argsToArray29),
|
|
18267
|
-
contractName = _argsToArray30[0], functionName = _argsToArray30[1], args = _argsToArray30.slice(2);
|
|
18268
|
-
validateParams(smartContractSchema, [ contractName, functionName ].concat(_toConsumableArray(args)));
|
|
18269
|
-
return _context30.abrupt("return", {
|
|
18270
|
-
contractName: contractName,
|
|
18271
|
-
functionName: functionName,
|
|
18272
|
-
args: args,
|
|
18273
|
-
responseType: "smart-contract"
|
|
18274
|
-
});
|
|
18275
|
-
|
|
18276
|
-
case 6:
|
|
18277
|
-
_context30.prev = 6;
|
|
18278
|
-
_context30.t0 = _context30["catch"](0);
|
|
18279
|
-
return _context30.abrupt("return", errorMessageHandler(_context30.t0, "SMARTCONTRACT"));
|
|
18280
|
-
|
|
18281
|
-
case 9:
|
|
18282
|
-
case "end":
|
|
18283
|
-
return _context30.stop();
|
|
18284
|
-
}
|
|
18285
|
-
}), _callee27, null, [ [ 0, 6 ] ]);
|
|
18286
|
-
})));
|
|
18287
|
-
return _SMARTCONTRACT.apply(this, arguments);
|
|
18248
|
+
try {
|
|
18249
|
+
var args = argsToArray(arguments);
|
|
18250
|
+
return {
|
|
18251
|
+
callSignature: args,
|
|
18252
|
+
responseType: "smart-contract"
|
|
18253
|
+
};
|
|
18254
|
+
} catch (error) {
|
|
18255
|
+
return errorMessageHandler(error, "SMARTCONTRACT");
|
|
18256
|
+
}
|
|
18288
18257
|
}
|
|
18289
18258
|
function FLVURL() {
|
|
18290
18259
|
return _FLVURL.apply(this, arguments);
|
|
18291
18260
|
}
|
|
18292
18261
|
function _FLVURL() {
|
|
18293
|
-
_FLVURL = _asyncToGenerator(_regeneratorRuntime().mark((function
|
|
18294
|
-
return _regeneratorRuntime().wrap((function
|
|
18295
|
-
while (1) switch (
|
|
18262
|
+
_FLVURL = _asyncToGenerator(_regeneratorRuntime().mark((function _callee27() {
|
|
18263
|
+
return _regeneratorRuntime().wrap((function _callee27$(_context30) {
|
|
18264
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
18296
18265
|
case 0:
|
|
18297
|
-
return
|
|
18266
|
+
return _context30.abrupt("return", new Promise((function(resolve) {
|
|
18298
18267
|
setTimeout((function() {
|
|
18299
18268
|
resolve([ {
|
|
18300
18269
|
Yoo: "gotcha"
|
|
@@ -18304,9 +18273,9 @@ function _typeof(o) {
|
|
|
18304
18273
|
|
|
18305
18274
|
case 1:
|
|
18306
18275
|
case "end":
|
|
18307
|
-
return
|
|
18276
|
+
return _context30.stop();
|
|
18308
18277
|
}
|
|
18309
|
-
}),
|
|
18278
|
+
}), _callee27);
|
|
18310
18279
|
})));
|
|
18311
18280
|
return _FLVURL.apply(this, arguments);
|
|
18312
18281
|
}
|