@depay/web3-wallets-evm 18.1.4 → 18.1.6
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/dist/esm/index.evm.js +10 -1
- package/dist/esm/index.js +10 -1
- package/dist/umd/index.evm.js +10 -1
- package/dist/umd/index.js +10 -1
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -1970,6 +1970,8 @@ class MiniKit {
|
|
|
1970
1970
|
|
|
1971
1971
|
function _optionalChain$1(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
1972
1972
|
|
|
1973
|
+
const STORAGE_KEY = '_DePayWorldAppAddressV1';
|
|
1974
|
+
|
|
1973
1975
|
class WorldApp {
|
|
1974
1976
|
|
|
1975
1977
|
static __initStatic() {this.MiniKit = MiniKit;}
|
|
@@ -2142,6 +2144,9 @@ class WorldApp {
|
|
|
2142
2144
|
}
|
|
2143
2145
|
|
|
2144
2146
|
walletAddress() {
|
|
2147
|
+
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2148
|
+
return localStorage.getItem(STORAGE_KEY)
|
|
2149
|
+
}
|
|
2145
2150
|
return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
|
|
2146
2151
|
}
|
|
2147
2152
|
|
|
@@ -2158,7 +2163,11 @@ class WorldApp {
|
|
|
2158
2163
|
if (payload.status === "error") {
|
|
2159
2164
|
return reject(payload.message)
|
|
2160
2165
|
} else {
|
|
2161
|
-
|
|
2166
|
+
let walletAddress = this.walletAddress();
|
|
2167
|
+
if(walletAddress && walletAddress.length) {
|
|
2168
|
+
localStorage.setItem(STORAGE_KEY, walletAddress);
|
|
2169
|
+
}
|
|
2170
|
+
return resolve(walletAddress)
|
|
2162
2171
|
}
|
|
2163
2172
|
});
|
|
2164
2173
|
|
package/dist/esm/index.js
CHANGED
|
@@ -2571,6 +2571,8 @@ class MiniKit {
|
|
|
2571
2571
|
|
|
2572
2572
|
function _optionalChain$1(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2573
2573
|
|
|
2574
|
+
const STORAGE_KEY = '_DePayWorldAppAddressV1';
|
|
2575
|
+
|
|
2574
2576
|
class WorldApp {
|
|
2575
2577
|
|
|
2576
2578
|
static __initStatic() {this.MiniKit = MiniKit;}
|
|
@@ -2743,6 +2745,9 @@ class WorldApp {
|
|
|
2743
2745
|
}
|
|
2744
2746
|
|
|
2745
2747
|
walletAddress() {
|
|
2748
|
+
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2749
|
+
return localStorage.getItem(STORAGE_KEY)
|
|
2750
|
+
}
|
|
2746
2751
|
return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
|
|
2747
2752
|
}
|
|
2748
2753
|
|
|
@@ -2759,7 +2764,11 @@ class WorldApp {
|
|
|
2759
2764
|
if (payload.status === "error") {
|
|
2760
2765
|
return reject(payload.message)
|
|
2761
2766
|
} else {
|
|
2762
|
-
|
|
2767
|
+
let walletAddress = this.walletAddress();
|
|
2768
|
+
if(walletAddress && walletAddress.length) {
|
|
2769
|
+
localStorage.setItem(STORAGE_KEY, walletAddress);
|
|
2770
|
+
}
|
|
2771
|
+
return resolve(walletAddress)
|
|
2763
2772
|
}
|
|
2764
2773
|
});
|
|
2765
2774
|
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -1974,6 +1974,8 @@
|
|
|
1974
1974
|
|
|
1975
1975
|
function _optionalChain$1(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
1976
1976
|
|
|
1977
|
+
const STORAGE_KEY = '_DePayWorldAppAddressV1';
|
|
1978
|
+
|
|
1977
1979
|
class WorldApp {
|
|
1978
1980
|
|
|
1979
1981
|
static __initStatic() {this.MiniKit = MiniKit;}
|
|
@@ -2146,6 +2148,9 @@
|
|
|
2146
2148
|
}
|
|
2147
2149
|
|
|
2148
2150
|
walletAddress() {
|
|
2151
|
+
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2152
|
+
return localStorage.getItem(STORAGE_KEY)
|
|
2153
|
+
}
|
|
2149
2154
|
return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
|
|
2150
2155
|
}
|
|
2151
2156
|
|
|
@@ -2162,7 +2167,11 @@
|
|
|
2162
2167
|
if (payload.status === "error") {
|
|
2163
2168
|
return reject(payload.message)
|
|
2164
2169
|
} else {
|
|
2165
|
-
|
|
2170
|
+
let walletAddress = this.walletAddress();
|
|
2171
|
+
if(walletAddress && walletAddress.length) {
|
|
2172
|
+
localStorage.setItem(STORAGE_KEY, walletAddress);
|
|
2173
|
+
}
|
|
2174
|
+
return resolve(walletAddress)
|
|
2166
2175
|
}
|
|
2167
2176
|
});
|
|
2168
2177
|
|
package/dist/umd/index.js
CHANGED
|
@@ -2574,6 +2574,8 @@
|
|
|
2574
2574
|
|
|
2575
2575
|
function _optionalChain$1(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2576
2576
|
|
|
2577
|
+
const STORAGE_KEY = '_DePayWorldAppAddressV1';
|
|
2578
|
+
|
|
2577
2579
|
class WorldApp {
|
|
2578
2580
|
|
|
2579
2581
|
static __initStatic() {this.MiniKit = MiniKit;}
|
|
@@ -2746,6 +2748,9 @@
|
|
|
2746
2748
|
}
|
|
2747
2749
|
|
|
2748
2750
|
walletAddress() {
|
|
2751
|
+
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2752
|
+
return localStorage.getItem(STORAGE_KEY)
|
|
2753
|
+
}
|
|
2749
2754
|
return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
|
|
2750
2755
|
}
|
|
2751
2756
|
|
|
@@ -2762,7 +2767,11 @@
|
|
|
2762
2767
|
if (payload.status === "error") {
|
|
2763
2768
|
return reject(payload.message)
|
|
2764
2769
|
} else {
|
|
2765
|
-
|
|
2770
|
+
let walletAddress = this.walletAddress();
|
|
2771
|
+
if(walletAddress && walletAddress.length) {
|
|
2772
|
+
localStorage.setItem(STORAGE_KEY, walletAddress);
|
|
2773
|
+
}
|
|
2774
|
+
return resolve(walletAddress)
|
|
2766
2775
|
}
|
|
2767
2776
|
});
|
|
2768
2777
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/web3-wallets-evm",
|
|
3
3
|
"moduleName": "Web3Wallets",
|
|
4
|
-
"version": "18.1.
|
|
4
|
+
"version": "18.1.6",
|
|
5
5
|
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
|
|
6
6
|
"main": "dist/umd/index.evm.js",
|
|
7
7
|
"module": "dist/esm/index.evm.js",
|