Skip to content

Commit 59d21c4

Browse files
committed
Directly import from index.ts in pdf split code
This avoids an import error for me locally, so it may help other users.
1 parent c67a6f7 commit 59d21c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hooks/custom/SplitPdfHook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
prepareResponseHeaders,
2323
splitPdf,
2424
stringToBoolean,
25-
} from "./utils";
25+
} from "./utils/index";
2626
import {
2727
MIN_PAGES_PER_THREAD,
2828
PARTITION_FORM_FILES_KEY,

test/unit/utils/pdf.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
pdfPagesToBlob,
77
splitPdf,
88
} from "../../../src/hooks/custom/utils";
9-
import { getOptimalSplitSize } from "../../../hooks/custom/utils";
9+
import { getOptimalSplitSize } from "../../../hooks/custom/utils/index";
1010
import { MAX_PAGES_PER_THREAD, MIN_PAGES_PER_THREAD } from "../../../hooks/custom/common";
1111

1212
describe("Pdf utility functions", () => {

0 commit comments

Comments
 (0)