Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"test:light": "node tests/runner.mjs spec",
"test:integration": "node tests/runner.mjs integration",
"test:integration:light": "node tests/runner.mjs integration",
"test:v2": "tsc --noEmit && node tests/runner.mjs spec v2",
"lint": "tsc --noEmit && eslint --report-unused-disable-directives './src/**/*.ts' './tests/**/*.ts'",
"lint:fix": "tsc --noEmit && eslint --fix --report-unused-disable-directives './src/**/*.ts' './tests/**/*.ts'",
"test:v2": "tsc -p tsconfig.test.json && node tests/runner.mjs spec v2",
"lint": "tsc -p tsconfig.test.json && eslint --report-unused-disable-directives './src/**/*.ts' './tests/**/*.ts'",
"lint:fix": "tsc -p tsconfig.test.json && eslint --fix --report-unused-disable-directives './src/**/*.ts' './tests/**/*.ts'",
"lint:package": "npm run build:dist && publint ./dist && attw --pack ./dist --profile esm-only",
"lint:secrets": "secretlint '**/*'",
"license:check": "license-checker-rseidelsohn --onlyAllow \"MIT;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC;LGPL-3.0-or-later;LGPL-3.0-only;Python-2.0;BlueOak-1.0.0;CC-BY-3.0;CC-BY-4.0;CC0-1.0;0BSD;WTFPL;Artistic-2.0;Unlicense\"",
Expand Down Expand Up @@ -92,7 +92,7 @@
"tslib": "^2.8.1",
"tsx": "^4.21.0",
"typedoc": "^0.28.18",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"typescript-eslint": "^8.70.0"
},
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions tests/v2/fileOperations/split.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import * as fs from "node:fs";
import { fileURLToPath } from "node:url";

import { Client, PathInput } from "@/index.js";
import { ExtractedPdfs } from "@/pdf/index.js";
import { Split } from "@/v2/product/split/index.js";
import { Extraction, ExtractionResponse } from "@/v2/product/extraction/index.js";
import { SplitFiles } from "@/v2/fileOperations/splitFiles.js";
import { V2_PRODUCT_PATH } from "../../index.js";
import { SimpleField } from "@/v2/parsing/inference/field/index.js";
import { hasAllOptionalDependencies } from "../../helpers/optionalDeps.js";
Expand Down Expand Up @@ -65,7 +65,7 @@ describe("MindeeV2 - Integration - Product - Split #OptionalDepsRequired",

assert.equal(response.inference.file.pageCount, 2);

const extractedPdfs: SplitFiles = await response.inference.result.extractFromInputSource(splitInput);
const extractedPdfs: ExtractedPdfs = await response.inference.result.extractFromInputSource(splitInput);

assert.equal(extractedPdfs.length, 2);
assert.equal(extractedPdfs[0].filename, "default_sample_page_001-001.pdf");
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"baseUrl": "./",
"rootDir": "./",
"declaration": true,
"importHelpers": false,
Expand Down
6 changes: 6 additions & 0 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "noEmit": true },
"include": ["./src/**/*", "./bin/**/*", "./tests/**/*"],
Comment thread
ianardee marked this conversation as resolved.
"exclude": ["./node_modules/", "./dist/"]
}
Loading