* Update createAuthenticationContext
Update createAuthenticationContext to include validateAuthority flag since it is throwing Error: Fail to valid authority with errors: [50049].
Without the flag it is throwing Error: Fail to valid authority with errors: [50049].
* Update index.ts
* feat(bluetooth-le): implemented all available methods and refactored existing ones
* fix(bluetooth-le): Removed @memberof jsdoc annotations to avoid ci check failure
* fix(bluetooth-le): Fixed multiple jsdocs typos/misformats preventing CI to pass checks while generating readmes
* fix(bluetooth-le): Removed package-lock.json
* Update index.ts
* fix(bluetooth-le): Fixed stringToBytes method, now properly takes a string as arg and return an Uint8Array
* fix(bluetooth-le): getAdapterInfo now returns an Observable for easier tracking of adapter states
* fix(bluetooth-le): Fixed missing cordova param (observable: true) in initializePeripheral method, fixed getAdapterInfo method, now return an adapterInfo object
* chore(bluetooth-le): Removed @description markup to allow a proper doc auto-format
* fix(bluetooth-le): Reverted getAdapterInfo method to a Promise return
We noticed that in some cases network state listeners are stopped triggering, but `navigator.onLine` still reflects the state correctly. I used the following code to debug and found out an issue with `window` and `document` difference:
```js
window.addEventListener("online", ()=>console.warn('WINDOW ONLINE'), false); // won't be triggered
window.addEventListener("online", ()=>console.warn('WINDOW ONLINE'), false); // won't be triggered
document.addEventListener("online", ()=>console.warn('DOCUMENT ONLINE'), false); // triggered
document.addEventListener("online", ()=>console.warn('DOCUMENT ONLINE'), false); // triggered
```
Also, according to plugin documentation, listeners should be bound to `document`: https://github.com/apache/cordova-plugin-network-information#offline