arduino-firmata
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -0,1 +1,6 @@ | ||
=== 0.0.3 2014-01-27 | ||
* fix coffee-script | ||
* thank you for contributing @geta6 | ||
=== 0.0.2 2014-01-26 | ||
@@ -2,0 +7,0 @@ |
(function() { | ||
var ArduinoFirmata, SerialPort, debug, events, | ||
var ArduinoFirmata, SerialPort, debug, events, exports, serialport, | ||
__hasProp = {}.hasOwnProperty, | ||
@@ -8,7 +8,7 @@ __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; }; | ||
SerialPort = require('serialport').SerialPort; | ||
SerialPort = (serialport = require('serialport')).SerialPort; | ||
debug = require('debug')('arduino-firmata'); | ||
module.exports = ArduinoFirmata = (function(_super) { | ||
exports = module.exports = ArduinoFirmata = (function(_super) { | ||
__extends(ArduinoFirmata, _super); | ||
@@ -60,6 +60,6 @@ | ||
ArduinoFirmata.list = function(callback) { | ||
return require('serialport').list(function(err, ports) { | ||
return serialport.list(function(err, ports) { | ||
var devices, port, _i, _len; | ||
if (err) { | ||
callback(err); | ||
return callback(err); | ||
} | ||
@@ -69,3 +69,3 @@ devices = []; | ||
port = ports[_i]; | ||
if (port.comName.match(/usb|acm|com\d+/i)) { | ||
if (/usb|acm|com\d+/i.test(port.comName)) { | ||
devices.push(port.comName); | ||
@@ -100,3 +100,3 @@ } | ||
} | ||
opts.parser = require('serialport').parsers.raw; | ||
opts.parser = serialport.parsers.raw; | ||
if (!this.serialport_name) { | ||
@@ -249,4 +249,2 @@ ArduinoFirmata.list(function(err, devices) { | ||
return this.execute_multi_byte_command = command; | ||
} else { | ||
} | ||
@@ -253,0 +251,0 @@ } |
{ | ||
"name": "arduino-firmata", | ||
"private": false, | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Arduino Firmata implementation for Node.js", | ||
@@ -6,0 +6,0 @@ "main": "lib/arduino-firmata.js", |
Sorry, the diff of this file is not supported yet
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
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
21970
274