Return a highland stream

Signed-off-by: Rishi Ghan <rishi.ghan@gmail.com>
This commit is contained in:
2021-05-13 07:54:44 -07:00
parent dcd2d88d1d
commit 51206db9c2
2 changed files with 11399 additions and 11 deletions

11405
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -15,7 +15,8 @@ import { Readable } from "stream";
import through2 from "through2"; import through2 from "through2";
import oboe from "oboe"; import oboe from "oboe";
import H from "highland"; import H from "highland";
import { stringify } from "highland-json"; import { stringify } from "highland-json";
export default class ProductsService extends Service { export default class ProductsService extends Service {
// @ts-ignore // @ts-ignore
public constructor(public broker: ServiceBroker, schema: ServiceSchema<{}> = {}) { public constructor(public broker: ServiceBroker, schema: ServiceSchema<{}> = {}) {
@@ -64,7 +65,7 @@ export default class ProductsService extends Service {
ctx.params.walkedFolders ctx.params.walkedFolders
); );
const foo = H(comicBookCoversData) const foo = H(comicBookCoversData)
.through(stringify); return foo;
}, },
}, },
}, },