@exodus/ethereum-api 6.2.19 → 6.2.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "6.2.19",
3
+ "version": "6.2.21",
4
4
  "description": "Ethereum Api",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@exodus/asset-lib": "^3.7.1",
18
18
  "@exodus/crypto": "^1.0.0-rc.0",
19
- "@exodus/ethereum-lib": "^3.3.10",
19
+ "@exodus/ethereum-lib": "^3.3.12",
20
20
  "@exodus/ethereumjs-util": "^7.1.0-exodus.6",
21
21
  "@exodus/fetch": "^1.2.1",
22
22
  "@exodus/simple-retry": "^0.0.6",
@@ -29,12 +29,11 @@
29
29
  "minimalistic-assert": "^1.0.1",
30
30
  "ms": "^2.1.1",
31
31
  "socket.io-client": "2.1.1",
32
- "url": "0.10.3",
33
32
  "url-join": "4.0.0",
34
33
  "ws": "^6.1.0"
35
34
  },
36
35
  "devDependencies": {
37
36
  "@exodus/models": "^8.10.4"
38
37
  },
39
- "gitHead": "871b16207d864493cd6251ee1e35fe456b8a05e6"
38
+ "gitHead": "516bfb4ee826b72710dd20a9c16ea21346fffeff"
40
39
  }
@@ -1,5 +1,4 @@
1
1
  import urlJoin from 'url-join'
2
- import url from 'url'
3
2
  import ms from 'ms'
4
3
  import BN from 'bn.js'
5
4
  import createWebSocket from './ws'
@@ -14,10 +13,9 @@ const RETRY_DELAYS = ['10s']
14
13
  export function create(defaultURL, ensAssetName) {
15
14
  let API_URL = defaultURL
16
15
  const ws = createWebSocket(() => {
17
- // eslint-disable-next-line
18
- const obj = url.parse(API_URL)
16
+ const obj = new URL(API_URL)
19
17
  obj.protocol = 'wss:'
20
- return url.format(obj)
18
+ return `${obj}`
21
19
  })
22
20
 
23
21
  async function request(module, params = {}, { version = 'v1', method = 'get' } = {}) {