npm-audit-pipeline
Version:
Using npm audit in deployment pipelines
10 lines (9 loc) • 543 B
TypeScript
/// <reference types="node" />
import type { ExecException } from 'child_process';
import * as RTE from 'fp-ts/ReaderTaskEither';
import { NpmAuditorConfiguration } from './argsParser';
import { NpmAuditResponse } from './executorResponseHandler';
export declare type ExecutorEnv = {
exec: (command: string, callback: (error: ExecException | null, stdout: string, stderr: string) => void) => void;
};
export declare const runNpmAuditCommand: (config: NpmAuditorConfiguration) => RTE.ReaderTaskEither<ExecutorEnv, Error, NpmAuditResponse>;