Socket
Socket
Sign inDemoInstall

noble

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

noble - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

lib/websocket/bindings.js

6

lib/characteristic.js

@@ -52,4 +52,6 @@ var debug = require('debug')('characteristic');

Characteristic.prototype.write = function(data, withoutResponse, callback) {
if (!(data instanceof Buffer)) {
throw new Error('data must be a Buffer');
if (process.title !== 'browser') {
if (!(data instanceof Buffer)) {
throw new Error('data must be a Buffer');
}
}

@@ -56,0 +58,0 @@

@@ -16,3 +16,5 @@ var debug = require('debug')('noble');

if (process.env.NOBLE_DISTRIBUTED) {
if (process.env.NOBLE_WEBSOCKET || process.title === 'browser') {
bindings = require('./websocket/bindings');
} else if (process.env.NOBLE_DISTRIBUTED) {
bindings = require('./distributed/bindings');

@@ -19,0 +21,0 @@ } else if (platform === 'darwin') {

@@ -5,3 +5,3 @@ {

"description": "A node.js BLE (Bluetooth low energy) central library.",
"version": "0.3.0",
"version": "0.3.1",
"repository": {

@@ -44,3 +44,8 @@ "type": "git",

"test": "mocha -R spec test/*.js"
},
"browser": {
"./distributed/bindings": false,
"./mac/bindings": false,
"./linux/bindings": false
}
}
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