bwip-js
Advanced tools
Comparing version 3.3.1 to 3.4.0
{ | ||
"name": "bwip-js", | ||
"version": "3.3.1", | ||
"version": "3.4.0", | ||
"description": "JavaScript barcode generator supporting over 100 types and standards.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/bwip-js-node.js", |
@@ -14,4 +14,4 @@ # // Barcode Writer in Pure JavaScript | ||
* Current bwip-js version is 3.3.1 (2023-04-04) | ||
* Current BWIPP version is 2023-02-16 | ||
* Current bwip-js version is 3.4.0 (2023-04-06) | ||
* Current BWIPP version is 2023-04-03 | ||
* Node.js compatibility: 0.12+ | ||
@@ -18,0 +18,0 @@ * Browser compatibility: Edge, Firefox, Chrome |
@@ -62,5 +62,3 @@ // exports.js | ||
} else { | ||
return new Promise(function(resolve, reject) { | ||
reject(e); | ||
}); | ||
return Promise.reject(e); | ||
} | ||
@@ -77,5 +75,3 @@ } | ||
} else { | ||
return new Promise(function(resolve, reject) { | ||
reject(e); | ||
}); | ||
return Promise.reject(e); | ||
} | ||
@@ -82,0 +78,0 @@ } |
@@ -104,8 +104,6 @@ // fontlib.js | ||
var glyph = STBTT.GetGlyph(font, charcode, width * font.bwipjs_multx / 100, | ||
height * font.bwipjs_multy / 100) || | ||
STBTT.GetGlyph(font, 0, width * font.bwipjs_multx / 100, | ||
height * font.bwipjs_multy / 100); | ||
if (!glyph) { | ||
glyph = STBTT.GetGlyph(font, 0, width * font.bwipjs_multx / 100, | ||
height * font.bwipjs_multy / 100); | ||
} | ||
glyph.bytes = glyph.pixels; | ||
@@ -112,0 +110,0 @@ glyph.cachekey = cachekey; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
10938818
188922