Skip to content

Commit

Permalink
📦 Release v3.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
lindell committed Nov 6, 2016
1 parent fd1ad1b commit 69b6c2f
Show file tree
Hide file tree
Showing 14 changed files with 137 additions and 127 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ Download or get the CDN link to the script:
| Name | Supported barcodes | Size (gzip) | CDN / Download |
|------|--------------------|:-----------:|---------------:|
| *All* | *All the barcodes!* | *8.3 kB* | *[JsBarcode.all.min.js][1]* |
| CODE128 | CODE128 (auto and force mode) | 5.4 kB | [JsBarcode.code128.min.js][2] |
| CODE128 | CODE128 (auto and force mode) | 5.5 kB | [JsBarcode.code128.min.js][2] |
| CODE39 | CODE39 | 4.6 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
13 changes: 9 additions & 4 deletions bin/JsBarcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ var _getRenderProperties = require('./help/getRenderProperties.js');

var _getRenderProperties2 = _interopRequireDefault(_getRenderProperties);

var _optionsFromStrings = require('./help/optionsFromStrings.js');

var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings);

var _ErrorHandler = require('./exceptions/ErrorHandler.js');

var _ErrorHandler2 = _interopRequireDefault(_ErrorHandler);
Expand All @@ -33,7 +37,9 @@ var _defaults2 = _interopRequireDefault(_defaults);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

// The protype of the object returned from the JsBarcode() call
// Import all the barcodes


// Help functions
var API = function API() {};

// The first call of the library API
Expand All @@ -45,9 +51,7 @@ var API = function API() {};


// Exceptions


// Help functions
// Import all the barcodes
var JsBarcode = function JsBarcode(element, text, options) {
var api = new API();

Expand Down Expand Up @@ -92,6 +96,7 @@ function registerBarcode(barcodes, name) {
var api = this;
return api._errorHandler.wrapBarcodeCall(function () {
var newOptions = (0, _merge2.default)(api._options, options);
newOptions = (0, _optionsFromStrings2.default)(newOptions);
var Encoder = barcodes[name];
var encoded = encode(text, Encoder, newOptions);
api._encodings.push(encoded);
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.4",
"version": "3.5.5",
"homepage": "https://github.com/lindell/JsBarcode",
"authors": [
"Johan Lindell <johan@lindell.me>"
Expand Down

0 comments on commit 69b6c2f

Please sign in to comment.