|
| 1 | +diff --git a/dist/providers/chromeSqlite/shared.js b/dist/providers/chromeSqlite/shared.js |
| 2 | +index 59ef6e4e20a40a71db7fc39d46606c306682e967..cd1bd1690f6e7dc1819dcb1ec68279f1a54f3115 100644 |
| 3 | +--- a/dist/providers/chromeSqlite/shared.js |
| 4 | ++++ b/dist/providers/chromeSqlite/shared.js |
| 5 | +@@ -185,7 +185,10 @@ async function readChromiumMetaVersion(dbPath) { |
| 6 | + async function readChromeRows(dbPath, where) { |
| 7 | + const sqliteKind = isBunRuntime() ? 'bun' : 'node'; |
| 8 | + const sqliteLabel = sqliteKind === 'bun' ? 'bun:sqlite' : 'node:sqlite'; |
| 9 | +- const sql = `SELECT name, value, host_key, path, expires_utc, samesite, encrypted_value, ` + |
| 10 | ++ const expiresCol = sqliteKind === 'node' && !supportsReadBigInts() |
| 11 | ++ ? 'CAST(expires_utc AS TEXT) AS expires_utc' |
| 12 | ++ : 'expires_utc'; |
| 13 | ++ const sql = `SELECT name, value, host_key, path, ${expiresCol}, samesite, encrypted_value, ` + |
| 14 | + `is_secure AS is_secure, is_httponly AS is_httponly ` + |
| 15 | + `FROM cookies WHERE (${where}) ORDER BY expires_utc DESC;`; |
| 16 | + const result = await queryNodeOrBun({ kind: sqliteKind, dbPath, sql }); |
| 17 | +diff --git a/dist/providers/chromeSqliteMac.d.ts b/dist/providers/chromeSqliteMac.d.ts |
| 18 | +index da0e8aaad456961d15185be1cc03b5f0bcd8d179..3a213b185ad4f36cf9f2a52b307d502510d5655f 100644 |
| 19 | +--- a/dist/providers/chromeSqliteMac.d.ts |
| 20 | ++++ b/dist/providers/chromeSqliteMac.d.ts |
| 21 | +@@ -3,5 +3,6 @@ export declare function getCookiesFromChromeSqliteMac(options: { |
| 22 | + profile?: string; |
| 23 | + includeExpired?: boolean; |
| 24 | + debug?: boolean; |
| 25 | ++ timeoutMs?: number; |
| 26 | + }, origins: string[], allowlistNames: Set<string> | null): Promise<GetCookiesResult>; |
| 27 | + //# sourceMappingURL=chromeSqliteMac.d.ts.map |
| 28 | +diff --git a/dist/providers/chromeSqliteMac.js b/dist/providers/chromeSqliteMac.js |
| 29 | +index 71c815f77378d03e07061976ac372b3a55a61ac4..3a85a2fce102128d7e7b69145d97bc353f663008 100644 |
| 30 | +--- a/dist/providers/chromeSqliteMac.js |
| 31 | ++++ b/dist/providers/chromeSqliteMac.js |
| 32 | +@@ -15,7 +15,7 @@ export async function getCookiesFromChromeSqliteMac(options, origins, allowlistN |
| 33 | + const passwordResult = await readKeychainGenericPasswordFirst({ |
| 34 | + account: 'Chrome', |
| 35 | + services: ['Chrome Safe Storage'], |
| 36 | +- timeoutMs: 3_000, |
| 37 | ++ timeoutMs: options.timeoutMs ?? 3_000, |
| 38 | + label: 'Chrome Safe Storage', |
| 39 | + }); |
| 40 | + if (!passwordResult.ok) { |
0 commit comments