Open viomck opened 2 years ago
I'm concerned about this too, as I couldn't figure out where this code comes from.
QRCodeModel
it uses QRCode
.Both libraries (2, 3) are missing the QRCodeLimitLength
variable though.
Edit: I pretty-printed the obfuscated code with Prettier and compared the three versions. This version is nearly identical to the non-obfuscated version from [3] but with support for utf8 characters from [1]. Unlike this version, however, [3] can determine the type number automatically depending on the data length (ie. https://github.com/kazuhikoarase/qrcode-generator/pull/41 from [2]).
I'll create a repo with the diffs for transparency and submit a PR. Done: https://github.com/leMaik/qrcode-svg
Thank you @leMaik!
https://github.com/papnkukn/qrcode-svg/blob/47d56ec28fcd0a3aabbb5f11a34167a02a80c54e/lib/qrcode.js#L88-L153