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

serialport

Package Overview
Dependencies
Maintainers
0
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serialport - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

2

package.json
{ "name" : "serialport",
"version" : "0.2.4",
"version" : "0.2.5",
"description" : "Welcome your robotic javascript overlords. Better yet, program them!",

@@ -4,0 +4,0 @@ "author": "Chris Williams <voodootikigod@gmail.com>",

@@ -15,3 +15,3 @@ <pre>

Version: 0.2.3 - Released March 19, 2011
Version: 0.2.5 - Released June 27, 2011

@@ -18,0 +18,0 @@ *****

@@ -29,16 +29,9 @@ "use strict";

return function (emitter, buffer) {
// Collect data
data += buffer.toString();
// Split collected data by delimiter
data.split(delimiter).forEach(function (part, i, array) {
if (i !== array.length-1) {
// Fully delimited part. Lets emit it.
emitter.emit('data', part);
}
else {
// Last split part might be partial. We can't emit it just yet.
data = part;
}
var parts = data.split(delimiter)
data = parts.pop();
parts.forEach(function (part, i, array) {
emitter.emit('data', part);
});

@@ -45,0 +38,0 @@ };

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