MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / push

Method push

js/botasaurus-server-js/src/ndjson.ts:77–83  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

75 }
76
77 override async push(data: any): Promise<void> {
78 const content = this.sep + JSON.stringify(data);
79 if (!this.sep) {
80 this.sep = ",";
81 }
82 return this.performWrite(content);
83 }
84
85 override async preEnd() {
86 await this.performWrite(']');

Callers 1

writeJsonFunction · 0.95

Calls 1

performWriteMethod · 0.45

Tested by

no test coverage detected