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

arduino-firmata

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arduino-firmata - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

5

History.txt

@@ -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 @@

16

lib/arduino-firmata.js
(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

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