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

advlib-ble-gatt

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

advlib-ble-gatt - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

9

lib/bluvib.js

@@ -85,3 +85,4 @@ /**

case '1c930023d45911e79296b8e856369374': // sample_rate
return { sampleRate: SAMPLE_RATES_HZ[parseInt(data.value, 16)] };
return { accelerationSamplingRate:
SAMPLE_RATES_HZ[parseInt(data.value, 16)] };
case '1c930024d45911e79296b8e856369374': // trace_len

@@ -180,3 +181,3 @@ return { numberOfSamples: NUMBERS_OF_SAMPLES[parseInt(data.value, 16)] };

let conversionFactor = 250000 / (65536 * data.calibration);
let accelerationTimeseries = [];
let accelerationTimeSeries = [];
let acceleration = [];

@@ -198,7 +199,7 @@

accelerationTimeseries.push(axisValues);
accelerationTimeSeries.push(axisValues);
acceleration.push(calculateMean(axisValues));
}
data.accelerationTimeseries = accelerationTimeseries;
data.accelerationTimeSeries = accelerationTimeSeries;
data.acceleration = acceleration;

@@ -205,0 +206,0 @@ delete data.accelerationSamplesHex;

@@ -18,3 +18,3 @@ {

],
"version": "1.0.0",
"version": "1.0.1",
"engines": {

@@ -21,0 +21,0 @@ "node": ">=6.0.0"

@@ -65,6 +65,6 @@ /**

batteryVoltage: 3.476,
sampleRate: 25600,
calibration: 7812,
numberOfSamples: 64,
calibration: 7812,
accelerationTimeseries: [
accelerationSamplingRate: 25600,
accelerationTimeSeries: [
[

@@ -71,0 +71,0 @@ 0.8750560035842293, 0.8872638161342326, 0.874079378580229,

@@ -72,3 +72,3 @@ /**

const EXPECTED_DATA_VALID_GAIN = { gain: 4 };
const EXPECTED_DATA_VALID_SAMPLE_RATE = { sampleRate: 256 };
const EXPECTED_DATA_VALID_SAMPLE_RATE = { accelerationSamplingRate: 256 };
const EXPECTED_DATA_VALID_TRACE_LEN = { numberOfSamples: 1024 };

@@ -75,0 +75,0 @@ const EXPECTED_DATA_VALID_CALIBRATION = { calibration: 5000 };

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