From 698a7d60b29a47ecf04da48df506f90c669f8328 Mon Sep 17 00:00:00 2001 From: Jerome Wu Date: Sat, 25 May 2019 23:55:51 +0800 Subject: [PATCH] Revert "Update link in examples.md and build scripts" This reverts commit 313e69976577626a9212541f327e7ec8550d6360. --- docs/examples.md | 14 +++++++------- package-lock.json | 24 ++++-------------------- package.json | 3 +-- 3 files changed, 12 insertions(+), 29 deletions(-) diff --git a/docs/examples.md b/docs/examples.md index 38a9fd0..ac4924e 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -16,7 +16,7 @@ const { TesseractWorker } = Tesseract; const worker = new TesseractWorker(); worker - .recognize('https://tesseract.projectnaptha.com/img/eng_bw.png') + .recognize('http://jeroen.github.io/images/testocr.png') .then((result) => { console.log(result); }); @@ -31,7 +31,7 @@ const { TesseractWorker } = Tesseract; const worker = new TesseractWorker(); worker - .recognize('https://tesseract.projectnaptha.com/img/eng_bw.png') + .recognize('http://jeroen.github.io/images/testocr.png') .progress((p) => { console.log('progress', p); }) @@ -50,7 +50,7 @@ const worker = new TesseractWorker(); worker .recognize( - 'https://tesseract.projectnaptha.com/img/eng_bw.png', + 'http://jeroen.github.io/images/testocr.png', 'eng+chi_tra' ) .progress((p) => { @@ -73,7 +73,7 @@ const worker = new TesseractWorker(); worker .recognize( - 'https://tesseract.projectnaptha.com/img/eng_bw.png', + 'http://jeroen.github.io/images/testocr.png', 'eng', { 'tessedit_ocr_engine_mode': OEM.TESSERACT_ONLY, @@ -100,7 +100,7 @@ const worker = new TesseractWorker(); worker .recognize( - 'https://tesseract.projectnaptha.com/img/eng_bw.png', + 'http://jeroen.github.io/images/testocr.png', 'eng', { 'tessedit_pageseg_mode': PSM.SINGLE_BLOCK, @@ -126,7 +126,7 @@ const worker = new TesseractWorker(); worker .recognize( - 'https://tesseract.projectnaptha.com/img/eng_bw.png', + 'http://jeroen.github.io/images/testocr.png', 'eng', { 'tessedit_create_pdf': '1', @@ -150,7 +150,7 @@ const worker = new TesseractWorker(); worker .recognize( - 'https://tesseract.projectnaptha.com/img/eng_bw.png', + 'http://jeroen.github.io/images/testocr.png', 'eng', { 'tessedit_create_pdf': '1', diff --git a/package-lock.json b/package-lock.json index a813c32..e39e07c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7833,28 +7833,12 @@ "dev": true }, "rimraf": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", + "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", "dev": true, "requires": { - "glob": "^7.1.3" - }, - "dependencies": { - "glob": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", - "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - } + "glob": "^7.0.5" } }, "ripemd160": { diff --git a/package.json b/package.json index c72779e..1df7515 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "src/index.js", "scripts": { "start": "node scripts/server.js", - "build": "rimraf dist && webpack --progress --config scripts/webpack.config.prod.js", + "build": "webpack --progress --config scripts/webpack.config.prod.js", "prepublishOnly": "npm run build", "wait": "wait-on http://localhost:3000/package.json", "test": "npm-run-all -p -r start test:all", @@ -41,7 +41,6 @@ "mocha-headless-chrome": "^2.0.2", "npm-run-all": "^4.1.5", "nyc": "^13.1.0", - "rimraf": "^2.6.3", "wait-on": "^3.2.0", "webpack": "^4.26.0", "webpack-cli": "^3.1.2",