From ae0d61ca9165efd918edb641600a0575cf36b3e5 Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Thu, 3 Oct 2024 14:48:55 +0300 Subject: [PATCH] style: linting --- src/main/ts/mixin/pipe.ts | 1 - src/main/ts/spawn.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/ts/mixin/pipe.ts b/src/main/ts/mixin/pipe.ts index 7683a5a..39df297 100644 --- a/src/main/ts/mixin/pipe.ts +++ b/src/main/ts/mixin/pipe.ts @@ -1,5 +1,4 @@ import { Writable } from 'node:stream' -import EventEmitter from 'node:events' import { assign, isStringLiteral } from '../util.js' import { VoidStream } from '../spawn.js' import type { TShell, TMixin, TShellCtx } from '../x.js' diff --git a/src/main/ts/spawn.ts b/src/main/ts/spawn.ts index 6497d19..9792de8 100644 --- a/src/main/ts/spawn.ts +++ b/src/main/ts/spawn.ts @@ -236,7 +236,7 @@ export const invoke = (c: TSpawnCtxNormalized): TSpawnCtxNormalized => { get stdout() { return c.store.stdout.join('') }, get stderr() { return c.store.stderr.join('') }, get stdall() { return c.store.stdall.join('') }, - stdio: [c.stdin, c.stdout, c.stderr], + stdio, duration: Date.now() - now, ctx: c } @@ -249,7 +249,7 @@ export const invoke = (c: TSpawnCtxNormalized): TSpawnCtxNormalized => { } catch (error: unknown) { c.callback( error, - c.fulfilled ={ + c.fulfilled = { error, status: null, signal: null,