@agoric/swingset-liveslots 0.10.3-upgrade-16-dev-24665a9.0 → 0.10.3-upgrade-16-dev-d492653.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/cache.js +3 -2
- package/src/watchedPromises.js +2 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/swingset-liveslots",
|
|
3
|
-
"version": "0.10.3-upgrade-16-dev-
|
|
3
|
+
"version": "0.10.3-upgrade-16-dev-d492653.0+d492653",
|
|
4
4
|
"description": "SwingSet ocap support layer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"lint:eslint": "eslint ."
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@agoric/assert": "0.6.1-upgrade-16-dev-
|
|
21
|
-
"@agoric/internal": "0.3.3-upgrade-16-dev-
|
|
22
|
-
"@agoric/store": "0.9.3-upgrade-16-dev-
|
|
20
|
+
"@agoric/assert": "0.6.1-upgrade-16-dev-d492653.0+d492653",
|
|
21
|
+
"@agoric/internal": "0.3.3-upgrade-16-dev-d492653.0+d492653",
|
|
22
|
+
"@agoric/store": "0.9.3-upgrade-16-dev-d492653.0+d492653",
|
|
23
23
|
"@endo/env-options": "^1.1.4",
|
|
24
24
|
"@endo/errors": "^1.2.2",
|
|
25
25
|
"@endo/eventual-send": "^1.2.2",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@endo/promise-kit": "^1.1.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@agoric/kmarshal": "0.1.1-upgrade-16-dev-
|
|
36
|
+
"@agoric/kmarshal": "0.1.1-upgrade-16-dev-d492653.0+d492653",
|
|
37
37
|
"ava": "^5.3.0"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"typeCoverage": {
|
|
70
70
|
"atLeast": 75.29
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "d49265372b3cdd681558791b0c780e1c3062bdcc"
|
|
73
73
|
}
|
package/src/cache.js
CHANGED
|
@@ -17,7 +17,7 @@ import { Fail } from '@agoric/assert';
|
|
|
17
17
|
/**
|
|
18
18
|
* @callback CacheDelete
|
|
19
19
|
* @param {string} key
|
|
20
|
-
* @returns {
|
|
20
|
+
* @returns {boolean}
|
|
21
21
|
*
|
|
22
22
|
* @callback CacheFlush
|
|
23
23
|
* @returns {void}
|
|
@@ -83,8 +83,9 @@ export function makeCache(readBacking, writeBacking, deleteBacking) {
|
|
|
83
83
|
},
|
|
84
84
|
delete: key => {
|
|
85
85
|
assert.typeof(key, 'string');
|
|
86
|
-
stash.delete(key);
|
|
86
|
+
const result = stash.delete(key);
|
|
87
87
|
dirtyKeys.add(key);
|
|
88
|
+
return result;
|
|
88
89
|
},
|
|
89
90
|
flush: () => {
|
|
90
91
|
const keys = [...dirtyKeys.keys()];
|
package/src/watchedPromises.js
CHANGED
|
@@ -157,15 +157,9 @@ export function makeWatchedPromiseManager({
|
|
|
157
157
|
function providePromiseWatcher(
|
|
158
158
|
kindHandle,
|
|
159
159
|
// @ts-expect-error xxx rest params in typedef
|
|
160
|
-
fulfillHandler = _value => {
|
|
161
|
-
// It's fine to not pass the value through since promise watchers are not chainable
|
|
162
|
-
},
|
|
160
|
+
fulfillHandler = _value => {},
|
|
163
161
|
// @ts-expect-error xxx rest params in typedef
|
|
164
|
-
rejectHandler =
|
|
165
|
-
// Replicate the unhandled rejection that would have happened if the
|
|
166
|
-
// watcher had not implemented an `onRejected` method. See `settle` above
|
|
167
|
-
throw reason;
|
|
168
|
-
},
|
|
162
|
+
rejectHandler = _reason => {},
|
|
169
163
|
) {
|
|
170
164
|
assert.typeof(fulfillHandler, 'function');
|
|
171
165
|
assert.typeof(rejectHandler, 'function');
|