@rabby-wallet/rabby-api 0.7.35 → 0.8.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.
@@ -11,16 +11,11 @@ import * as sign from '@rabby-wallet/rabby-sign/umd/sign-wasm-rabby';
11
11
  import { SIGN_HDS } from '../const';
12
12
  function getWebHf() {
13
13
  var _a, _b, _c, _d;
14
- const hf =
15
- // @ts-expect-error
16
- typeof chrome === 'undefined'
14
+ const hf = typeof chrome === 'undefined'
17
15
  ? ''
18
- : // @ts-expect-error
19
- ((_b = (_a = chrome === null || chrome === void 0 ? void 0 : chrome.runtime) === null || _a === void 0 ? void 0 : _a.getURL) === null || _b === void 0 ? void 0 : _b.call(_a, 'bridge.html')) ||
20
- (
21
- // @ts-expect-error
22
- (_d = (_c = chrome === null || chrome === void 0 ? void 0 : chrome.extension) === null || _c === void 0 ? void 0 : _c.getURL) === null || _d === void 0 ? void 0 : _d.call(_c, 'bridge.html')) ||
23
- '';
16
+ : ((_b = (_a = chrome === null || chrome === void 0 ? void 0 : chrome.runtime) === null || _a === void 0 ? void 0 : _a.getURL) === null || _b === void 0 ? void 0 : _b.call(_a, 'bridge.html')) ||
17
+ ((_d = (_c = chrome === null || chrome === void 0 ? void 0 : chrome.extension) === null || _c === void 0 ? void 0 : _c.getURL) === null || _d === void 0 ? void 0 : _d.call(_c, 'bridge.html')) ||
18
+ '';
24
19
  return hf;
25
20
  }
26
21
  export const WebSignApiPlugin = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.7.35",
3
+ "version": "0.8.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -10,7 +10,7 @@
10
10
  "access": "public"
11
11
  },
12
12
  "dependencies": {
13
- "@rabby-wallet/rabby-sign": "^0.3.3",
13
+ "@rabby-wallet/rabby-sign": "0.4.0",
14
14
  "axios": "^0.27.2",
15
15
  "axios-rate-limit": "^1.3.0",
16
16
  "eth-rpc-errors": "^4.0.3",