@hinkal/common 0.0.134 → 0.0.136
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/index.mjs +13 -22
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -276557,28 +276557,21 @@ var doEval = function C(I) {
|
|
|
276557
276557
|
}
|
|
276558
276558
|
}
|
|
276559
276559
|
return B;
|
|
276560
|
-
}, callBind$2 = { exports: {} },
|
|
276561
|
-
|
|
276562
|
-
|
|
276563
|
-
|
|
276564
|
-
|
|
276565
|
-
|
|
276566
|
-
|
|
276567
|
-
|
|
276568
|
-
I({}, "a", { value: 1 });
|
|
276569
|
-
} catch {
|
|
276570
|
-
I = !1;
|
|
276571
|
-
}
|
|
276572
|
-
return esDefineProperty = I, esDefineProperty;
|
|
276573
|
-
}
|
|
276574
|
-
var GetIntrinsic$2 = getIntrinsic, $gOPD = GetIntrinsic$2("%Object.getOwnPropertyDescriptor%", !0);
|
|
276560
|
+
}, callBind$2 = { exports: {} }, GetIntrinsic$3 = getIntrinsic, $defineProperty$2 = GetIntrinsic$3("%Object.defineProperty%", !0) || !1;
|
|
276561
|
+
if ($defineProperty$2)
|
|
276562
|
+
try {
|
|
276563
|
+
$defineProperty$2({}, "a", { value: 1 });
|
|
276564
|
+
} catch {
|
|
276565
|
+
$defineProperty$2 = !1;
|
|
276566
|
+
}
|
|
276567
|
+
var esDefineProperty = $defineProperty$2, GetIntrinsic$2 = getIntrinsic, $gOPD = GetIntrinsic$2("%Object.getOwnPropertyDescriptor%", !0);
|
|
276575
276568
|
if ($gOPD)
|
|
276576
276569
|
try {
|
|
276577
276570
|
$gOPD([], "length");
|
|
276578
276571
|
} catch {
|
|
276579
276572
|
$gOPD = null;
|
|
276580
276573
|
}
|
|
276581
|
-
var gopd$1 = $gOPD, $defineProperty$1 =
|
|
276574
|
+
var gopd$1 = $gOPD, $defineProperty$1 = esDefineProperty, $SyntaxError = syntax, $TypeError$1 = type, gopd = gopd$1, defineDataProperty$1 = function(I, l, Z) {
|
|
276582
276575
|
if (!I || typeof I != "object" && typeof I != "function")
|
|
276583
276576
|
throw new $TypeError$1("`obj` must be an object or a function`");
|
|
276584
276577
|
if (typeof l != "string" && typeof l != "symbol")
|
|
@@ -276603,7 +276596,7 @@ var gopd$1 = $gOPD, $defineProperty$1 = requireEsDefineProperty(), $SyntaxError
|
|
|
276603
276596
|
I[l] = Z;
|
|
276604
276597
|
else
|
|
276605
276598
|
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
276606
|
-
}, $defineProperty =
|
|
276599
|
+
}, $defineProperty = esDefineProperty, hasPropertyDescriptors = function() {
|
|
276607
276600
|
return !!$defineProperty;
|
|
276608
276601
|
};
|
|
276609
276602
|
hasPropertyDescriptors.hasArrayLengthDefineBug = function() {
|
|
@@ -276640,7 +276633,7 @@ var hasPropertyDescriptors_1 = hasPropertyDescriptors, GetIntrinsic$1 = getIntri
|
|
|
276640
276633
|
)), I;
|
|
276641
276634
|
};
|
|
276642
276635
|
(function(C) {
|
|
276643
|
-
var I = functionBind, l = getIntrinsic, Z = setFunctionLength, d = type, W = l("%Function.prototype.apply%"), T = l("%Function.prototype.call%"), B = l("%Reflect.apply%", !0) || I.call(T, W), o =
|
|
276636
|
+
var I = functionBind, l = getIntrinsic, Z = setFunctionLength, d = type, W = l("%Function.prototype.apply%"), T = l("%Function.prototype.call%"), B = l("%Reflect.apply%", !0) || I.call(T, W), o = esDefineProperty, D = l("%Math.max%");
|
|
276644
276637
|
C.exports = function(S) {
|
|
276645
276638
|
if (typeof S != "function")
|
|
276646
276639
|
throw new d("a function is required");
|
|
@@ -413821,12 +413814,10 @@ class Wagmiv1ProviderAdapter {
|
|
|
413821
413814
|
this.release(), await disconnect();
|
|
413822
413815
|
}
|
|
413823
413816
|
async connectToConnector(I) {
|
|
413824
|
-
const { isConnected: l } = getAccount();
|
|
413825
|
-
l && await this.disconnectFromConnector();
|
|
413826
413817
|
try {
|
|
413827
413818
|
return (await connect({ connector: I })).chain.id;
|
|
413828
|
-
} catch {
|
|
413829
|
-
throw new Error(transactionErrorCodes.CONNECTION_FAILED);
|
|
413819
|
+
} catch (l) {
|
|
413820
|
+
throw console.log("Provider Adapter Connection Error", { err: l }), new Error(transactionErrorCodes.CONNECTION_FAILED);
|
|
413830
413821
|
}
|
|
413831
413822
|
}
|
|
413832
413823
|
async waitForTransaction(I, l) {
|