Skip to content

Commit e1ef66f

Browse files
committed
fix: keep atomic fault helpers internal
1 parent 4cdffd7 commit e1ef66f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/__tests__/test-utils/filesystem-boundary-faults.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export type FilesystemBoundaryFixture = {
1717

1818
export type FilesystemBoundaryOwner = (root: string) => FilesystemBoundaryFixture;
1919

20-
export const FILESYSTEM_ERRNOS: readonly FilesystemErrno[] = ['EIO', 'ENOSPC', 'EMFILE'];
21-
export const FILESYSTEM_FAULT_POINTS: readonly FilesystemFaultPoint[] = ['write', 'rename'];
20+
const FILESYSTEM_ERRNOS: readonly FilesystemErrno[] = ['EIO', 'ENOSPC', 'EMFILE'];
21+
const FILESYSTEM_FAULT_POINTS: readonly FilesystemFaultPoint[] = ['write', 'rename'];
2222

2323
/** Registers every fault row for a typed owner table. Missing required owners fail typechecking. */
2424
export function registerFilesystemBoundaryMatrix(
@@ -63,7 +63,7 @@ export function registerFilesystemBoundaryMatrix(
6363
}
6464
}
6565

66-
export function installFilesystemFault(options: {
66+
function installFilesystemFault(options: {
6767
faultPoint: FilesystemFaultPoint;
6868
errno: FilesystemErrno;
6969
targetPath: string;

‎src/utils/atomic-file.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function withAtomicPublishTempPathSync<T>(
6464
}
6565

6666
/** Returns the canonical same-directory temp path used by atomic publishers. */
67-
export function createAtomicPublishTempPath(destination: string): string {
67+
function createAtomicPublishTempPath(destination: string): string {
6868
return path.join(
6969
path.dirname(destination),
7070
`.${path.basename(destination)}.${process.pid}-${crypto.randomUUID()}.tmp`,

0 commit comments

Comments
 (0)