@agoric/base-zone 0.1.1-dev-97cb715.0 → 0.1.1-dev-3da32ff.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/tools/greeter.js +5 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/base-zone",
3
- "version": "0.1.1-dev-97cb715.0+97cb715",
3
+ "version": "0.1.1-dev-3da32ff.0+3da32ff",
4
4
  "description": "Allocation zone abstraction library and heap implementation",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/Agoric/agoric-sdk",
@@ -26,7 +26,7 @@
26
26
  "author": "Agoric",
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@agoric/store": "0.9.3-dev-97cb715.0+97cb715",
29
+ "@agoric/store": "0.9.3-dev-3da32ff.0+3da32ff",
30
30
  "@endo/exo": "^0.2.5",
31
31
  "@endo/far": "^0.2.21",
32
32
  "@endo/pass-style": "^0.1.6",
@@ -52,5 +52,5 @@
52
52
  "timeout": "20m",
53
53
  "workerThreads": false
54
54
  },
55
- "gitHead": "97cb7158f1176d14b9a8d775328aa826458282ea"
55
+ "gitHead": "3da32ffbdd6b0a3d6c930bbacee21eae163a715a"
56
56
  }
package/tools/greeter.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M } from '@endo/patterns';
1
+ import { M, getInterfaceGuardPayload } from '@endo/patterns';
2
2
 
3
3
  /**
4
4
  * @template {{}} T
@@ -33,8 +33,8 @@ export const adminFacet = {
33
33
  };
34
34
 
35
35
  export const GreeterWithAdminI = M.interface('GreeterWithAdmin', {
36
- ...GreeterI.methodGuards,
37
- ...GreeterAdminI.methodGuards,
36
+ ...getInterfaceGuardPayload(GreeterI).methodGuards,
37
+ ...getInterfaceGuardPayload(GreeterAdminI).methodGuards,
38
38
  });
39
39
 
40
40
  /**
@@ -44,6 +44,7 @@ export const GreeterWithAdminI = M.interface('GreeterWithAdmin', {
44
44
  */
45
45
  export const prepareGreeterSingleton = (zone, label, nick) => {
46
46
  const myThis = Object.freeze({ state: { nick } });
47
+ // @ts-expect-error Until https://github.com/endojs/endo/pull/1771
47
48
  return zone.exo(label, GreeterWithAdminI, {
48
49
  ...bindAllMethodsTo(greetFacet, myThis),
49
50
  ...bindAllMethodsTo(adminFacet, myThis),
@@ -54,6 +55,7 @@ export const prepareGreeterSingleton = (zone, label, nick) => {
54
55
  * @param {import('../src/types.js').Zone} zone
55
56
  */
56
57
  export const prepareGreeter = zone =>
58
+ // @ts-expect-error Until https://github.com/endojs/endo/pull/1771
57
59
  zone.exoClass('Greeter', GreeterWithAdminI, nick => ({ nick }), {
58
60
  ...greetFacet,
59
61
  ...adminFacet,