mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-10-23 06:55:45 +07:00
node_modules: update (#352)
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
1 parent
4026a70a6b
commit
47af4a10b5
53 files changed
+630
-217
No files matched your search
+34
-1
@@ -58,6 +58,13 @@ export interface MimeNodePreparedHeaderValue {
|
||||
* objects (for the address headers), a prepared value object, or a list of these
|
||||
*/
|
||||
export type MimeNodeHeaderValue = string | number | boolean | Date | MimeNodeAddress | MimeNodePreparedHeaderValue | MimeNodeHeaderValue[] | null | undefined;
|
||||
/**
|
||||
* Options for the static MimeNode.encodeHeaderValue
|
||||
*/
|
||||
export interface MimeNodeHeaderEncodingOptions {
|
||||
/** Either 'Q' (the default) or 'B' */
|
||||
textEncoding?: string | undefined;
|
||||
}
|
||||
/**
|
||||
* A single header, the shape the headers are stored in and one of the list forms
|
||||
* setHeader and addHeader accept
|
||||
@@ -319,6 +326,31 @@ declare class MimeNode {
|
||||
* @param raw Raw MIME contents
|
||||
*/
|
||||
setRaw(raw: MimeNodeContent): this;
|
||||
/**
|
||||
* Encodes a header value the way this node encodes it in the generated message:
|
||||
* address headers are punycoded and mime encoded, message id headers get their
|
||||
* angle brackets, a Date object is formatted and any other value is mime encoded
|
||||
* when it holds non-ascii or control characters (using the node's `textEncoding`).
|
||||
*
|
||||
* The result is a single unfolded line without the key. Fold it before writing it
|
||||
* into a message, `key + ': ' + value` folded at 76 characters is what the node does.
|
||||
*
|
||||
* @param key Header key, case insensitive
|
||||
* @param value Header value
|
||||
* @returns Encoded header value
|
||||
*/
|
||||
encodeHeaderValue(key: string, value: MimeNodeHeaderValue): string;
|
||||
/**
|
||||
* Encodes a header value without a node at hand. Same as the instance method of a
|
||||
* node created with the given options.
|
||||
*
|
||||
* @param key Header key, case insensitive
|
||||
* @param value Header value
|
||||
* @param [options] Encoding options
|
||||
* @param [options.textEncoding] either 'Q' (the default) or 'B'
|
||||
* @returns Encoded header value
|
||||
*/
|
||||
static encodeHeaderValue(key: string, value: MimeNodeHeaderValue, options?: MimeNodeHeaderEncodingOptions): string;
|
||||
}
|
||||
/**
|
||||
* Type aliases in the layout of @types/nodemailer, so `MimeNode.Options` style references keep working
|
||||
@@ -327,7 +359,8 @@ declare namespace MimeNode {
|
||||
type Options = MimeNodeOptions;
|
||||
type Addresses = MimeNodeAddresses;
|
||||
type Envelope = MimeNodeEnvelope;
|
||||
type HeaderEncodingOptions = MimeNodeHeaderEncodingOptions;
|
||||
}
|
||||
/** The same aliases as module level exports, for `import * as MimeNode` and `import MimeNode = require()` */
|
||||
export type { MimeNodeOptions as Options, MimeNodeAddresses as Addresses, MimeNodeEnvelope as Envelope };
|
||||
export type { MimeNodeOptions as Options, MimeNodeAddresses as Addresses, MimeNodeEnvelope as Envelope, MimeNodeHeaderEncodingOptions as HeaderEncodingOptions };
|
||||
export default MimeNode;
|
||||
Reference in new issue
Block a user