@agoric/zone 0.2.3-dev-cb5ca69.0 → 0.2.3-dev-c730d2b.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/zone",
3
- "version": "0.2.3-dev-cb5ca69.0+cb5ca69",
3
+ "version": "0.2.3-dev-c730d2b.0+c730d2b",
4
4
  "description": "Allocation zone abstraction for objects on the heap, persistent stores, etc.",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/Agoric/agoric-sdk",
@@ -27,14 +27,14 @@
27
27
  "author": "Agoric",
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@agoric/base-zone": "0.1.1-dev-cb5ca69.0+cb5ca69",
31
- "@agoric/vat-data": "0.5.3-dev-cb5ca69.0+cb5ca69",
30
+ "@agoric/base-zone": "0.1.1-dev-c730d2b.0+c730d2b",
31
+ "@agoric/vat-data": "0.5.3-dev-c730d2b.0+c730d2b",
32
32
  "@endo/errors": "^1.2.9",
33
33
  "@endo/far": "^1.1.10",
34
34
  "@endo/pass-style": "^1.4.8"
35
35
  },
36
36
  "devDependencies": {
37
- "@agoric/swingset-vat": "0.32.3-dev-cb5ca69.0+cb5ca69",
37
+ "@agoric/swingset-vat": "0.32.3-dev-c730d2b.0+c730d2b",
38
38
  "@endo/patterns": "^1.4.8",
39
39
  "ava": "^5.3.0"
40
40
  },
@@ -57,5 +57,5 @@
57
57
  "typeCoverage": {
58
58
  "atLeast": 98.56
59
59
  },
60
- "gitHead": "cb5ca6932055c10e97438ada09aa98575b8ab46d"
60
+ "gitHead": "c730d2b9f4d955accaae4ad85bfece56989afd67"
61
61
  }
package/src/durable.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export function makeDurableZone(baggage: import("@agoric/vat-data").Baggage, baseLabel?: string): import(".").Zone;
1
+ export function makeDurableZone(baggage: import("@agoric/vat-data").Baggage, baseLabel?: string): Zone;
2
+ import type { Zone } from './index.js';
2
3
  //# sourceMappingURL=durable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"durable.d.ts","sourceRoot":"","sources":["durable.js"],"names":[],"mappings":"AAyEO,yCAJI,OAAO,kBAAkB,EAAE,OAAO,cAClC,MAAM,GACJ,OAAO,GAAG,EAAE,IAAI,CA+C5B"}
1
+ {"version":3,"file":"durable.d.ts","sourceRoot":"","sources":["durable.js"],"names":[],"mappings":"AA6EO,yCAJI,OAAO,kBAAkB,EAAE,OAAO,cAClC,MAAM,GACJ,IAAI,CA+ChB;0BApGsB,YAAY"}
package/src/durable.js CHANGED
@@ -19,6 +19,10 @@ import {
19
19
 
20
20
  import { agoricVatDataKeys as keys, makeOnceKit } from '@agoric/base-zone';
21
21
 
22
+ /**
23
+ * @import {Zone} from './index.js';
24
+ */
25
+
22
26
  /**
23
27
  * A variant of `canBeDurable` that returns `false` instead of ever throwing.
24
28
  *
@@ -32,23 +36,23 @@ harden(isStorable);
32
36
  * @param {() => import('@agoric/vat-data').Baggage} getBaggage
33
37
  */
34
38
  const attachDurableStores = getBaggage => {
35
- /** @type {import('.').Zone['mapStore']} */
39
+ /** @type {Zone['mapStore']} */
36
40
  const mapStore = (label, options) => {
37
41
  const baggage = getBaggage();
38
42
  const ret = provideDurableMapStore(baggage, label, options);
39
43
  return ret;
40
44
  };
41
- /** @type {import('.').Zone['setStore']} */
45
+ /** @type {Zone['setStore']} */
42
46
  const setStore = (label, options) =>
43
47
  provideDurableSetStore(getBaggage(), label, options);
44
- /** @type {import('.').Zone['weakSetStore']} */
48
+ /** @type {Zone['weakSetStore']} */
45
49
  const weakSetStore = (label, options) =>
46
50
  provideDurableWeakSetStore(getBaggage(), label, options);
47
- /** @type {import('.').Zone['weakMapStore']} */
51
+ /** @type {Zone['weakMapStore']} */
48
52
  const weakMapStore = (label, options) =>
49
53
  provideDurableWeakMapStore(getBaggage(), label, options);
50
54
 
51
- /** @type {import('.').Stores} */
55
+ /** @type {import('./index.js').Stores} */
52
56
  return Far('durableStores', {
53
57
  detached: () => detachedDurableStores,
54
58
  isStorable,
@@ -59,7 +63,7 @@ const attachDurableStores = getBaggage => {
59
63
  });
60
64
  };
61
65
 
62
- /** @type {import('.').Stores} */
66
+ /** @type {import('./index.js').Stores} */
63
67
  const detachedDurableStores = attachDurableStores(() =>
64
68
  makeScalarMapStore('detached'),
65
69
  );
@@ -69,7 +73,7 @@ const detachedDurableStores = attachDurableStores(() =>
69
73
  *
70
74
  * @param {import('@agoric/vat-data').Baggage} baggage
71
75
  * @param {string} [baseLabel]
72
- * @returns {import('.').Zone}
76
+ * @returns {Zone}
73
77
  */
74
78
  export const makeDurableZone = (baggage, baseLabel = 'durableZone') => {
75
79
  baggage || Fail`baggage required`;
@@ -82,18 +86,18 @@ export const makeDurableZone = (baggage, baseLabel = 'durableZone') => {
82
86
  baggage,
83
87
  );
84
88
 
85
- /** @type {import('.').Zone['exoClass']} */
89
+ /** @type {Zone['exoClass']} */
86
90
  const exoClass = (...args) => prepareExoClass(baggage, ...args);
87
- /** @type {import('.').Zone['exoClassKit']} */
91
+ /** @type {Zone['exoClassKit']} */
88
92
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- happens only integrating with Endo master
89
93
  // @ts-ignore FIXME in Endo
90
94
  const exoClassKit = (...args) => prepareExoClassKit(baggage, ...args);
91
- /** @type {import('.').Zone['exo']} */
95
+ /** @type {Zone['exo']} */
92
96
  const exo = (...args) => prepareExo(baggage, ...args);
93
97
 
94
98
  const subZoneStore = wrapProvider(attachedStores.mapStore, keys.zone);
95
99
 
96
- /** @type {import('.').Zone['subZone']} */
100
+ /** @type {Zone['subZone']} */
97
101
  const subZone = (label, options = {}) => {
98
102
  /** @type {import('@agoric/swingset-liveslots').Baggage} */
99
103
  const subBaggage = subZoneStore(label, options);