node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

24
server/node_modules/stream-chain/utils/gen.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
'use strict';
const {Transform} = require('stream');
const {next} = require('./asGen');
const {sanitize} = require('../index');
const gen = (...fns) => {
fns = fns.filter(fn => fn);
return fns.length
? new Transform({
writableObjectMode: true,
readableObjectMode: true,
transform(chunk, encoding, callback) {
(async () => {
for await (let value of next(chunk, fns, 0)) {
sanitize(value, this);
}
})().then(() => callback(null), error => callback(error));
}
})
: null;
};
module.exports = gen;