FRE-709: Document duplicate recovery wake - FRE-635 already recovered via FRE-708

This commit is contained in:
2026-04-26 20:23:14 -04:00
parent e07237b6b0
commit 0ff6c74871
5880 changed files with 1643723 additions and 908 deletions

29
node_modules/basic-ftp/dist/StringWriter.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringWriter = void 0;
const stream_1 = require("stream");
class StringWriter extends stream_1.Writable {
constructor(maxByteLength = 1 * 1024 * 1024) {
super();
this.maxByteLength = maxByteLength;
this.byteLength = 0;
this.bufs = [];
}
_write(chunk, _, callback) {
if (!(chunk instanceof Buffer)) {
callback(new Error("StringWriter: expects chunks of type 'Buffer'."));
return;
}
if (this.byteLength + chunk.byteLength > this.maxByteLength) {
callback(new Error(`StringWriter: Maximum bytes exceeded, maxByteLength=${this.maxByteLength}.`));
return;
}
this.byteLength += chunk.byteLength;
this.bufs.push(chunk);
callback(null);
}
getText(encoding) {
return Buffer.concat(this.bufs).toString(encoding);
}
}
exports.StringWriter = StringWriter;