Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-barcode-generator

Package Overview
Dependencies
3
Maintainers
3
Versions
91
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 23.1.36 to 23.1.43

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

### Barcode
#### Bug Fixes
- `#I508544` - Now, the DataMatrix barcode is rendered properly with alphanumeric values.
## 19.1.63 (2021-05-13)

@@ -7,0 +13,0 @@

4

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 23.1.36
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
* version : 23.1.43
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
* Use of this code is subject to the terms of our license.

@@ -6,0 +6,0 @@ * A copy of the current license can be obtained at any time by e-mailing

@@ -5,3 +5,3 @@ {

"_inBundle": false,
"_integrity": "sha512-/cwLCBqJOlt9IFOrIXLJMxLnc19GKwpZpqaOo+3iVCTf3DcbQ9r+ArFXXQg7hNQGPbZSDO971nHzinn09AO3tw==",
"_integrity": "sha512-8P4NasKGQmMLnocc9mPO1+zikS5lgdJfj/k7NOGGd1x9Fg7tHKsbwC0GOCs8LNZuVrrL1BiIX1pRUgS/UiC/5Q==",
"_location": "/@syncfusion/ej2-barcode-generator",

@@ -27,4 +27,4 @@ "_phantomChildren": {},

],
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-barcode-generator/-/ej2-barcode-generator-19.4.0.tgz",
"_shasum": "2319d61fbd9205a79bc7fc868093095135287906",
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-barcode-generator/-/ej2-barcode-generator-19.4.0.tgz",
"_shasum": "5671a5935442dda5cd3165fde63c539e7fa0b6f5",
"_spec": "@syncfusion/ej2-barcode-generator@*",

@@ -40,4 +40,4 @@ "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",

"dependencies": {
"@syncfusion/ej2-base": "~23.1.36",
"@syncfusion/ej2-data": "~23.1.36"
"@syncfusion/ej2-base": "~23.1.41",
"@syncfusion/ej2-data": "~23.1.43"
},

@@ -70,4 +70,4 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "23.1.36",
"version": "23.1.43",
"sideEffects": false
}

@@ -93,3 +93,3 @@ import { QuietZone, DataMatrixSize } from '../barcode/enum/enum';

DataMatrix.prototype.DataMatrixEncoder = function (dataCodeword) {
var result = dataCodeword;
var result = new Array(dataCodeword.length);
var index = 0;

@@ -111,14 +111,19 @@ for (var i = 0; i < dataCodeword.length; i++) {

if (priorValue !== 235 && prevValue >= 48 && prevValue <= 57) {
result[parseInt(prevIndex.toString(), 10)] = (10 * (prevValue - 0) + (dataCodeword[parseInt(i.toString(), 10)] - 0) + 130);
//Bug 851922: DataMatrix barcode not working for alphanumeric value
// Modified (prevValue - 0) into (prevValue - 48) for proper calculation as the '0' corresponds to the decimal value 48 in the ASCII table.
result[parseInt(prevIndex.toString(), 10)] = (10 * (prevValue - 48) + (dataCodeword[parseInt(i.toString(), 10)] - 48) + 130);
}
else {
result[index++] = (dataCodeword[parseInt(i.toString(), 10)] + 1);
result[parseInt(index.toString(), 10)] = (dataCodeword[parseInt(i.toString(), 10)] + 1);
index++;
}
}
else if (dataCodeword[parseInt(i.toString(), 10)] < 127) {
result[index++] = (dataCodeword[parseInt(i.toString(), 10)] + 1);
result[parseInt(index.toString(), 10)] = (dataCodeword[parseInt(i.toString(), 10)] + 1);
index++;
}
else {
result[parseInt(index.toString(), 10)] = 235;
result[index++] = (((dataCodeword[parseInt(i.toString(), 10)] - 127)));
result[parseInt(index.toString(), 10)] = (((dataCodeword[parseInt(i.toString(), 10)] - 127)));
index++;
}

@@ -128,3 +133,7 @@ }

encodedData = this.fillZero(encodedData);
encodedData = result;
//Bug 851922: DataMatrix barcode not working for alphanumeric value
// Modified the "encodedData = result" code into below for proper assignement of value from result to encodedData.
for (var i = 0; i < index; i++) {
encodedData[parseInt(i.toString(), 10)] = result[parseInt(i.toString(), 10)];
}
return encodedData;

@@ -131,0 +140,0 @@ };

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 too big to display

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 too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc