spamscanner 7.0.3 → 7.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,40 +0,0 @@
1
- /**
2
- * Parse command-line arguments.
3
- * @param {string[]} argv
4
- * @returns {{command: string|null, positionals: string[], values: object}}
5
- */
6
- export function parseCli(argv: string[]): {
7
- command: string | null;
8
- positionals: string[];
9
- values: object;
10
- };
11
- /**
12
- * Scanner settings from command-line values, on top of a --config file.
13
- * @param {object} values
14
- * @param {NodeJS.ProcessEnv} [env]
15
- * @returns {object}
16
- */
17
- export function buildConfig(values: object, env?: NodeJS.ProcessEnv): object;
18
- /**
19
- * SMTP session details from command-line values.
20
- * @param {object} values
21
- * @returns {object}
22
- */
23
- export function buildSession(values: object): object;
24
- /**
25
- * Pipe a message to sendmail and wait for it to exit.
26
- * @param {string} sendmail
27
- * @param {string[]} args
28
- * @param {Buffer} message
29
- * @returns {Promise<number|string>} sendmail's exit code, or "a signal" if it was killed
30
- */
31
- export function deliver(sendmail: string, args: string[], message: Buffer): Promise<number | string>;
32
- /**
33
- * Run the command-line interface.
34
- * @param {string[]} argv - arguments after the program name
35
- * @param {object} [io] - stdin, stdout, stderr, env and onListening, for tests
36
- * @returns {Promise<number>} the exit code (servers resolve when they stop)
37
- */
38
- export function main(argv?: string[], io?: object): Promise<number>;
39
- export const HELP: string;
40
- import { Buffer } from 'node:buffer';