node_modules: update (#290)

Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
Dawid Dziurla
2026-04-28 12:50:45 +02:00
committed by GitHub
parent 63e1562580
commit 42942bc2f8
1077 changed files with 12540 additions and 33773 deletions

View File

@@ -1,7 +1,6 @@
'use strict';
const stream = require('stream');
const Transform = stream.Transform;
const { Transform } = require('stream');
/**
* Escapes dots in the beginning of lines. Ends the stream with <CR><LF>.<CR><LF>
@@ -12,9 +11,7 @@ const Transform = stream.Transform;
class DataStream extends Transform {
constructor(options) {
super(options);
// init Transform
this.options = options || {};
this._curLine = '';
this.inByteCount = 0;
this.outByteCount = 0;
@@ -25,7 +22,7 @@ class DataStream extends Transform {
* Escapes dots
*/
_transform(chunk, encoding, done) {
let chunks = [];
const chunks = [];
let chunklen = 0;
let i,
len,
@@ -53,7 +50,7 @@ class DataStream extends Transform {
lastPos = i + 1;
}
} else if (chunk[i] === 0x0a) {
// .
// \n
if ((i && chunk[i - 1] !== 0x0d) || (!i && this.lastByte !== 0x0d)) {
if (i > lastPos) {
buf = chunk.slice(lastPos, i);