@agoric/vow 0.1.1-dev-09ccd43.0 → 0.1.1-dev-9f21b9d.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 +6 -6
- package/src/watch-utils.d.ts.map +1 -1
- package/src/watch-utils.js +7 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/vow",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-9f21b9d.0+9f21b9d",
|
|
4
4
|
"description": "Remote (shortening and disconnection-tolerant) Promise-likes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"lint:types": "tsc"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@agoric/base-zone": "0.1.1-dev-
|
|
24
|
-
"@agoric/internal": "0.3.3-dev-
|
|
23
|
+
"@agoric/base-zone": "0.1.1-dev-9f21b9d.0+9f21b9d",
|
|
24
|
+
"@agoric/internal": "0.3.3-dev-9f21b9d.0+9f21b9d",
|
|
25
25
|
"@endo/env-options": "^1.1.8",
|
|
26
26
|
"@endo/errors": "^1.2.9",
|
|
27
27
|
"@endo/eventual-send": "^1.3.0",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@agoric/internal": "^0.3.2",
|
|
34
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
35
|
-
"@agoric/zone": "0.2.3-dev-
|
|
34
|
+
"@agoric/swingset-vat": "0.32.3-dev-9f21b9d.0+9f21b9d",
|
|
35
|
+
"@agoric/zone": "0.2.3-dev-9f21b9d.0+9f21b9d",
|
|
36
36
|
"@endo/far": "^1.1.10",
|
|
37
37
|
"@endo/init": "^1.1.8",
|
|
38
38
|
"ava": "^5.3.0",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"typeCoverage": {
|
|
59
59
|
"atLeast": 91.75
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "9f21b9da5795a457f502cec78ff2602e4cbc1b26"
|
|
62
62
|
}
|
package/src/watch-utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watch-utils.d.ts","sourceRoot":"","sources":["watch-utils.js"],"names":[],"mappings":"AA4CO,wCAPI,IAAI,kDAEZ;IAAsB,KAAK,EAAnB,KAAK;IACQ,IAAI,EAAjB,IAAI;IACsB,UAAU,EAApC,MAAM,OAAO,GAAG,CAAC;IACS,iBAAiB,EAA3C,iBAAiB;CAC3B;IA4CO,mCAAmC;mBAAvB,OAAO,EAAE;IAIrB,mCAAmC;0BAAvB,OAAO,EAAE,GAED,IAAI,CAAC;QAAC,MAAM,EAAE,WAAW,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAC,GAAG;QAAC,MAAM,EAAE,UAAU,CAAC;QAAC,MAAM,EAAE,GAAG,CAAA;KAAC,CAAC,EAAE,CAAC;;
|
|
1
|
+
{"version":3,"file":"watch-utils.d.ts","sourceRoot":"","sources":["watch-utils.js"],"names":[],"mappings":"AA4CO,wCAPI,IAAI,kDAEZ;IAAsB,KAAK,EAAnB,KAAK;IACQ,IAAI,EAAjB,IAAI;IACsB,UAAU,EAApC,MAAM,OAAO,GAAG,CAAC;IACS,iBAAiB,EAA3C,iBAAiB;CAC3B;IA4CO,mCAAmC;mBAAvB,OAAO,EAAE;IAIrB,mCAAmC;0BAAvB,OAAO,EAAE,GAED,IAAI,CAAC;QAAC,MAAM,EAAE,WAAW,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAC,GAAG;QAAC,MAAM,EAAE,UAAU,CAAC;QAAC,MAAM,EAAE,GAAG,CAAA;KAAC,CAAC,EAAE,CAAC;;GA0LzG;0BA9QsB,mBAAmB;2BAClB,YAAY;0BACb,WAAW;4BACkC,YAAY;uCAAZ,YAAY;yBAAZ,YAAY"}
|
package/src/watch-utils.js
CHANGED
|
@@ -191,10 +191,16 @@ export const prepareWatchUtils = (
|
|
|
191
191
|
// Resolution of the returned vow happened already.
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
|
+
const idToNonStorableResults = provideLazyMap(
|
|
195
|
+
utilsToNonStorableResults,
|
|
196
|
+
this.facets.utils,
|
|
197
|
+
() => new Map(),
|
|
198
|
+
);
|
|
194
199
|
const { remaining, resultsMap, resolver } = idToVowState.get(id);
|
|
195
200
|
if (!isAllSettled && status === 'rejected') {
|
|
196
201
|
// For 'all', we reject immediately on the first rejection
|
|
197
202
|
idToVowState.delete(id);
|
|
203
|
+
idToNonStorableResults.delete(id);
|
|
198
204
|
resolver.reject(result);
|
|
199
205
|
return;
|
|
200
206
|
}
|
|
@@ -206,11 +212,6 @@ export const prepareWatchUtils = (
|
|
|
206
212
|
})
|
|
207
213
|
: result;
|
|
208
214
|
|
|
209
|
-
const idToNonStorableResults = provideLazyMap(
|
|
210
|
-
utilsToNonStorableResults,
|
|
211
|
-
this.facets.utils,
|
|
212
|
-
() => new Map(),
|
|
213
|
-
);
|
|
214
215
|
const nonStorableResults = provideLazyMap(
|
|
215
216
|
idToNonStorableResults,
|
|
216
217
|
id,
|
|
@@ -235,6 +236,7 @@ export const prepareWatchUtils = (
|
|
|
235
236
|
}
|
|
236
237
|
// We're done! Extract the array.
|
|
237
238
|
idToVowState.delete(id);
|
|
239
|
+
idToNonStorableResults.delete(id);
|
|
238
240
|
const results = new Array(numResults);
|
|
239
241
|
let numLost = 0;
|
|
240
242
|
for (let i = 0; i < numResults; i += 1) {
|