@ckb-ccc/connector 0.0.12-alpha.5 → 0.0.12-alpha.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/CHANGELOG.md
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scenes/selecting/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAM5C,qBAAa,cAAe,SAAQ,KAAK;aAErB,UAAU,EAAE,MAAM;aAClB,UAAU,EAAE,MAAM;gBADlB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM;CAIrC;AAED,qBACa,cAAe,SAAQ,UAAU;IAErC,OAAO,CAAC,EAAE,GAAG,CAAC,iBAAiB,EAAE,CAAC;IAGzC,OAAO,CAAC,cAAc,CAAC,CAAwB;IAE/C,OAAO,CAAC,cAAc,CAAC,CAAiB;IAExC,OAAO,CAAC,eAAe,CAAC,CAAS;IAEjC,MAAM;IA+CC,OAAO;IAMd,OAAO,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scenes/selecting/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAM5C,qBAAa,cAAe,SAAQ,KAAK;aAErB,UAAU,EAAE,MAAM;aAClB,UAAU,EAAE,MAAM;gBADlB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM;CAIrC;AAED,qBACa,cAAe,SAAQ,UAAU;IAErC,OAAO,CAAC,EAAE,GAAG,CAAC,iBAAiB,EAAE,CAAC;IAGzC,OAAO,CAAC,cAAc,CAAC,CAAwB;IAE/C,OAAO,CAAC,cAAc,CAAC,CAAiB;IAExC,OAAO,CAAC,eAAe,CAAC,CAAS;IAEjC,MAAM;IA+CC,OAAO;IAMd,OAAO,CAAC,qBAAqB,CAwC3B;IAEF,MAAM,CAAC,MAAM,0BAsDX;IAEF,OAAO;CAGR"}
|
|
@@ -27,6 +27,10 @@ let SelectingScene = class SelectingScene extends LitElement {
|
|
|
27
27
|
const { signer } = signerInfo;
|
|
28
28
|
try {
|
|
29
29
|
await signer.connect();
|
|
30
|
+
if (!(await signer.isConnected())) {
|
|
31
|
+
this.connectingError = "Unknown connection status";
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
30
34
|
}
|
|
31
35
|
catch (error) {
|
|
32
36
|
if (typeof error !== "object" || error === null) {
|
|
@@ -43,8 +47,6 @@ let SelectingScene = class SelectingScene extends LitElement {
|
|
|
43
47
|
return;
|
|
44
48
|
}
|
|
45
49
|
this.connectingError = JSON.stringify(message);
|
|
46
|
-
}
|
|
47
|
-
if (!(await signer.isConnected())) {
|
|
48
50
|
return;
|
|
49
51
|
}
|
|
50
52
|
this.dispatchEvent(new Event("close", { bubbles: true, composed: true }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckb-ccc/connector",
|
|
3
|
-
"version": "0.0.12-alpha.
|
|
3
|
+
"version": "0.0.12-alpha.7",
|
|
4
4
|
"description": "CCC - CKBer's Codebase. Common Chains Connector UI",
|
|
5
5
|
"author": "Hanssen0 <hanssen0@hanssen0.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,11 +18,6 @@
|
|
|
18
18
|
"./advancedBarrel": "./dist/advancedBarrel.js",
|
|
19
19
|
"./advanced": "./dist/advanced.js"
|
|
20
20
|
},
|
|
21
|
-
"scripts": {
|
|
22
|
-
"build": "rimraf ./dist && tsc",
|
|
23
|
-
"lint": "eslint",
|
|
24
|
-
"format": "prettier --write . && eslint --fix"
|
|
25
|
-
},
|
|
26
21
|
"devDependencies": {
|
|
27
22
|
"@eslint/js": "^9.1.1",
|
|
28
23
|
"eslint": "^9.1.0",
|
|
@@ -38,8 +33,12 @@
|
|
|
38
33
|
"access": "public"
|
|
39
34
|
},
|
|
40
35
|
"dependencies": {
|
|
41
|
-
"
|
|
42
|
-
"
|
|
36
|
+
"lit": "^3.1.3",
|
|
37
|
+
"@ckb-ccc/ccc": "0.0.12-alpha.7"
|
|
43
38
|
},
|
|
44
|
-
"
|
|
45
|
-
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "rimraf ./dist && tsc",
|
|
41
|
+
"lint": "eslint",
|
|
42
|
+
"format": "prettier --write . && eslint --fix"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -90,6 +90,11 @@ export class SelectingScene extends LitElement {
|
|
|
90
90
|
const { signer } = signerInfo;
|
|
91
91
|
try {
|
|
92
92
|
await signer.connect();
|
|
93
|
+
|
|
94
|
+
if (!(await signer.isConnected())) {
|
|
95
|
+
this.connectingError = "Unknown connection status";
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
93
98
|
} catch (error) {
|
|
94
99
|
if (typeof error !== "object" || error === null) {
|
|
95
100
|
this.connectingError = JSON.stringify(error);
|
|
@@ -108,8 +113,6 @@ export class SelectingScene extends LitElement {
|
|
|
108
113
|
}
|
|
109
114
|
|
|
110
115
|
this.connectingError = JSON.stringify(message);
|
|
111
|
-
}
|
|
112
|
-
if (!(await signer.isConnected())) {
|
|
113
116
|
return;
|
|
114
117
|
}
|
|
115
118
|
|