@keyringnetwork/keyring-connect-sdk 3.0.1 → 3.1.0
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.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/main.js +4 -10
- package/dist/types.d.ts +0 -3
- package/package.json +4 -1
- package/readme.md +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.KeyringConnect = void 0;
|
|
18
|
+
__exportStar(require("@keyringnetwork/contracts-abi"), exports);
|
|
18
19
|
var main_1 = require("./main");
|
|
19
20
|
Object.defineProperty(exports, "KeyringConnect", { enumerable: true, get: function () { return main_1.KeyringConnect; } });
|
|
20
21
|
__exportStar(require("./types"), exports);
|
package/dist/main.js
CHANGED
|
@@ -45,12 +45,9 @@ class KeyringConnect {
|
|
|
45
45
|
*/
|
|
46
46
|
static isKeyringConnectInstalled() {
|
|
47
47
|
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
catch (error) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
48
|
+
return this.getExtensionState()
|
|
49
|
+
.then((state) => (state ? Boolean(state.manifest) : false))
|
|
50
|
+
.catch(() => false);
|
|
54
51
|
});
|
|
55
52
|
}
|
|
56
53
|
/**
|
|
@@ -150,7 +147,7 @@ class KeyringConnect {
|
|
|
150
147
|
return config;
|
|
151
148
|
}
|
|
152
149
|
static convertToLaunchConfig(config) {
|
|
153
|
-
var _a
|
|
150
|
+
var _a;
|
|
154
151
|
const launchConfig = {
|
|
155
152
|
client: {
|
|
156
153
|
client_name: config.name,
|
|
@@ -170,9 +167,6 @@ class KeyringConnect {
|
|
|
170
167
|
}
|
|
171
168
|
: undefined,
|
|
172
169
|
proof_config: config.proof_config,
|
|
173
|
-
session_info: {
|
|
174
|
-
access_token: (_b = config.krn_config) === null || _b === void 0 ? void 0 : _b.keyring_access_token,
|
|
175
|
-
},
|
|
176
170
|
};
|
|
177
171
|
return launchConfig;
|
|
178
172
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -72,9 +72,6 @@ export type ExtensionLaunchConfig = {
|
|
|
72
72
|
notaryUrl?: string;
|
|
73
73
|
websocketProxyUrl?: string;
|
|
74
74
|
};
|
|
75
|
-
session_info?: {
|
|
76
|
-
access_token?: string;
|
|
77
|
-
};
|
|
78
75
|
};
|
|
79
76
|
export type ExtensionStatus = "idle" | "mounted" | "proving" | "prove_error" | "prove_success" | "error";
|
|
80
77
|
export type AttestationStatus = "onboarding_required" | "onboarding_pending" | "attestation_ready" | "non_compliant";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keyringnetwork/keyring-connect-sdk",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "An SDK for interacting with Keyring Connect browser extension",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,5 +19,8 @@
|
|
|
19
19
|
"@types/chrome": "^0.0.268",
|
|
20
20
|
"ts-node": "^10.9.2",
|
|
21
21
|
"typescript": "^5.6.3"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@keyringnetwork/contracts-abi": "2.5.0"
|
|
22
25
|
}
|
|
23
26
|
}
|