mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-10-12 02:42:27 +07:00
node_modules: update (#344)
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
1 parent
b099186883
commit
6e88c72525
63 files changed
+2863
-1227
No files matched your search
+32
-1
@@ -1,6 +1,7 @@
|
||||
import type { NodemailerError } from '../errors.js';
|
||||
import { isProtoKey, copyOwnKeys } from './objects.js';
|
||||
import os from 'node:os';
|
||||
import type { Readable } from 'node:stream';
|
||||
import { type Readable } from 'node:stream';
|
||||
import type { OutgoingHttpHeaders } from 'node:http';
|
||||
export { isProtoKey, copyOwnKeys };
|
||||
/**
|
||||
@@ -258,3 +259,33 @@ export declare const assign: (...args: ({
|
||||
[key: string]: any;
|
||||
};
|
||||
export declare const encodeXText: (str: string) => string;
|
||||
/**
|
||||
* Keeps the first error a content stream emits before it is read, so the error is reported
|
||||
* when the stream is read instead of being thrown as unhandled. The listener stays attached
|
||||
* for good, a stream that emits 'error' more than once never throws the later ones either
|
||||
*
|
||||
* @param stream Readable stream
|
||||
*/
|
||||
export declare function recordStreamErrors(stream: Readable): void;
|
||||
/**
|
||||
* Destroys a value if it is a readable stream that was not destroyed yet
|
||||
*
|
||||
* @param value Any content value
|
||||
*/
|
||||
export declare function destroyStream(value: unknown): void;
|
||||
/**
|
||||
* Tells why a stream can not be read from start to end anymore. A stream that ended or was
|
||||
* destroyed before anyone read it would never emit 'end' to a new reader, or, when piped, would
|
||||
* end the destination right away and turn into an empty value without any error
|
||||
*
|
||||
* @param stream Readable stream
|
||||
* @returns The error the stream failed with, an ESTREAM error, or null when it can be read
|
||||
*/
|
||||
export declare function unreadableStreamError(stream: Readable): NodemailerError | null;
|
||||
/**
|
||||
* Streams a stream value into a Buffer
|
||||
*
|
||||
* @param stream Readable stream
|
||||
* @param callback Callback function with (err, value)
|
||||
*/
|
||||
export declare function resolveStream(stream: Readable, callback: (err: Error | null, value?: Buffer) => void): void;
|
||||
Reference in new issue
Block a user