@agoric/store 0.9.3-u19.0 → 0.9.3-u20.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/store",
|
|
3
|
-
"version": "0.9.3-
|
|
3
|
+
"version": "0.9.3-u20.0",
|
|
4
4
|
"description": "Wrapper for JavaScript map",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@endo/errors": "^1.2.
|
|
36
|
-
"@endo/exo": "^1.5.
|
|
37
|
-
"@endo/marshal": "^1.6.
|
|
38
|
-
"@endo/pass-style": "^1.
|
|
39
|
-
"@endo/patterns": "^1.
|
|
35
|
+
"@endo/errors": "^1.2.10",
|
|
36
|
+
"@endo/exo": "^1.5.9",
|
|
37
|
+
"@endo/marshal": "^1.6.4",
|
|
38
|
+
"@endo/pass-style": "^1.5.0",
|
|
39
|
+
"@endo/patterns": "^1.5.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@endo/init": "^1.1.
|
|
43
|
-
"@endo/ses-ava": "^1.2.
|
|
42
|
+
"@endo/init": "^1.1.9",
|
|
43
|
+
"@endo/ses-ava": "^1.2.10",
|
|
44
44
|
"ava": "^5.3.0"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"timeout": "2m"
|
|
62
62
|
},
|
|
63
63
|
"typeCoverage": {
|
|
64
|
-
"atLeast": 89.
|
|
64
|
+
"atLeast": 89.62
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "8e4207fa19dabf76c1f91f8779b5b5b93570ecea"
|
|
67
67
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export function isCopySet(s: unknown): s is CopySet;
|
|
2
|
-
export function isCopyMap(m: unknown): m is CopyMap;
|
|
3
1
|
export function makeCurrentKeysKit<K extends Key, V extends Passable>(getRawKeys: () => Iterable<K>, checkHas: (k: K) => boolean, compare: RankCompare, assertOkToAdd: (k: K, v?: V) => void, assertOkToDelete?: (k: K) => void, keyName?: string): CurrentKeysKit<K, V>;
|
|
4
2
|
export function provideLazy<K extends Key, V extends Passable>(mapStore: WeakMapStore<K, V>, key: K, makeValue: (key: K) => V): V;
|
|
5
3
|
export function makeAtomicProvider<K extends Key, V extends Passable>(store: WeakMapStore<K, V>): {
|
|
@@ -15,9 +13,12 @@ export type CurrentKeysKit<K extends Key, V extends Passable> = {
|
|
|
15
13
|
* <K, V>
|
|
16
14
|
*/
|
|
17
15
|
export type AtomicProvider<K extends Key, V extends Passable> = ReturnType<typeof makeAtomicProvider<K, V>>;
|
|
16
|
+
import { isCopyMap } from '@endo/patterns';
|
|
17
|
+
import { isCopySet } from '@endo/patterns';
|
|
18
18
|
import type { Key } from '@endo/patterns';
|
|
19
19
|
import type { Passable } from '@endo/pass-style';
|
|
20
20
|
import type { RankCompare } from '@endo/marshal';
|
|
21
21
|
import type { WeakMapStore } from '../types.js';
|
|
22
22
|
import type { MapStore } from '../types.js';
|
|
23
|
+
export { isCopyMap, isCopySet };
|
|
23
24
|
//# sourceMappingURL=store-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-utils.d.ts","sourceRoot":"","sources":["store-utils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"store-utils.d.ts","sourceRoot":"","sources":["store-utils.js"],"names":[],"mappings":"AAiCO,mCAVY,CAAC,SAAP,GAAK,EACM,CAAC,SAAZ,QAAU,cACZ,MAAM,QAAQ,CAAC,CAAC,CAAC,YACjB,CAAC,CAAC,EAAE,CAAC,KAAK,OAAO,WACjB,WAAW,iBAC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o/errors';
|
|
2
2
|
import { Far } from '@endo/marshal';
|
|
3
|
-
import {
|
|
3
|
+
import { isCopyMap, isCopySet } from '@endo/patterns';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @import {RankCompare} from '@endo/marshal';
|
|
@@ -9,29 +9,7 @@ import { M, matches } from '@endo/patterns';
|
|
|
9
9
|
* @import {Key} from '@endo/patterns';
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
// reimplementation here.
|
|
14
|
-
/**
|
|
15
|
-
* Should behave identically to the one in `@endo/patterns`, but reimplemented
|
|
16
|
-
* for now because `@endo/patterns` forgot to export this one. This one is
|
|
17
|
-
* simple enough that I prefer a reimplementation to a deep import.
|
|
18
|
-
*
|
|
19
|
-
* @param {unknown} s
|
|
20
|
-
* @returns {s is CopySet}
|
|
21
|
-
*/
|
|
22
|
-
export const isCopySet = s => matches(s, M.set());
|
|
23
|
-
|
|
24
|
-
// TODO: Undate `@endo/patterns` to export the original, and delete the
|
|
25
|
-
// reimplementation here.
|
|
26
|
-
/**
|
|
27
|
-
* Should behave identically to the one in `@endo/patterns`, but reimplemented
|
|
28
|
-
* for now because `@endo/patterns` forgot to export this one. This one is
|
|
29
|
-
* simple enough that I prefer a reimplementation to a deep import.
|
|
30
|
-
*
|
|
31
|
-
* @param {unknown} m
|
|
32
|
-
* @returns {m is CopyMap}
|
|
33
|
-
*/
|
|
34
|
-
export const isCopyMap = m => matches(m, M.map());
|
|
12
|
+
export { isCopyMap, isCopySet };
|
|
35
13
|
|
|
36
14
|
/**
|
|
37
15
|
* @template {Key} K
|