FlorianWendelborn / fritz-box

:package: Promise-based JavaScript FRITZ!Box API.
https://npmjs.com/package/fritz-box
MIT License
12 stars 5 forks source link

Fixes challenge decoding in cases the inlined json has no white space #2

Closed janthomas89 closed 7 years ago

janthomas89 commented 7 years ago

For FRITZ!Box Fon WLAN 7360 and FRITZ!OS 06.80 it happened to be the case that the inlined data json had no whitespace to separate keys from their values ("challenge": ".." vs. "challenge":".."). This commit should fix the issue while being backwards compatible.

FlorianWendelborn commented 7 years ago

Thanks. Looks good so far. I'll try to merge it today. Odd that it differs between hardware. We have the same FRITZ!OS version. Nevermind, I was on 6.51. 🤦

FlorianWendelborn commented 7 years ago

Published in v1.0.0. Note that this release requires Node 7.6+ for native async/await instead of relying on babel-polyfill.

I also added a slack channel in case you have questions.