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

29
server/node_modules/stream-json/jsonl/Stringer.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
'use strict';
const {Transform} = require('stream');
class JsonlStringer extends Transform {
static make(options) {
return new JsonlStringer(options);
}
constructor(options) {
super(Object.assign({}, options, {writableObjectMode: true, readableObjectMode: false}));
this._replacer = options && options.replacer;
}
_transform(chunk, _, callback) {
this.push(JSON.stringify(chunk, this._replacer));
this._transform = this._nextTransform;
callback(null);
}
_nextTransform(chunk, _, callback) {
this.push('\n' + JSON.stringify(chunk, this._replacer));
callback(null);
}
}
JsonlStringer.stringer = JsonlStringer.make;
JsonlStringer.make.Constructor = JsonlStringer;
module.exports = JsonlStringer;