From 794a17472ad599e0278f25cc087f47444a5e8217 Mon Sep 17 00:00:00 2001 From: Jerome Wu Date: Fri, 17 May 2019 14:22:01 +0800 Subject: [PATCH] Upgrade tesseract.js-core to fix issue --- README.md | 2 +- docs/local-installation.md | 4 ++-- package-lock.json | 6 +++--- package.json | 2 +- src/browser/index.js | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e4af5f1..6778029 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Tesseract.js works with a ` + ``` After including your scripts, the `Tesseract` variable will be defined globally! diff --git a/docs/local-installation.md b/docs/local-installation.md index 9f2c874..0a064f6 100644 --- a/docs/local-installation.md +++ b/docs/local-installation.md @@ -10,9 +10,9 @@ In Node.js environment, the only path you may want to customize is languages/lan ```javascript const worker = Tesseract.TesseractWorker({ - workerPath: 'https://unpkg.com/tesseract.js@v2.0.0-alpha.5/dist/worker.min.js', + workerPath: 'https://unpkg.com/tesseract.js@v2.0.0-alpha.6/dist/worker.min.js', langPath: 'https://tessdata.projectnaptha.com/4.0.0', - corePath: 'https://unpkg.com/tesseract.js-core@v2.0.0-beta.9/tesseract-core.wasm.js', + corePath: 'https://unpkg.com/tesseract.js-core@v2.0.0-beta.10/tesseract-core.wasm.js', }); ``` diff --git a/package-lock.json b/package-lock.json index dd39372..c71bbfa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7141,9 +7141,9 @@ } }, "tesseract.js-core": { - "version": "2.0.0-beta.9", - "resolved": "https://registry.npmjs.org/tesseract.js-core/-/tesseract.js-core-2.0.0-beta.9.tgz", - "integrity": "sha512-W6r+H7ahm/X8hd97xQ0i67qILXIjklPd4VL1xJ7FeDbIQueCybl1GmVsnjUq64uBCnEtI1VUnbHFX2hzbidcVw==" + "version": "2.0.0-beta.10", + "resolved": "https://registry.npmjs.org/tesseract.js-core/-/tesseract.js-core-2.0.0-beta.10.tgz", + "integrity": "sha512-QmNgMA9m5ES5uMTqpOAPysrUA80vUx/6WKQlfkK3zhOeAgqv8DjwwcDv9tQv2TgRzOQ+LFKrJn94Y2rw5b2IGw==" }, "tesseract.js-utils": { "version": "1.0.0-beta.5", diff --git a/package.json b/package.json index 95e4d42..57993f7 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "is-url": "1.2.2", "node-fetch": "^2.3.0", "resolve-url": "^0.2.1", - "tesseract.js-core": "^2.0.0-beta.9", + "tesseract.js-core": "^2.0.0-beta.10", "tesseract.js-utils": "^1.0.0-beta.5" }, "repository": { diff --git a/src/browser/index.js b/src/browser/index.js index 9f80d5e..c69c40f 100644 --- a/src/browser/index.js +++ b/src/browser/index.js @@ -102,7 +102,7 @@ exports.defaultOptions = { * If browser doesn't support WebAssembly, * load ASM version instead */ - corePath: `https://unpkg.com/tesseract.js-core@v2.0.0-beta.9/tesseract-core.${typeof WebAssembly === 'object' ? 'wasm' : 'asm'}.js`, + corePath: `https://unpkg.com/tesseract.js-core@v2.0.0-beta.10/tesseract-core.${typeof WebAssembly === 'object' ? 'wasm' : 'asm'}.js`, }; /**