Skip to content

Commit

Permalink
feat(daemon): expose listEntries and followEntries on host and guest
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis committed Jan 23, 2024
1 parent b785d5b commit 7aa9edd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
12 changes: 10 additions & 2 deletions packages/daemon/src/guest.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ export const makeGuestMaker = ({
terminator,
});

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

/** @type {import('@endo/eventual-send').ERef<import('./types.js').EndoGuest>} */
const guest = Far('EndoGuest', {
Expand All @@ -80,8 +86,10 @@ export const makeGuestMaker = ({
send,
list,
followNames,
followMessages,
listMessages,
followMessages,
listEntries,
followEntries,
resolve,
reject,
dismiss,
Expand Down
10 changes: 9 additions & 1 deletion packages/daemon/src/host.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,13 @@ export const makeHostMaker = ({
return value;
};

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

/** @type {import('./types.js').EndoHost} */
const host = Far('EndoHost', {
Expand All @@ -434,6 +440,8 @@ export const makeHostMaker = ({
send,
list,
followNames,
listEntries,
followEntries,
remove,
rename,
store,
Expand Down

0 comments on commit 7aa9edd

Please sign in to comment.