Closed yell0wd0g closed 7 years ago
I find this quite strange.
If I install the qrcode-reader package, I see in line 3139 of build/index.js
return this.decode_utf8(str);
It is the same as the line in the git repository.
Very strange - perhaps I mixed up my local node_modules folder.
Regardless of that, I think it'd be cool to be able to return the bounding box associated to a decoded QR code. Is there something we can do here? I.e. any way we could maintain backwards compatibility and return qRCodeMatrix.points
as well?
An image of the output to wet the appetites :-) http://imgur.com/a/rT8Zp
This could be in the v1 (I just created a branch for this https://github.com/edi9999/jsqrcode/tree/v1) can you create a MR that targets v1 ?
I have now commited this myself in v1
The change in v1 looks good, thanks! Are you planning to upload v1t to npm?
Probably in a month or so, the time that we need to make sure that they are not other breaking changes that we would like to introduce
@edi9999 played with the unpublished v1 (that I packed locally as v 0.3.0) and adapted accordingly my code, otherwise everything played out fine, cheers!
Hi @edi9999! About a month has passed, can we consider publishing v1 to npmjs ?
Pushed to git and to npm to 1.0.0 !
It works! https://miguelao.github.io/shapedetection-polyfill/demo.bundle.html Thanks!
In this line I see
return qrcode.decode_utf8(str);
however in my local npm package I have
return {url: this.decode_utf8(str), points: qRCodeMatrix.points};
which also makes sense to me, otherwise why do we createqRCodeMatrix
.I might very well need to file this upstream, but I'm starting here since that's the package I'm using.
My local npm package details are: