Fixes Code 39 decoding where parts of the results are skipped. Relates to #41

pull/79/head
Christoph Oberhofer 10 years ago
parent 7a3fc1e66c
commit 79356dcdbd

@ -1,7 +1,7 @@
quaggaJS quaggaJS
======== ========
- [Changelog](#changelog) (2015-10-13) - [Changelog](#changelog) (2015-11-15)
## What is QuaggaJS? ## What is QuaggaJS?
@ -434,6 +434,12 @@ on the ``singleChannel`` flag in the configuration when using ``decodeSingle``.
## <a name="changelog">Changelog</a> ## <a name="changelog">Changelog</a>
### 2015-11-15
- Fixes
- Fixed inconsistency in Code 39 decoding
- added inline-source-map to quagga.js file
### 2015-10-13 ### 2015-10-13
Take a look at the release-notes ([0.8.0] Take a look at the release-notes ([0.8.0]
(https://github.com/serratus/quaggaJS/releases/tag/v0.8.0)) (https://github.com/serratus/quaggaJS/releases/tag/v0.8.0))

3
dist/quagga.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -94,7 +94,7 @@
</p> </p>
</footer> </footer>
<script src="../src/vendor/jquery-1.9.0.min.js" type="text/javascript"></script> <script src="vendor/jquery-1.9.0.min.js" type="text/javascript"></script>
<script src="../dist/quagga.js" type="text/javascript"></script> <script src="../dist/quagga.js" type="text/javascript"></script>
<script src="live_w_locator.js" type="text/javascript"></script> <script src="live_w_locator.js" type="text/javascript"></script>
</body> </body>

File diff suppressed because one or more lines are too long

@ -9,7 +9,7 @@
"babel-core": "^5.8.25", "babel-core": "^5.8.25",
"babel-eslint": "^4.1.3", "babel-eslint": "^4.1.3",
"babel-loader": "^5.3.2", "babel-loader": "^5.3.2",
"chai": "^3.2.0", "chai": "^1.10.0",
"core-js": "^1.2.1", "core-js": "^1.2.1",
"grunt": "^0.4.5", "grunt": "^0.4.5",
"grunt-contrib-jshint": "^0.11.3", "grunt-contrib-jshint": "^0.11.3",
@ -30,6 +30,7 @@
"karma-source-map-support": "^1.1.0", "karma-source-map-support": "^1.1.0",
"karma-webpack": "^1.7.0", "karma-webpack": "^1.7.0",
"mocha": "^2.3.2", "mocha": "^2.3.2",
"phantomjs": "^1.9.18",
"sinon": "^1.16.1", "sinon": "^1.16.1",
"webpack": "^1.12.2" "webpack": "^1.12.2"
}, },

@ -10,7 +10,6 @@ MyUmdPlugin.prototype.apply = function(compiler) {
var mainTemplate = compilation.mainTemplate; var mainTemplate = compilation.mainTemplate;
compilation.templatesPlugin("render-with-entry", function(source, chunk, hash) { compilation.templatesPlugin("render-with-entry", function(source, chunk, hash) {
var amdFactory = "factory";
return new ConcatSource(new OriginalSource( return new ConcatSource(new OriginalSource(
"(function webpackUniversalModuleDefinition(root, factory) {\n" + "(function webpackUniversalModuleDefinition(root, factory) {\n" +
" if(typeof exports === 'object' && typeof module === 'object')\n" + " if(typeof exports === 'object' && typeof module === 'object')\n" +

@ -116,6 +116,7 @@ Code39Reader.prototype._patternToChar = function(pattern) {
return String.fromCharCode(self.ALPHABET[i]); return String.fromCharCode(self.ALPHABET[i]);
} }
} }
return -1;
}; };
Code39Reader.prototype._findNextWidth = function(counters, current) { Code39Reader.prototype._findNextWidth = function(counters, current) {

@ -6,7 +6,7 @@ module.exports = {
entry: [ entry: [
'./src/quagga.js' './src/quagga.js'
], ],
devtool: 'source-map', devtool: 'inline-source-map',
module: { module: {
loaders: [{ loaders: [{
test: /\.jsx?$/, test: /\.jsx?$/,
@ -24,8 +24,7 @@ module.exports = {
output: { output: {
path: __dirname + '/dist', path: __dirname + '/dist',
publicPath: '/', publicPath: '/',
filename: 'quagga.js', filename: 'quagga.js'
sourceMapFilename: 'quagga.map'
}, },
devServer: { devServer: {
contentBase: './', contentBase: './',

Loading…
Cancel
Save