Comparing version 0.3.0 to 0.3.1
@@ -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 | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
204815
34
4500
2