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,18 +1,15 @@
'use strict';
const stream = require('stream');
const Transform = stream.Transform;
const { Transform } = require('stream');
/**
* Ensures that only <LF> is used for linebreaks
*
* @param {Object} options Stream options
*/
class LeWindows extends Transform {
class LeUnix extends Transform {
constructor(options) {
super(options);
// init Transform
this.options = options || {};
}
/**
@@ -24,7 +21,7 @@ class LeWindows extends Transform {
for (let i = 0, len = chunk.length; i < len; i++) {
if (chunk[i] === 0x0d) {
// \n
// \r
buf = chunk.slice(lastPos, i);
lastPos = i + 1;
this.push(buf);
@@ -40,4 +37,4 @@ class LeWindows extends Transform {
}
}
module.exports = LeWindows;
module.exports = LeUnix;