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

ble-glucose

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ble-glucose - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

18

index.js

@@ -110,6 +110,22 @@ /*

disconnect() {
async disconnect() {
if (!this.device) {
return;
}
console.log('Stopping notifications and removing event listeners...');
if (this.glucoseMeasurement) {
await this.glucoseMeasurement.stopNotifications();
await this.glucoseMeasurement.removeEventListener(
'characteristicvaluechanged',
this.handleNotifications,
);
}
if (this.racp) {
await this.racp.stopNotifications();
await this.racp.removeEventListener(
'characteristicvaluechanged',
this.handleNotifications,
);
}
console.log('Notifications and event listeners stopped.');
console.log('Disconnecting from Bluetooth Device...');

@@ -116,0 +132,0 @@ if (this.device.gatt.connected) {

2

package.json
{
"name": "ble-glucose",
"version": "0.2.2",
"version": "0.2.3",
"description": "Reads blood glucose values from Bluetooth LE enabled meters",

@@ -5,0 +5,0 @@ "main": "index.js",

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