|
|
@ -187,11 +187,11 @@ process.umask = function() { return 0; }; |
|
|
|
},{}],2:[function(require,module,exports){ |
|
|
|
},{}],2:[function(require,module,exports){ |
|
|
|
module.exports={ |
|
|
|
module.exports={ |
|
|
|
"name": "tesseract.js", |
|
|
|
"name": "tesseract.js", |
|
|
|
"version": "1.0.13", |
|
|
|
"version": "1.0.14", |
|
|
|
"description": "Pure Javascript Multilingual OCR", |
|
|
|
"description": "Pure Javascript Multilingual OCR", |
|
|
|
"main": "src/index.js", |
|
|
|
"main": "src/index.js", |
|
|
|
"scripts": { |
|
|
|
"scripts": { |
|
|
|
"start": "concurrently --kill-others \"watchify src/index.js -t [ envify --NODE_ENV development ] -t [ babelify --presets [ es2015 ] ] -o dist/tesseract.dev.js --standalone Tesseract\" \"watchify src/browser/worker.js -t [ envify --NODE_ENV development ] -t [ babelify --presets [ es2015 ] ] -o dist/worker.dev.js\" \"http-server -p 7355\"", |
|
|
|
"start": "concurrently --kill-others \"watchify src/index.js -t [ envify --TESS_ENV development ] -t [ babelify --presets [ es2015 ] ] -o dist/tesseract.dev.js --standalone Tesseract\" \"watchify src/browser/worker.js -t [ envify --TESS_ENV development ] -t [ babelify --presets [ es2015 ] ] -o dist/worker.dev.js\" \"http-server -p 7355\"", |
|
|
|
"build": "browserify src/index.js -t [ babelify --presets [ es2015 ] ] -o dist/tesseract.js --standalone Tesseract && browserify src/browser/worker.js -t [ babelify --presets [ es2015 ] ] -o dist/worker.js && uglifyjs dist/tesseract.js --source-map -o dist/tesseract.min.js && uglifyjs dist/worker.js --source-map -o dist/worker.min.js", |
|
|
|
"build": "browserify src/index.js -t [ babelify --presets [ es2015 ] ] -o dist/tesseract.js --standalone Tesseract && browserify src/browser/worker.js -t [ babelify --presets [ es2015 ] ] -o dist/worker.js && uglifyjs dist/tesseract.js --source-map -o dist/tesseract.min.js && uglifyjs dist/worker.js --source-map -o dist/worker.min.js", |
|
|
|
"release": "npm run build && git commit -am 'new release' && git push && git tag `jq -r '.version' package.json` && git push origin --tags && npm publish" |
|
|
|
"release": "npm run build && git commit -am 'new release' && git push && git tag `jq -r '.version' package.json` && git push origin --tags && npm publish" |
|
|
|
}, |
|
|
|
}, |
|
|
@ -242,7 +242,7 @@ var defaultOptions = { |
|
|
|
langPath: 'https://tessdata.projectnaptha.com/3.02/' |
|
|
|
langPath: 'https://tessdata.projectnaptha.com/3.02/' |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
if (process.env.NODE_ENV === "development") { |
|
|
|
if (process.env.TESS_ENV === "development") { |
|
|
|
console.debug('Using Development Configuration'); |
|
|
|
console.debug('Using Development Configuration'); |
|
|
|
defaultOptions.workerPath = location.protocol + '//' + location.host + '/dist/worker.dev.js?nocache=' + Math.random().toString(36).slice(3); |
|
|
|
defaultOptions.workerPath = location.protocol + '//' + location.host + '/dist/worker.dev.js?nocache=' + Math.random().toString(36).slice(3); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|