@agoric/client-utils 0.1.1-dev-3b478fb.0 → 0.1.1-dev-fbae24c.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/package.json +7 -7
- package/src/vstorage.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/client-utils",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-fbae24c.0+fbae24c",
|
|
4
4
|
"description": "Utilities for building Agoric clients",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"ts-blank-space": "^0.4.4"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@agoric/casting": "0.4.3-dev-
|
|
31
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
32
|
-
"@agoric/internal": "0.3.3-dev-
|
|
33
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
34
|
-
"@agoric/vats": "0.15.2-dev-
|
|
30
|
+
"@agoric/casting": "0.4.3-dev-fbae24c.0+fbae24c",
|
|
31
|
+
"@agoric/ertp": "0.16.3-dev-fbae24c.0+fbae24c",
|
|
32
|
+
"@agoric/internal": "0.3.3-dev-fbae24c.0+fbae24c",
|
|
33
|
+
"@agoric/smart-wallet": "0.5.4-dev-fbae24c.0+fbae24c",
|
|
34
|
+
"@agoric/vats": "0.15.2-dev-fbae24c.0+fbae24c",
|
|
35
35
|
"@cosmjs/stargate": "^0.32.3",
|
|
36
36
|
"@cosmjs/tendermint-rpc": "^0.32.3",
|
|
37
37
|
"@endo/common": "^1.2.8",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
],
|
|
59
59
|
"timeout": "20m"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "fbae24ccaff7b911a2ef72e1c47434e6dfd73d9f"
|
|
62
62
|
}
|
package/src/vstorage.js
CHANGED
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
* @param {typeof window.fetch} powers.fetch
|
|
10
10
|
* @param {MinimalNetworkConfig} config
|
|
11
11
|
*/
|
|
12
|
-
export const makeVStorage = (
|
|
12
|
+
export const makeVStorage = ({ fetch }, config) => {
|
|
13
13
|
/** @param {string} path */
|
|
14
14
|
const getJSON = path => {
|
|
15
15
|
const url = config.rpcAddrs[0] + path;
|
|
16
16
|
// console.warn('fetching', url);
|
|
17
|
-
return
|
|
17
|
+
return fetch(url, { keepalive: true }).then(res => res.json());
|
|
18
18
|
};
|
|
19
19
|
// height=0 is the same as omitting height and implies the highest block
|
|
20
20
|
const url = (path = 'published', { kind = 'children', height = 0 } = {}) =>
|