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

@serialport/parser-cctalk

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serialport/parser-cctalk - npm Package Compare versions

Comparing version 1.0.5 to 2.0.1

CHANGELOG.md

9

cctalk.js

@@ -1,4 +0,2 @@

'use strict'
const Transform = require('stream').Transform
const Buffer = require('safe-buffer').Buffer

@@ -17,3 +15,3 @@ /**

class CCTalkParser extends Transform {
constructor () {
constructor() {
super()

@@ -23,3 +21,3 @@ this.array = []

}
_transform (buffer, _, cb) {
_transform(buffer, _, cb) {
this.cursor += buffer.length

@@ -29,4 +27,3 @@ // TODO: Better Faster es7 no supported by node 4

// this.array = this.array.concat(Array.from(buffer)) //Slower ?!?
Array.from(buffer)
.map((byte) => this.array.push(byte))
Array.from(buffer).map(byte => this.array.push(byte))
while (this.cursor > 1 && this.cursor >= this.array[1] + 5) {

@@ -33,0 +30,0 @@ // full frame accumulated

{
"name": "@serialport/parser-cctalk",
"version": "1.0.5",
"version": "2.0.1",
"main": "cctalk.js",
"dependencies": {
"safe-buffer": "^5.1.1"
"engines": {
"node": ">=6.0.0"
},

@@ -14,4 +14,5 @@ "publishConfig": {

"type": "git",
"url": "git://github.com/node-serialport/parsers.git"
}
"url": "git://github.com/node-serialport/node-serialport.git"
},
"gitHead": "40a06fb71d659940ed5058316b594b9da9957c2f"
}

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

See our api docs https://node-serialport.github.io/parsers/CCTalkParser.html
See our api docs https://node-serialport.github.io/node-serialport/CCTalkParser.html
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