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

blendmicro

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blendmicro - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

History.txt

@@ -0,1 +1,5 @@

=== 0.1.2 2015-07-29
* fixed for Mac OSX Yosemite
=== 0.1.1 2014-06-15

@@ -2,0 +6,0 @@

41

lib/blendmicro.js
(function() {
var BlendMicro, debug, events, noble, _,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
var BlendMicro, _, debug, events, noble,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;

@@ -14,6 +14,6 @@ events = require('eventemitter2');

module.exports = BlendMicro = (function(_super) {
module.exports = BlendMicro = (function(superClass) {
var UUID_LIST;
__extends(BlendMicro, _super);
extend(BlendMicro, superClass);

@@ -30,6 +30,13 @@ UUID_LIST = {

return function() {
var _ref;
return ((_ref = _this.peripheral) != null ? _ref.state : void 0) || 'discover';
var ref;
return ((ref = _this.peripheral) != null ? ref.state : void 0) || 'discover';
};
})(this));
noble.on('stateChange', function(state) {
if (state === 'poweredOn') {
return noble.startScanning();
} else {
return noble.stopScanning();
}
});
noble.on('discover', (function(_this) {

@@ -43,6 +50,6 @@ return function(peripheral) {

_this.peripheral.connect(function() {
var signal, _i, _len, _ref;
_ref = ['SIGINT', 'SIGHUP', 'SIGTERM'];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
signal = _ref[_i];
var i, len, ref, signal;
ref = ['SIGINT', 'SIGHUP', 'SIGTERM'];
for (i = 0, len = ref.length; i < len; i++) {
signal = ref[i];
process.on(signal, function() {

@@ -103,12 +110,4 @@ if (_this.peripheral.state === 'disconnected') {

});
this.open();
}
BlendMicro.prototype.open = function() {
if (!this.peripheral || this.peripheral.state === 'disconnected') {
noble.startScanning();
}
return this;
};
BlendMicro.prototype.close = function(callback) {

@@ -129,4 +128,4 @@ return this.peripheral.disconnect(callback);

BlendMicro.prototype.updateRssi = function(callback) {
var _ref;
return (_ref = this.peripheral) != null ? _ref.updateRssi(callback) : void 0;
var ref;
return (ref = this.peripheral) != null ? ref.updateRssi(callback) : void 0;
};

@@ -133,0 +132,0 @@

{
"name": "blendmicro",
"private": false,
"version": "0.1.1",
"version": "0.1.2",
"description": "BlendMicro Node Lib",
"main": "lib/blendmicro.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "grunt build",
"watch": "grunt"
},

@@ -31,4 +32,4 @@ "bin": {

"grunt-contrib-coffee": "*",
"grunt-coffeelint": "git+https://github.com/geta6/grunt-coffeelint",
"grunt-contrib-watch": "git+https://github.com/gruntjs/grunt-contrib-watch"
"grunt-coffeelint": "*",
"grunt-contrib-watch": "*"
},

@@ -35,0 +36,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

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