@ckb-ccc/joy-id 0.0.5-alpha.2 → 0.0.5-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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/signerFactory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/signerFactory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAMpC,wBAAgB,eAAe,CAC7B,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,GAAG,CAAC,UAAU,EAAE,CA2BlB"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { isStandaloneBrowser } from "@joyid/common";
|
|
1
2
|
import { BitcoinSigner } from "../btc";
|
|
2
3
|
import { CkbSigner } from "../ckb";
|
|
3
4
|
import { EvmSigner } from "../evm";
|
|
4
5
|
export function getJoyIdSigners(client, name, icon) {
|
|
6
|
+
if (isStandaloneBrowser()) {
|
|
7
|
+
return [];
|
|
8
|
+
}
|
|
5
9
|
return [
|
|
6
10
|
{
|
|
7
11
|
name: "CKB",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/signerFactory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/signerFactory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAMpC,wBAAgB,eAAe,CAC7B,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,GAAG,CAAC,UAAU,EAAE,CA2BlB"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getJoyIdSigners = void 0;
|
|
4
|
+
const common_1 = require("@joyid/common");
|
|
4
5
|
const btc_1 = require("../btc");
|
|
5
6
|
const ckb_1 = require("../ckb");
|
|
6
7
|
const evm_1 = require("../evm");
|
|
7
8
|
function getJoyIdSigners(client, name, icon) {
|
|
9
|
+
if ((0, common_1.isStandaloneBrowser)()) {
|
|
10
|
+
return [];
|
|
11
|
+
}
|
|
8
12
|
return [
|
|
9
13
|
{
|
|
10
14
|
name: "CKB",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckb-ccc/joy-id",
|
|
3
|
-
"version": "0.0.5-alpha.
|
|
3
|
+
"version": "0.0.5-alpha.7",
|
|
4
4
|
"description": "Connector's support for JoyID",
|
|
5
5
|
"author": "Hanssen0 <hanssen0@hanssen0.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@joyid/ckb": "^0.0.11",
|
|
43
43
|
"@joyid/common": "^0.0.3"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "efbdcebedb8375237b3dd98be358ca7df9765cfd"
|
|
46
46
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ccc } from "@ckb-ccc/core";
|
|
2
|
+
import { isStandaloneBrowser } from "@joyid/common";
|
|
2
3
|
import { BitcoinSigner } from "../btc";
|
|
3
4
|
import { CkbSigner } from "../ckb";
|
|
4
5
|
import { EvmSigner } from "../evm";
|
|
@@ -8,6 +9,10 @@ export function getJoyIdSigners(
|
|
|
8
9
|
name: string,
|
|
9
10
|
icon: string,
|
|
10
11
|
): ccc.SignerInfo[] {
|
|
12
|
+
if (isStandaloneBrowser()) {
|
|
13
|
+
return [];
|
|
14
|
+
}
|
|
15
|
+
|
|
11
16
|
return [
|
|
12
17
|
{
|
|
13
18
|
name: "CKB",
|