mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-05 16:34:00 +01:00
fix(context-bill): exactSendFiles does not swallow a realpath error
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
21f9c1c245
commit
0ead0e1119
1 file changed
+1
-3
+1
-3
@@ -799,9 +799,7 @@ export function exactSendFiles(root: string): string[] {
|
||||
const priced = new Set<string>();
|
||||
buildBill(resolved, {
|
||||
tokensOf: (key) => {
|
||||
try {
|
||||
priced.add(fs.realpathSync(key.endsWith(fmSuffix) ? key.slice(0, -fmSuffix.length) : key));
|
||||
} catch {}
|
||||
priced.add(fs.realpathSync(key.endsWith(fmSuffix) ? key.slice(0, -fmSuffix.length) : key));
|
||||
return 0;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user