mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-21 09:09:04 +02:00
chore(deps): Bump the "all-dependencies" group with 3 updates across multiple ecosystems (#1739)
Co-authored-by: Kyle Mendell <kyle@pocket-id.org> Co-authored-by: Kyle Mendell <kmendell@ofkm.us> Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
co-authored by
Kyle Mendell
Kyle Mendell
parent
f91fb76eba
commit
c65b77c980
@@ -126,6 +126,11 @@ function compareExports(dir1: string, dir2: string): void {
|
||||
const expectedData = loadJSON(path.join(dir1, 'database.json'));
|
||||
const actualData = loadJSON(path.join(dir2, 'database.json'));
|
||||
|
||||
// Legacy exports gain empty session extensions when migrated to the current schema
|
||||
for (const session of expectedData.tables.webauthn_sessions) {
|
||||
session.extensions ??= '{}';
|
||||
}
|
||||
|
||||
// Check special fields
|
||||
validateSpecialFields(actualData);
|
||||
|
||||
@@ -137,7 +142,7 @@ function compareExports(dir1: string, dir2: string): void {
|
||||
// Compare francis.bin contents
|
||||
const file1 = path.join(dir1, 'francis.bin');
|
||||
const file2 = path.join(dir2, 'francis.bin');
|
||||
|
||||
|
||||
for (const filePath of [file1, file2]) {
|
||||
expect(fs.existsSync(filePath), `${filePath} should exist`).toBe(true);
|
||||
|
||||
@@ -168,7 +173,6 @@ function archiveExampleExport(outputPath: string): Buffer {
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
||||
// Helper to load JSON files
|
||||
function loadJSON(path: string) {
|
||||
return JSON.parse(fs.readFileSync(path, 'utf-8'));
|
||||
|
||||
Reference in New Issue
Block a user