(directory: string, sessionID?: string)
| 305 | } |
| 306 | |
| 307 | const lookup = async (directory: string, sessionID?: string) => { |
| 308 | if (!sessionID) return undefined |
| 309 | const sync = serverSync().ensureDirSyncContext(directory) |
| 310 | const session = sync.session.get(sessionID) |
| 311 | if (session) return session |
| 312 | return sync.session |
| 313 | .sync(sessionID) |
| 314 | .then(() => sync.session.get(sessionID)) |
| 315 | .catch(() => undefined) |
| 316 | } |
| 317 | |
| 318 | const viewedInCurrentSession = (directory: string, sessionID?: string) => { |
| 319 | if (!input.active()) return false |
no test coverage detected