Skip to content

Commit

Permalink
feat(daemon): expose pet-store "has" method to host and guest
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis committed Dec 1, 2023
1 parent aff6fa8 commit 5769393
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/daemon/src/guest.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ export const makeGuestMaker = ({
terminator,
});

const { list, follow: followNames } = petStore;
const { has, list, follow: followNames } = petStore;

/** @type {import('@endo/eventual-send').ERef<import('./types.js').EndoGuest>} */
const guest = Far('EndoGuest', {
has,
lookup,
reverseLookup,
request,
Expand Down
3 changes: 2 additions & 1 deletion packages/daemon/src/host.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,11 @@ export const makeHostMaker = ({
return value;
};

const { list, follow: followNames } = petStore;
const { has, list, follow: followNames } = petStore;

/** @type {import('./types.js').EndoHost} */
const host = Far('EndoHost', {
has,
lookup,
reverseLookup,
listMessages,
Expand Down

0 comments on commit 5769393

Please sign in to comment.