Skip to content

Commit

Permalink
Fix for #199 - Null bytes in binary data
Browse files Browse the repository at this point in the history
  • Loading branch information
metafloor committed Apr 8, 2021
1 parent 9edc8e4 commit 58cfa1e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ found at the end of this document.

## Status

* Current bwip-js version is 2.1.2 (2021-04-06)
* Current bwip-js version is 2.1.3 (2021-04-08)
* Current BWIPP version is 2021-02-06
* Node.js compatibility: 0.12+
* Browser compatibility: Edge, Firefox, Chrome
Expand Down
4 changes: 2 additions & 2 deletions dist/bwip-js-min.js

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions dist/bwip-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,9 +591,6 @@ function BWIPP() {
function $forall(o, cb) {
if (o instanceof Uint8Array) {
for (var i = 0, l = o.length; i < l; i++) {
if (!o[i]) {
break;
}
$k[$j++] = o[i];
if (cb && cb()) break;
}
Expand Down Expand Up @@ -35021,8 +35018,7 @@ function BWIPP() {
return true;
}
}
BWIPP.VERSION = '2021-02-06';
// file : bwipjs.js
BWIPP.VERSION = '2021-02-06';// file : bwipjs.js
//
// Graphics-context interface to the BWIPP cross-compiled code

Expand Down Expand Up @@ -38263,7 +38259,7 @@ return {
toCanvas:ToCanvas, render:Render, raw:Raw,
fixupOptions:FixupOptions,
loadFont:FontLib.loadFont,
VERSION:'2.1.2 (2021-04-06)',
VERSION:'2.1.3 (2021-04-08)',

// Internals
BWIPJS:BWIPJS, BWIPP:BWIPP, STBTT:STBTT, FontLib:FontLib,
Expand Down
8 changes: 2 additions & 6 deletions dist/node-bwipjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,6 @@ function BWIPP() {
function $forall(o, cb) {
if (o instanceof Uint8Array) {
for (var i = 0, l = o.length; i < l; i++) {
if (!o[i]) {
break;
}
$k[$j++] = o[i];
if (cb && cb()) break;
}
Expand Down Expand Up @@ -35055,8 +35052,7 @@ function BWIPP() {
return true;
}
}
BWIPP.VERSION = '2021-02-06';
// file : bwipjs.js
BWIPP.VERSION = '2021-02-06';// file : bwipjs.js
//
// Graphics-context interface to the BWIPP cross-compiled code

Expand Down Expand Up @@ -38438,7 +38434,7 @@ return {
request:Request, toBuffer:ToBuffer, render:Render, raw:Raw,
fixupOptions:FixupOptions,
loadFont:FontLib.loadFont,
VERSION:'2.1.2 (2021-04-06)',
VERSION:'2.1.3 (2021-04-08)',

// Internals
BWIPJS:BWIPJS, BWIPP:BWIPP, STBTT:STBTT, FontLib:FontLib,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bwip-js",
"version": "2.1.2",
"version": "2.1.3",
"description": "JavaScript barcode generator supporting over 100 types and standards.",
"main": "./dist/node-bwipjs.js",
"browser": "./dist/bwip-js.js",
Expand Down
5 changes: 1 addition & 4 deletions src/bwipp.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,6 @@ function BWIPP() {
function $forall(o, cb) {
if (o instanceof Uint8Array) {
for (var i = 0, l = o.length; i < l; i++) {
if (!o[i]) {
break;
}
$k[$j++] = o[i];
if (cb && cb()) break;
}
Expand Down Expand Up @@ -34778,4 +34775,4 @@ function BWIPP() {
return true;
}
}
BWIPP.VERSION = '2021-02-06';
BWIPP.VERSION = '2021-02-06';

0 comments on commit 58cfa1e

Please sign in to comment.