@reef-knot/wallet-adapter-bitkeep 1.1.1 → 1.2.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 CHANGED
@@ -8,6 +8,8 @@ declare global {
8
8
  };
9
9
  }
10
10
  }
11
+ export declare const id = "bitget";
12
+ export declare const name = "Bitget";
11
13
  export declare class BitgetConnector extends InjectedConnector {
12
14
  readonly id = "bitget";
13
15
  readonly name = "Bitget";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,OAAO,CAAC,EAAE;YACR,QAAQ,CAAC,EAAE,iBAAiB,CAAC;SAC9B,CAAC;KACH;CACF;AAED,qBAAa,eAAgB,SAAQ,iBAAiB;IACpD,QAAQ,CAAC,EAAE,YAAY;IACvB,QAAQ,CAAC,IAAI,YAAY;gBACb,MAAM,EAAE,KAAK,EAAE;CAQ5B;AAED,eAAO,MAAM,MAAM,EAAE,iBAWnB,CAAC;AAIH,eAAO,MAAM,OAAO,mBAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,OAAO,CAAC,EAAE;YACR,QAAQ,CAAC,EAAE,iBAAiB,CAAC;SAC9B,CAAC;KACH;CACF;AAID,eAAO,MAAM,EAAE,WAAW,CAAC;AAC3B,eAAO,MAAM,IAAI,WAAW,CAAC;AAE7B,qBAAa,eAAgB,SAAQ,iBAAiB;IACpD,QAAQ,CAAC,EAAE,YAAM;IACjB,QAAQ,CAAC,IAAI,YAAQ;gBACT,MAAM,EAAE,KAAK,EAAE;CAQ5B;AAED,eAAO,MAAM,MAAM,EAAE,iBASnB,CAAC;AAIH,eAAO,MAAM,OAAO,mBAAS,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,10 @@
1
1
  import { InjectedConnector } from 'wagmi/connectors/injected';
2
2
  import Memo from './icons/bitget.svg.js';
3
3
 
4
+ // The current metrics implementation is based on walletId,
5
+ // using previous "bitkeep" name here not to break metrics
6
+ const id = 'bitget';
7
+ const name = 'Bitget';
4
8
  class BitgetConnector extends InjectedConnector {
5
9
  constructor(chains) {
6
10
  super({
@@ -12,17 +16,15 @@ class BitgetConnector extends InjectedConnector {
12
16
  }
13
17
  }
14
18
  });
15
- this.id = 'bitget';
16
- this.name = 'Bitget';
19
+ this.id = id;
20
+ this.name = name;
17
21
  }
18
22
  }
19
23
  const Bitget = ({
20
24
  chains
21
25
  }) => ({
22
- walletName: 'Bitget',
23
- // The current metrics implementation is based on walletId,
24
- // using previous "bitkeep" name here not to break metrics
25
- walletId: 'bitkeep',
26
+ walletName: name,
27
+ walletId: id,
26
28
  icon: Memo,
27
29
  detector: () => {
28
30
  var _a, _b;
@@ -37,4 +39,4 @@ const Bitget = ({
37
39
  // Exporting the wallet adapter with the old name for compatibility.
38
40
  const BitKeep = Bitget;
39
41
 
40
- export { BitKeep, Bitget, BitgetConnector };
42
+ export { BitKeep, Bitget, BitgetConnector, id, name };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reef-knot/wallet-adapter-bitkeep",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -32,7 +32,7 @@
32
32
  "lint": "eslint --ext ts,tsx,js,mjs ."
33
33
  },
34
34
  "devDependencies": {
35
- "@reef-knot/types": "^1.3.0",
35
+ "@reef-knot/types": "^1.6.0",
36
36
  "@svgr/rollup": "^6.5.1",
37
37
  "eslint-config-custom": "*"
38
38
  },