new release

master
Jerome Wu 6 years ago
parent 6132f2169d
commit 464565e335
  1. 10
      dist/tesseract.js

10
dist/tesseract.js vendored

@ -187,7 +187,7 @@ process.umask = function() { return 0; };
},{}],2:[function(require,module,exports){
module.exports={
"name": "tesseract.js",
"version": "1.0.11",
"version": "1.0.12",
"description": "Pure Javascript Multilingual OCR",
"main": "src/index.js",
"scripts": {
@ -236,9 +236,9 @@ module.exports={
'use strict';
var defaultOptions = {
// workerPath: 'https://rawcdn.githack.com/naptha/tesseract.js/0.2.0/dist/worker.js',
corePath: 'https://rawcdn.githack.com/naptha/tesseract.js-core/0.1.0/index.js',
langPath: 'https://rawcdn.githack.com/naptha/tessdata/gh-pages/3.02/'
// workerPath: 'https://cdn.jsdelivr.net/gh/naptha/tesseract.js@0.2.0/dist/worker.js',
corePath: 'https://cdn.jsdelivr.net/gh/naptha/tesseract.js-core@0.1.0/index.js',
langPath: 'https://cdn.jsdelivr.net/gh/naptha/tessdata@gh-pages/3.02/'
};
if (process.env.NODE_ENV === "development") {
@ -246,7 +246,7 @@ if (process.env.NODE_ENV === "development") {
defaultOptions.workerPath = location.protocol + '//' + location.host + '/dist/worker.dev.js?nocache=' + Math.random().toString(36).slice(3);
} else {
var version = require('../../package.json').version;
defaultOptions.workerPath = 'https://rawcdn.githack.com/naptha/tesseract.js/' + version + '/dist/worker.js';
defaultOptions.workerPath = 'https://cdn.jsdelivr.net/gh/naptha/tesseract.js@' + version + '/dist/worker.js';
}
exports.defaultOptions = defaultOptions;

Loading…
Cancel
Save