Skip to content

Commit

Permalink
📦 Release v3.5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
lindell committed Mar 21, 2017
1 parent 2954ddb commit b6b6af2
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 24 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ Download or get the CDN link to the script:
|------|--------------------|:-----------:|---------------:|
| *All* | *All the barcodes!* | *8.4 kB* | *[JsBarcode.all.min.js][1]* |
| CODE128 | CODE128 (auto and force mode) | 5.5 kB | [JsBarcode.code128.min.js][2] |
| CODE39 | CODE39 | 4.6 kB | [JsBarcode.code39.min.js][3] |
| CODE39 | CODE39 | 4.7 kB | [JsBarcode.code39.min.js][3] |
| EAN / UPC | EAN-13, EAN-8, EAN-5, EAN-2, UPC (A) | 5.4 kB | [JsBarcode.ean-upc.min.js][4] |
| ITF-14 | ITF-14 | 4.4 kB | [JsBarcode.itf-14.min.js][5] |
| ITF-14 | ITF-14 | 4.5 kB | [JsBarcode.itf-14.min.js][5] |
| ITF | ITF | 4.4 kB | [JsBarcode.itf.min.js][6] |
| MSI | MSI, MSI10, MSI11, MSI1010, MSI1110 | 4.6 kB | [JsBarcode.msi.min.js][7] |
| Pharmacode | Pharmacode | 4.3 kB | [JsBarcode.pharmacode.min.js][8] |
| Codabar | Codabar | 4.4 kB | [JsBarcode.codabar.min.js][9] |
| Codabar | Codabar | 4.5 kB | [JsBarcode.codabar.min.js][9] |

### Step 2:
Include the script in your code:
Expand Down
3 changes: 3 additions & 0 deletions bin/JsBarcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ function registerBarcode(barcodes, name) {
API.prototype[name] = API.prototype[name.toUpperCase()] = API.prototype[name.toLowerCase()] = function (text, options) {
var api = this;
return api._errorHandler.wrapBarcodeCall(function () {
// Ensure text is options.text
options.text = typeof options.text === 'undefined' ? undefined : '' + options.text;

var newOptions = (0, _merge2.default)(api._options, options);
newOptions = (0, _optionsFromStrings2.default)(newOptions);
var Encoder = barcodes[name];
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "JsBarcode",
"main": "dist/JsBarcode.all.min.js",
"version": "3.5.8",
"version": "3.5.9",
"homepage": "https://github.com/lindell/JsBarcode",
"authors": [
"Johan Lindell <johan@lindell.me>"
Expand Down
3 changes: 3 additions & 0 deletions dist/JsBarcode.all.js
Original file line number Diff line number Diff line change
Expand Up @@ -3187,6 +3187,9 @@ function registerBarcode(barcodes, name) {
API.prototype[name] = API.prototype[name.toUpperCase()] = API.prototype[name.toLowerCase()] = function (text, options) {
var api = this;
return api._errorHandler.wrapBarcodeCall(function () {
// Ensure text is options.text
options.text = typeof options.text === 'undefined' ? undefined : '' + options.text;

var newOptions = (0, _merge2.default)(api._options, options);
newOptions = (0, _optionsFromStrings2.default)(newOptions);
var Encoder = barcodes[name];
Expand Down
6 changes: 3 additions & 3 deletions dist/JsBarcode.all.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/barcodes/JsBarcode.codabar.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/barcodes/JsBarcode.code128.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/barcodes/JsBarcode.code39.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/barcodes/JsBarcode.ean-upc.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/barcodes/JsBarcode.itf-14.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/barcodes/JsBarcode.itf.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/barcodes/JsBarcode.msi.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/barcodes/JsBarcode.pharmacode.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsbarcode",
"version": "3.5.8",
"version": "3.5.9",
"description": "JsBarcode is a customizable barcode generator with support for multiple barcode formats.",
"main": "./bin/JsBarcode.js",
"directories": {
Expand Down

0 comments on commit b6b6af2

Please sign in to comment.