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

advlib

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

advlib - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

lib/ble/header/index.js~

38

lib/ble/header/index.js

@@ -6,2 +6,13 @@ /**

var TYPE0_NAME = 'ADV_IND';
var TYPE1_NAME = 'ADV_DIRECT_IND';
var TYPE2_NAME = 'ADV_NONCONNECT_IND';
var TYPE3_NAME = 'SCAN_REQ';
var TYPE4_NAME = 'SCAN_RSP';
var TYPE5_NAME = 'CONNECT_REQ';
var TYPE6_NAME = 'ADV_DISCOVER_IND';
var TYPE_UNDEFINED_NAME = 'UNRECOGNISED';
/**

@@ -28,24 +39,24 @@ * Convert a raw Bluetooth Low Energy advertiser header into its meaningful

case("0"):
type = "ADV_IND";
type = TYPE0_NAME;
break;
case("1"):
type = "ADV_DIRECT_IND";
type = TYPE1_NAME;
break;
case("2"):
type = "ADV_NONCONNECT_IND";
type = TYPE2_NAME;
break;
case("3"):
type = "SCAN_REQ";
type = TYPE3_NAME;
break;
case("4"):
type = "SCAN_RSP";
type = TYPE4_NAME;
break;
case("5"):
type = "CONNECT_REQ";
type = TYPE5_NAME;
break;
case("6"):
type = "ADV_DISCOVER_IND";
type = TYPE6_NAME;
break;
default:
type = "UNRECOGNISED";
type = TYPE_UNDEFINED_NAME;
}

@@ -59,2 +70,11 @@ return { type: type,

module.exports.process = process;
module.exports.process = process;
module.exports.TYPE0_NAME = TYPE0_NAME;
module.exports.TYPE1_NAME = TYPE1_NAME;
module.exports.TYPE2_NAME = TYPE2_NAME;
module.exports.TYPE3_NAME = TYPE3_NAME;
module.exports.TYPE4_NAME = TYPE4_NAME;
module.exports.TYPE5_NAME = TYPE5_NAME;
module.exports.TYPE6_NAME = TYPE6_NAME;
module.exports.TYPE_UNDEFINED_NAME = TYPE_UNDEFINED_NAME;

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

module.exports.process = process;
module.exports.header = header;
module.exports.address = address;
module.exports.data = data;

@@ -13,3 +13,3 @@ {

],
"version": "0.0.8",
"version": "0.0.9",
"engines": {

@@ -16,0 +16,0 @@ "node": "^0.10.0"

Sorry, the diff of this file is not supported yet

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