Skip to content

Commit

Permalink
Updated dependencies, formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Feb 10, 2025
1 parent 529a6b6 commit fea4718
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 96 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"trailingComma": "es5",
"tabWidth": 4,
"printWidth": 150,
"arrowParens": "avoid"
"arrowParens": "avoid",
"experimentalOperatorPosition": "start"
}
175 changes: 94 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/backends/port/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import * as RPC from './rpc.js';
type FSMethods = ExtractProperties<FileSystem, (...args: any[]) => Promise<any> | UsageInfo>;
type FSMethod = keyof FSMethods;

export type FSRequest<TMethod extends FSMethod = FSMethod> = RPC.Message &
{
export type FSRequest<TMethod extends FSMethod = FSMethod> = RPC.Message
& {
[M in TMethod]: {
method: M;
args: Parameters<FSMethods[M]>;
Expand Down
10 changes: 5 additions & 5 deletions src/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,11 @@ export class BigIntStats extends StatsCommon<bigint> implements Node.BigIntStats
*/
export function isStatsEqual<T extends number | bigint>(left: StatsCommon<T>, right: StatsCommon<T>): boolean {
return (
left.size == right.size &&
+left.atime == +right.atime &&
+left.mtime == +right.mtime &&
+left.ctime == +right.ctime &&
left.mode == right.mode
left.size == right.size
&& +left.atime == +right.atime
&& +left.mtime == +right.mtime
&& +left.ctime == +right.ctime
&& left.mode == right.mode
);
}

Expand Down
Loading

0 comments on commit fea4718

Please sign in to comment.