Skip to content

Commit

Permalink
build(deps): bump tesseract.js from 3.0.3 to 4.0.0 (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Nov 28, 2022
1 parent ac7d472 commit 2832a56
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
30 changes: 15 additions & 15 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"jest": "jest",
"jest:coverage": "jest --coverage",
"lint": "eslint . --cache --ext js,jsx,ts,tsx --ignore-path .gitignore",
"lint:licenses": "license-checker --direct --excludePackages=\"caniuse-lite@1.0.30001434;duck@0.1.12;language-subtag-registry@0.3.22;tesseract.js-core@3.0.2;url-template@2.0.8\" --onlyAllow=\"0BSD;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC;MIT;Python-2.0;Unlicense\" --production --summary",
"lint:licenses": "license-checker --direct --excludePackages=\"caniuse-lite@1.0.30001434;duck@0.1.12;language-subtag-registry@0.3.22;tesseract.js-core@4.0.0;url-template@2.0.8\" --onlyAllow=\"0BSD;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC;MIT;Python-2.0;Unlicense\" --production --summary",
"lint:prettier": "prettier . -w -u",
"lint:prettier:ci": "prettier . -c -u",
"prepare": "husky install",
Expand Down Expand Up @@ -121,7 +121,7 @@
"pino": "^8.7.0",
"redoc": "^2.0.0",
"secure-json-parse": "^2.5.0",
"tesseract.js": "^3.0.3",
"tesseract.js": "^4.0.0",
"upath": "^2.0.1"
}
}
3 changes: 1 addition & 2 deletions src/plugins/image-to-txt/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ async function plugin(server, options) {
Array(options.workers)
.fill(0)
.map(async () => {
const worker = createWorker(workerConfig);
await worker.load();
const worker = await createWorker(workerConfig);
await worker.loadLanguage(options.languages);
await worker.initialize(options.languages);
await worker.setParameters(workerParams);
Expand Down

0 comments on commit 2832a56

Please sign in to comment.