Sleavely / Bark-JS

🔬 Parse barcode inputs 🏷️ in a unified GS1-128 format 📦🌐
Other
28 stars 8 forks source link

Unable to parse a barcode that contains a date #23

Closed reidprojects closed 2 years ago

reidprojects commented 3 years ago

Since I updated to the latest version, the decoding fails as soon as their is a date AI in the barcode.

Tested with AI 11 and 17, same behavior.

After investigation, this is linked to the changes made in d01ae5a

It looks like this is undefined, so I would suggest to go back with exports.

reidprojects commented 3 years ago

See #24 for a fix

Sleavely commented 3 years ago

Would you mind elaborating a little bit on how you build your project, do you for example use something like Webpack or Rollup that modifies the code of your dependencies?

A similar issue was posted a while back but I would really like to understand the issue before making modifications