@keyringnetwork/keyring-connect-sdk 0.0.5 → 0.0.7
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/main.js +5 -7
- package/package.json +1 -1
- package/readme.md +1 -0
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +0 -4
- package/dist/env.d.ts +0 -3
- package/dist/env.js +0 -6
package/dist/main.js
CHANGED
|
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.KeyringConnect = void 0;
|
|
13
|
-
const env_1 = require("./env");
|
|
14
13
|
const types_1 = require("./types");
|
|
15
14
|
class KeyringConnect {
|
|
16
15
|
static launchExtension(data) {
|
|
@@ -26,12 +25,11 @@ class KeyringConnect {
|
|
|
26
25
|
static isKeyringConnectInstalled() {
|
|
27
26
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
27
|
try {
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return false;
|
|
28
|
+
const timeout = new Promise((resolve) => {
|
|
29
|
+
setTimeout(() => resolve(false), 2000);
|
|
30
|
+
});
|
|
31
|
+
const checkExtension = this.getExtensionState().then((state) => Boolean(state.manifest));
|
|
32
|
+
return Promise.race([timeout, checkExtension]);
|
|
35
33
|
}
|
|
36
34
|
catch (error) {
|
|
37
35
|
return false;
|
package/package.json
CHANGED
package/readme.md
CHANGED
package/dist/constants.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EXTENSION_ID = "pninfjlkopblipjddjdannflkbdkcmpi";
|
package/dist/constants.js
DELETED
package/dist/env.d.ts
DELETED