Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bluetooth-helper

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bluetooth-helper - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

bower.json
{
"name": "bluetooth-helper",
"version": "0.0.3",
"version": "0.0.4",
"homepage": "https://github.com/evanxd/bluetooth-helper",

@@ -5,0 +5,0 @@ "authors": [

@@ -41,4 +41,6 @@ /* global EventEmitter2 */

if (bluetooth.defaultAdapter) {
return bluetooth.defaultAdapter.startDiscovery().then(discovery => {
discovery.addEventListener('devicefound',
// For stability, We use startLeScan to instead of startDiscovery.
return bluetooth.defaultAdapter.startLeScan([]).then(scan => {
this._scan = scan;
scan.addEventListener('devicefound',
this._handleDevicefound.bind(this));

@@ -57,3 +59,3 @@ }).catch(() => {

return this._gatt.disconnect().then(() => {
return bluetooth.defaultAdapter.stopDiscovery();
return bluetooth.defaultAdapter.stopLeScan(this._scan);
}).then(() => {

@@ -60,0 +62,0 @@ this.emit('disconnected');

{
"name": "bluetooth-helper",
"version": "0.0.3",
"version": "0.0.4",
"homepage": "https://github.com/evanxd/bluetooth-helper",

@@ -5,0 +5,0 @@ "authors": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc