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

cdt-gdb-adapter

Package Overview
Dependencies
Maintainers
3
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdt-gdb-adapter - npm Package Compare versions

Comparing version 0.0.16-next.20220822230244.d8c6ab5.0 to 0.0.16-next.20220908234947.bdf98e3.0

16

dist/MIParser.js

@@ -15,13 +15,17 @@ "use strict";

this.waitReady = resolve;
const lineRegex = /(.*)(\r?\n)/;
const lineBreakRegex = /\r?\n/;
let buff = '';
stream.on('data', (chunk) => {
buff += chunk.toString();
let regexArray = lineRegex.exec(buff);
const newChunk = chunk.toString();
let regexArray = lineBreakRegex.exec(newChunk);
if (regexArray) {
regexArray.index += buff.length;
}
buff += newChunk;
while (regexArray) {
this.line = regexArray[1];
this.line = buff.slice(0, regexArray.index);
this.pos = 0;
this.handleLine();
buff = buff.substring(regexArray[1].length + regexArray[2].length);
regexArray = lineRegex.exec(buff);
buff = buff.slice(regexArray.index + regexArray[0].length);
regexArray = lineBreakRegex.exec(buff);
}

@@ -28,0 +32,0 @@ });

{
"name": "cdt-gdb-adapter",
"version": "0.0.16-next.20220822230244.d8c6ab5.0",
"version": "0.0.16-next.20220908234947.bdf98e3.0",
"description": "gdb adapter implementing the debug adapter protocol",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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

this.waitReady = resolve;
const lineRegex = /(.*)(\r?\n)/;
const lineBreakRegex = /\r?\n/;
let buff = '';
stream.on('data', (chunk) => {
buff += chunk.toString();
let regexArray = lineRegex.exec(buff);
const newChunk = chunk.toString();
let regexArray = lineBreakRegex.exec(newChunk);
if (regexArray) {
regexArray.index += buff.length;
}
buff += newChunk;
while (regexArray) {
this.line = regexArray[1];
this.line = buff.slice(0, regexArray.index);
this.pos = 0;
this.handleLine();
buff = buff.substring(
regexArray[1].length + regexArray[2].length
);
regexArray = lineRegex.exec(buff);
buff = buff.slice(regexArray.index + regexArray[0].length);
regexArray = lineBreakRegex.exec(buff);
}

@@ -40,0 +42,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