New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ble-glucose

Package Overview
Dependencies
Maintainers
0
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.6.0 to 0.7.0

28

index.js

@@ -119,3 +119,3 @@ /*

} catch (err) {
console.log(err);
debug(err);
}

@@ -207,3 +207,3 @@ this.racp = await this.glucoseService.getCharacteristic('record_access_control_point');

async sendCommand(cmd) {
await this.racp.writeValue(new Uint8Array(cmd));
await this.racp.writeValueWithResponse(new Uint8Array(cmd));
debug('Sent command.');

@@ -213,2 +213,13 @@ }

async getNumberOfRecords() { await this.sendCommand([0x04, 0x01]); }
async getDeltaNumberOfRecords(seqNum) {
const buffer = new ArrayBuffer(5);
const view = new DataView(buffer);
view.setUint8(0, 0x04); // op code: report number of stored records
view.setUint8(1, 0x03); // operator: greater than or equal to
view.setUint8(2, 0x01); // operand: filter type - sequence number
view.setUint16(3, seqNum, true); // operand: sequence number
await this.sendCommand(buffer);
}

@@ -221,2 +232,15 @@ async getAllRecords() {

async getDeltaRecords(seqNum) {
const buffer = new ArrayBuffer(5);
const view = new DataView(buffer);
view.setUint8(0, 0x01); // op code: report stored records
view.setUint8(1, 0x03); // operator: greater than or equal to
view.setUint8(2, 0x01); // operand: filter type - sequence number
view.setUint16(3, seqNum, true); // operand: sequence number
self.records = [];
self.contextRecords = [];
await this.sendCommand(buffer);
}
static handleContextNotifications(event) {

@@ -223,0 +247,0 @@ const { value } = event.target;

2

package.json
{
"name": "ble-glucose",
"version": "0.6.0",
"version": "0.7.0",
"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