mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 22:55:24 +00:00
feat: harden plugin api for separate repos, signed updates and generic external login
This commit is contained in:
1 parent
fb9c168b6b
commit
80944301dd
310 files changed
+6577
-4927
No files matched your search
@@ -50,7 +50,11 @@ async function setup() {
|
||||
.run("user-1", "alice");
|
||||
db.sqlite.prepare("INSERT INTO ssh_data (id) VALUES (?)").run(7);
|
||||
const table = await db.database.define(sessionRecordings);
|
||||
return createSessionRecordingRepository(db.database, table, fakeHosts);
|
||||
return createSessionRecordingRepository(
|
||||
db.database,
|
||||
table,
|
||||
fakeHosts as never,
|
||||
);
|
||||
}
|
||||
|
||||
describe("session recording repository", () => {
|
||||
|
||||
@@ -59,7 +59,11 @@ async function setup(): Promise<{
|
||||
trackSession: () => () => {},
|
||||
recordActivity: async () => {},
|
||||
};
|
||||
const repo = createSessionRecordingRepository(db.database, table, hosts);
|
||||
const repo = createSessionRecordingRepository(
|
||||
db.database,
|
||||
table,
|
||||
hosts as never,
|
||||
);
|
||||
|
||||
const mock = createMockCtx({
|
||||
pluginId: manifest.id,
|
||||
|
||||
Reference in new issue
Block a user