@agoric/vow 0.1.1-dev-24fb1f5.0 → 0.1.1-dev-115adc4.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/vow",
3
- "version": "0.1.1-dev-24fb1f5.0+24fb1f5",
3
+ "version": "0.1.1-dev-115adc4.0+115adc4",
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-24fb1f5.0+24fb1f5",
24
- "@agoric/internal": "0.3.3-dev-24fb1f5.0+24fb1f5",
23
+ "@agoric/base-zone": "0.1.1-dev-115adc4.0+115adc4",
24
+ "@agoric/internal": "0.3.3-dev-115adc4.0+115adc4",
25
25
  "@endo/env-options": "^1.1.4",
26
26
  "@endo/errors": "^1.2.2",
27
27
  "@endo/eventual-send": "^1.2.2",
@@ -55,5 +55,5 @@
55
55
  "typeCoverage": {
56
56
  "atLeast": 89.6
57
57
  },
58
- "gitHead": "24fb1f54ab763bfefc9a01bd01a72168e78cc92b"
58
+ "gitHead": "115adc43d43da84e64a8f0046a9fd5e4e577bb06"
59
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["tools.js"],"names":[],"mappings":"AAiBO,sCAJI,IAAI;;;;;;yBAsBF,KAAK,OAAO,CAAC,EAAE;oCAaykC,GAAG;;EAJvmC;uBAGa,UAAU,CAAC,OAAO,eAAe,CAAC;0BAvCzB,mBAAmB;uCACmB,YAAY;0BAAZ,YAAY;uCAAZ,YAAY"}
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["tools.js"],"names":[],"mappings":"AAoBO,sCAJI,IAAI;;;;;;yBAsBF,KAAK,OAAO,CAAC,EAAE;oCAa48B,GAAG;;EAJ1+B;uBAGa,UAAU,CAAC,OAAO,eAAe,CAAC;0BA1CzB,mBAAmB;uCACmB,YAAY;0BAAZ,YAAY;uCAAZ,YAAY"}
package/src/tools.js CHANGED
@@ -11,6 +11,9 @@ import { makeAsVow } from './vow-utils.js';
11
11
  */
12
12
 
13
13
  /**
14
+ * NB: Not to be used in a Vat. It doesn't know what an upgrade is. For that you
15
+ * need `prepareVowTools` from `vat.js`.
16
+ *
14
17
  * @param {Zone} zone
15
18
  * @param {object} [powers]
16
19
  * @param {IsRetryableReason} [powers.isRetryableReason]
package/src/when.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"when.d.ts","sourceRoot":"","sources":["when.js"],"names":[],"mappings":"AAQO,8EAMQ,CAAC,EACA,QAAQ,eACR,QAAQ,qBACX,CAAC,yBACO,QAAQ,CAAC,CAAC,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,sCAC9C,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,kBAC/C,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAmD1C;mBAIa,UAAU,CAAC,OAAO,QAAQ,CAAC;uCAxEO,YAAY;6BAAZ,YAAY"}
1
+ {"version":3,"file":"when.d.ts","sourceRoot":"","sources":["when.js"],"names":[],"mappings":"AAQO,8EAUQ,CAAC,EACA,QAAQ,eACR,QAAQ,qBACX,CAAC,yBACO,QAAQ,CAAC,CAAC,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,sCAC9C,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,kBAC/C,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAmD1C;mBAIa,UAAU,CAAC,OAAO,QAAQ,CAAC;uCA5EO,YAAY;6BAAZ,YAAY"}
package/src/when.js CHANGED
@@ -12,6 +12,10 @@ export const makeWhen = (
12
12
  /**
13
13
  * Shorten `specimenP` until we achieve a final result.
14
14
  *
15
+ * Does not survive upgrade (even if specimenP is a durable Vow).
16
+ *
17
+ * @see {@link ../../README.md}
18
+ *
15
19
  * @template T
16
20
  * @template [TResult1=EUnwrap<T>]
17
21
  * @template [TResult2=never]
package/vat.js CHANGED
@@ -30,14 +30,17 @@ export const defaultPowers = harden({
30
30
  *
31
31
  * @type {typeof rawPrepareVowTools}
32
32
  */
33
- export const prepareVowTools = (zone, powers = {}) =>
33
+ export const prepareSwingsetVowTools = (zone, powers = {}) =>
34
34
  rawPrepareVowTools(zone, { ...defaultPowers, ...powers });
35
35
 
36
+ /** @deprecated */
37
+ export const prepareVowTools = prepareSwingsetVowTools;
38
+
36
39
  /**
37
40
  * `vowTools` that are not durable, but are useful in non-durable clients that
38
41
  * need to consume vows from other SwingSet vats.
39
42
  */
40
- export const heapVowTools = prepareVowTools(makeHeapZone());
43
+ export const heapVowTools = prepareSwingsetVowTools(makeHeapZone());
41
44
 
42
45
  /**
43
46
  * A vow-shortening E, for use in vats that are not durable but receive vows.