@abtnode/util 1.16.11-next-8a4df821 → 1.16.11-next-ca5f18b5

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.
@@ -2,8 +2,14 @@ const joinUrl = require('url-join');
2
2
  const Client = require('@ocap/client');
3
3
 
4
4
  // cache ocap clients for smaller memory consumption
5
+ /** @type {Map<string, import('@ocap/client')>} */
5
6
  const clients = new Map();
6
7
 
8
+ /**
9
+ * @description
10
+ * @param {string} chainHost
11
+ * @return {import('@ocap/client')}
12
+ */
7
13
  const getChainClient = (chainHost) => {
8
14
  const endpoint = joinUrl(chainHost, '/');
9
15
  if (!clients.has(endpoint)) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.11-next-8a4df821",
6
+ "version": "1.16.11-next-ca5f18b5",
7
7
  "description": "ArcBlock's JavaScript utility",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -18,9 +18,9 @@
18
18
  "author": "polunzh <polunzh@gmail.com> (http://github.com/polunzh)",
19
19
  "license": "Apache-2.0",
20
20
  "dependencies": {
21
- "@abtnode/constant": "1.16.11-next-8a4df821",
22
- "@abtnode/logger": "1.16.11-next-8a4df821",
23
- "@blocklet/constant": "1.16.11-next-8a4df821",
21
+ "@abtnode/constant": "1.16.11-next-ca5f18b5",
22
+ "@abtnode/logger": "1.16.11-next-ca5f18b5",
23
+ "@blocklet/constant": "1.16.11-next-ca5f18b5",
24
24
  "@ocap/client": "1.18.80",
25
25
  "@ocap/mcrypto": "1.18.80",
26
26
  "@ocap/util": "1.18.80",
@@ -71,5 +71,5 @@
71
71
  "jest": "^27.5.1",
72
72
  "unzipper": "^0.10.11"
73
73
  },
74
- "gitHead": "194300e66d207fd7d5e40f5e97fc58c4bdd9ffd7"
74
+ "gitHead": "d797d0177d585b66d17876c99c994fda4d812f37"
75
75
  }