@agoric/casting 0.4.3-dev-7cead9c.0 → 0.4.3-dev-97cb715.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/casting",
|
|
3
|
-
"version": "0.4.3-dev-
|
|
3
|
+
"version": "0.4.3-dev-97cb715.0+97cb715",
|
|
4
4
|
"description": "Agoric's OCap broadcasting system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/main.js",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/internal": "0.3.3-dev-
|
|
26
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
27
|
-
"@agoric/spawner": "0.6.9-dev-
|
|
28
|
-
"@agoric/store": "0.9.3-dev-
|
|
25
|
+
"@agoric/internal": "0.3.3-dev-97cb715.0+97cb715",
|
|
26
|
+
"@agoric/notifier": "0.6.3-dev-97cb715.0+97cb715",
|
|
27
|
+
"@agoric/spawner": "0.6.9-dev-97cb715.0+97cb715",
|
|
28
|
+
"@agoric/store": "0.9.3-dev-97cb715.0+97cb715",
|
|
29
29
|
"@cosmjs/encoding": "^0.30.1",
|
|
30
30
|
"@cosmjs/proto-signing": "^0.30.1",
|
|
31
31
|
"@cosmjs/stargate": "^0.30.1",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"node-fetch": "^2.6.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@agoric/cosmic-proto": "0.3.1-dev-
|
|
41
|
+
"@agoric/cosmic-proto": "0.3.1-dev-97cb715.0+97cb715",
|
|
42
42
|
"@endo/ses-ava": "^0.2.43",
|
|
43
43
|
"@types/node-fetch": "^2.6.2",
|
|
44
44
|
"ava": "^5.3.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"timeout": "20m",
|
|
60
60
|
"workerThreads": false
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "97cb7158f1176d14b9a8d775328aa826458282ea"
|
|
63
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"follower-cosmjs.d.ts","sourceRoot":"","sources":["follower-cosmjs.js"],"names":[],"mappings":"AAgGO,+CALI,GAAG,
|
|
1
|
+
{"version":3,"file":"follower-cosmjs.d.ts","sourceRoot":"","sources":["follower-cosmjs.js"],"names":[],"mappings":"AAgGO,+CALI,GAAG,gJA4eb;+BAtjByB,OAAO,YAAY,EAAE,QAAQ,CAAC,OAAO,YAAY,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;;;;;;iCAIxF;IACZ,QAAY,CAAC,KAAK,EAAE,UAAU,CAAC;IAC/B,QAAY,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB"}
|
package/src/follower-cosmjs.js
CHANGED
|
@@ -445,9 +445,8 @@ export const makeCosmjsFollower = (
|
|
|
445
445
|
// contain data.
|
|
446
446
|
await null;
|
|
447
447
|
for (;;) {
|
|
448
|
-
({ value: cursorData, height: cursorBlockHeight } =
|
|
449
|
-
cursorBlockHeight
|
|
450
|
-
));
|
|
448
|
+
({ value: cursorData, height: cursorBlockHeight } =
|
|
449
|
+
await getDataAtHeight(cursorBlockHeight));
|
|
451
450
|
if (cursorData.length !== 0) {
|
|
452
451
|
const cursorStreamCell = streamCellForData(
|
|
453
452
|
cursorBlockHeight,
|
|
@@ -558,9 +557,8 @@ export const makeCosmjsFollower = (
|
|
|
558
557
|
let cursorData;
|
|
559
558
|
await null;
|
|
560
559
|
while (cursorBlockHeight === undefined || cursorBlockHeight > 0) {
|
|
561
|
-
({ value: cursorData, height: cursorBlockHeight } =
|
|
562
|
-
cursorBlockHeight
|
|
563
|
-
));
|
|
560
|
+
({ value: cursorData, height: cursorBlockHeight } =
|
|
561
|
+
await getDataAtHeight(cursorBlockHeight));
|
|
564
562
|
if (cursorData.length === 0) {
|
|
565
563
|
// No data at the cursor height, so signal beginning of stream.
|
|
566
564
|
return;
|