@agoric/base-zone 0.1.1-dev-d15cb41.0 → 0.1.1-dev-e456308.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 +3 -3
- package/src/heap.d.ts.map +1 -1
- package/src/heap.js +1 -2
- package/src/index.js +3 -0
- package/src/is-passable.d.ts.map +1 -1
- package/src/is-passable.js +3 -18
- package/src/make-once.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/base-zone",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-e456308.0+e456308",
|
|
4
4
|
"description": "Allocation zone abstraction library and heap implementation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/Agoric/agoric-sdk",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"author": "Agoric",
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@agoric/store": "0.9.3-dev-
|
|
30
|
+
"@agoric/store": "0.9.3-dev-e456308.0+e456308",
|
|
31
31
|
"@endo/common": "^1.2.1",
|
|
32
32
|
"@endo/exo": "^1.4.0",
|
|
33
33
|
"@endo/far": "^1.1.1",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"typeCoverage": {
|
|
59
59
|
"atLeast": 88.55
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "e4563081e57304520ee75f85aff490fcdb640c20"
|
|
62
62
|
}
|
package/src/heap.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heap.d.ts","sourceRoot":"","sources":["heap.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"heap.d.ts","sourceRoot":"","sources":["heap.js"],"names":[],"mappings":"AAkCO,8DAFM,OAAO,YAAY,EAAE,IAAI,CA2BrC"}
|
package/src/heap.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
// @jessie-check
|
|
3
3
|
|
|
4
|
-
import { Far } from '@endo/
|
|
4
|
+
import { Far, isPassable } from '@endo/pass-style';
|
|
5
5
|
import { makeExo, defineExoClass, defineExoClassKit } from '@endo/exo';
|
|
6
6
|
import {
|
|
7
7
|
makeScalarMapStore,
|
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
|
|
13
13
|
import { makeOnceKit } from './make-once.js';
|
|
14
14
|
import { agoricVatDataKeys as keys } from './keys.js';
|
|
15
|
-
import { isPassable } from './is-passable.js';
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* @type {import('./types.js').Stores}
|
package/src/index.js
CHANGED
package/src/is-passable.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-passable.d.ts","sourceRoot":"","sources":["is-passable.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-passable.d.ts","sourceRoot":"","sources":["is-passable.js"],"names":[],"mappings":"AAOO,qCAHI,GAAG,GACD,QAAQ,YAAY,CAE6B"}
|
package/src/is-passable.js
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isPassable as realIsPassable } from '@endo/pass-style';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* returns a string. This returns `false` iff `passStyleOf(specimen)` throws.
|
|
6
|
-
* Under no normal circumstance should `isPassable(specimen)` throw.
|
|
7
|
-
*
|
|
8
|
-
* TODO implement an isPassable that does not rely on try/catch, and
|
|
9
|
-
* move it to @endo/pass-style.
|
|
10
|
-
* This implementation is just a standin until then
|
|
11
|
-
*
|
|
4
|
+
* @deprecated Import `isPassable` directly from `@endo/pass-style`
|
|
12
5
|
* @param {any} specimen
|
|
13
6
|
* @returns {specimen is Passable}
|
|
14
7
|
*/
|
|
15
|
-
export const isPassable = specimen =>
|
|
16
|
-
try {
|
|
17
|
-
// In fact, it never returns undefined. It either returns a
|
|
18
|
-
// string or throws.
|
|
19
|
-
return passStyleOf(specimen) !== undefined;
|
|
20
|
-
} catch (_) {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
8
|
+
export const isPassable = specimen => realIsPassable(specimen);
|
package/src/make-once.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function makeOnceKit(debugName: string, stores: import("./types.js").Stores, backingStore?: any): {
|
|
1
|
+
export function makeOnceKit(debugName: string, stores: import("./types.js").Stores, backingStore?: globalThis.MapStore<string, any> | undefined): {
|
|
2
2
|
makeOnce: <V>(key: string, maker: (key: string) => V) => V;
|
|
3
3
|
wrapProvider: <T extends (key: string, ...rest: unknown[]) => any>(provider: T, labelToKeys?: ((label: string) => string[]) | undefined) => T;
|
|
4
4
|
};
|