@provablehq/aleo-wallet-adaptor-puzzle 0.3.0-alpha.0 → 0.3.0-alpha.1
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/index.js +0 -3
- package/dist/index.mjs +0 -3
- package/package.json +4 -4
- package/src/PuzzleWalletAdapter.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -87,11 +87,9 @@ var PuzzleWalletAdapter = class extends import_aleo_wallet_adaptor_core.BaseAleo
|
|
|
87
87
|
* Check if Puzzle wallet is available
|
|
88
88
|
*/
|
|
89
89
|
_checkAvailability() {
|
|
90
|
-
console.debug("Checking Puzzle Wallet availability");
|
|
91
90
|
this._window = window;
|
|
92
91
|
if (this._window.puzzle) {
|
|
93
92
|
this.readyState = import_aleo_wallet_standard.WalletReadyState.INSTALLED;
|
|
94
|
-
console.debug("Puzzle Wallet is installed");
|
|
95
93
|
return true;
|
|
96
94
|
} else {
|
|
97
95
|
const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
|
|
@@ -99,7 +97,6 @@ var PuzzleWalletAdapter = class extends import_aleo_wallet_adaptor_core.BaseAleo
|
|
|
99
97
|
this.readyState = import_aleo_wallet_standard.WalletReadyState.LOADABLE;
|
|
100
98
|
return true;
|
|
101
99
|
}
|
|
102
|
-
console.debug("Puzzle Wallet is not available");
|
|
103
100
|
return false;
|
|
104
101
|
}
|
|
105
102
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -88,11 +88,9 @@ var PuzzleWalletAdapter = class extends BaseAleoWalletAdapter {
|
|
|
88
88
|
* Check if Puzzle wallet is available
|
|
89
89
|
*/
|
|
90
90
|
_checkAvailability() {
|
|
91
|
-
console.debug("Checking Puzzle Wallet availability");
|
|
92
91
|
this._window = window;
|
|
93
92
|
if (this._window.puzzle) {
|
|
94
93
|
this.readyState = WalletReadyState.INSTALLED;
|
|
95
|
-
console.debug("Puzzle Wallet is installed");
|
|
96
94
|
return true;
|
|
97
95
|
} else {
|
|
98
96
|
const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
|
|
@@ -100,7 +98,6 @@ var PuzzleWalletAdapter = class extends BaseAleoWalletAdapter {
|
|
|
100
98
|
this.readyState = WalletReadyState.LOADABLE;
|
|
101
99
|
return true;
|
|
102
100
|
}
|
|
103
|
-
console.debug("Puzzle Wallet is not available");
|
|
104
101
|
return false;
|
|
105
102
|
}
|
|
106
103
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provablehq/aleo-wallet-adaptor-puzzle",
|
|
3
|
-
"version": "0.3.0-alpha.
|
|
3
|
+
"version": "0.3.0-alpha.1",
|
|
4
4
|
"description": "Puzzle wallet adapter for Aleo",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@puzzlehq/sdk-core": "^1.0.3",
|
|
15
|
-
"@provablehq/aleo-wallet-
|
|
16
|
-
"@provablehq/aleo-
|
|
17
|
-
"@provablehq/aleo-
|
|
15
|
+
"@provablehq/aleo-wallet-adaptor-core": "0.3.0-alpha.1",
|
|
16
|
+
"@provablehq/aleo-types": "0.3.0-alpha.1",
|
|
17
|
+
"@provablehq/aleo-wallet-standard": "0.3.0-alpha.1"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
@@ -114,12 +114,10 @@ export class PuzzleWalletAdapter extends BaseAleoWalletAdapter {
|
|
|
114
114
|
* Check if Puzzle wallet is available
|
|
115
115
|
*/
|
|
116
116
|
private _checkAvailability(): boolean {
|
|
117
|
-
console.debug('Checking Puzzle Wallet availability');
|
|
118
117
|
this._window = window as PuzzleWindow;
|
|
119
118
|
|
|
120
119
|
if (this._window.puzzle) {
|
|
121
120
|
this.readyState = WalletReadyState.INSTALLED;
|
|
122
|
-
console.debug('Puzzle Wallet is installed');
|
|
123
121
|
return true;
|
|
124
122
|
} else {
|
|
125
123
|
// Check if user is on a mobile device
|
|
@@ -128,7 +126,6 @@ export class PuzzleWalletAdapter extends BaseAleoWalletAdapter {
|
|
|
128
126
|
this.readyState = WalletReadyState.LOADABLE;
|
|
129
127
|
return true;
|
|
130
128
|
}
|
|
131
|
-
console.debug('Puzzle Wallet is not available');
|
|
132
129
|
return false;
|
|
133
130
|
}
|
|
134
131
|
}
|