Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@types/nodemailer

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/nodemailer - npm Package Compare versions

Comparing version 6.4.2 to 6.4.3

4

nodemailer/index.d.ts

@@ -27,3 +27,3 @@ // Type definitions for Nodemailer 6.4

export interface Transport<T = any> {
mailer?: Transporter<T>;
mailer?: Transporter<T> | undefined;

@@ -42,3 +42,3 @@ name: string;

export interface TransportOptions {
component?: string;
component?: string | undefined;
}

@@ -45,0 +45,0 @@

@@ -12,3 +12,3 @@ /// <reference types="node" />

export interface EncoderOptions extends TransformOptions {
lineLength?: number | false;
lineLength?: number | false | undefined;
}

@@ -15,0 +15,0 @@

@@ -8,11 +8,11 @@ /// <reference types="node" />

/** optional location for cached messages. If not set then caching is not used. */
cacheDir?: string | false;
cacheDir?: string | false | undefined;
/** optional size in bytes, if message is larger than this treshold it gets cached to disk (assuming cacheDir is set and writable). Defaults to 131072 (128 kB). */
cacheTreshold?: number;
cacheTreshold?: number | undefined;
/** optional algorithm for the body hash, defaults to ‘sha256’ */
hashAlgo?: string;
hashAlgo?: string | undefined;
/** an optional colon separated list of header keys to sign (eg. message-id:date:from:to...') */
headerFieldNames?: string;
headerFieldNames?: string | undefined;
/** optional colon separated list of header keys not to sign. This is useful if you want to sign all the relevant keys but your provider changes some values, ie Message-ID and Date. In this case you should use 'message-id:date' to prevent signing these values. */
skipFields?: string;
skipFields?: string | undefined;
}

@@ -19,0 +19,0 @@

@@ -6,12 +6,12 @@ type s = number;

name: string;
value?: string;
expires?: Date;
path?: string;
domain?: string;
secure?: boolean;
httponly?: boolean;
value?: string | undefined;
expires?: Date | undefined;
path?: string | undefined;
domain?: string | undefined;
secure?: boolean | undefined;
httponly?: boolean | undefined;
}
interface Options {
sessionTimeout?: s;
sessionTimeout?: s | undefined;
}

@@ -18,0 +18,0 @@ }

@@ -20,15 +20,15 @@ /// <reference types="node" />

interface Options {
fetchRes?: Writable;
cookies?: Cookies;
cookie?: string;
redirects?: number;
maxRedirects?: number;
method?: string;
headers?: { [key: string]: string };
userAgent?: string;
body?: Buffer | string | { [key: string]: string };
contentType?: string | false;
tls?: tls.TlsOptions;
timeout?: ms;
allowErrorResponse?: boolean;
fetchRes?: Writable | undefined;
cookies?: Cookies | undefined;
cookie?: string | undefined;
redirects?: number | undefined;
maxRedirects?: number | undefined;
method?: string | undefined;
headers?: { [key: string]: string } | undefined;
userAgent?: string | undefined;
body?: Buffer | string | { [key: string]: string } | undefined;
contentType?: string | false | undefined;
tls?: tls.TlsOptions | undefined;
timeout?: ms | undefined;
allowErrorResponse?: boolean | undefined;
}

@@ -35,0 +35,0 @@ }

@@ -18,3 +18,3 @@ /// <reference types="node" />

jsonTransport: true;
skipEncoding?: boolean;
skipEncoding?: boolean | undefined;
}

@@ -21,0 +21,0 @@

@@ -35,5 +35,5 @@ /// <reference types="node" />

/** String, Buffer or a Stream contents for the attachmentent */
content?: string | Buffer | Readable;
content?: string | Buffer | Readable | undefined;
/** path to a file or an URL (data uris are allowed as well) if you want to stream the file instead of including it (better for larger attachments) */
path?: string | Url;
path?: string | Url | undefined;
}

@@ -43,17 +43,17 @@

/** filename to be reported as the name of the attached file, use of unicode is allowed. If you do not want to use a filename, set this value as false, otherwise a filename is generated automatically */
filename?: string | false;
filename?: string | false | undefined;
/** optional content id for using inline images in HTML message source. Using cid sets the default contentDisposition to 'inline' and moves the attachment into a multipart/related mime node, so use it only if you actually want to use this attachment as an embedded image */
cid?: string;
cid?: string | undefined;
/** If set and content is string, then encodes the content to a Buffer using the specified encoding. Example values: base64, hex, binary etc. Useful if you want to use binary attachments in a JSON formatted e-mail object */
encoding?: string;
encoding?: string | undefined;
/** optional content type for the attachment, if not set will be derived from the filename property */
contentType?: string;
contentType?: string | undefined;
/** optional transfer encoding for the attachment, if not set it will be derived from the contentType property. Example values: quoted-printable, base64. If it is unset then base64 encoding is used for the attachment. If it is set to false then previous default applies (base64 for most, 7bit for text). */
contentTransferEncoding?: '7bit' | 'base64' | 'quoted-printable' | false;
contentTransferEncoding?: '7bit' | 'base64' | 'quoted-printable' | false | undefined;
/** optional content disposition type for the attachment, defaults to ‘attachment’ */
contentDisposition?: 'attachment' | 'inline';
contentDisposition?: 'attachment' | 'inline' | undefined;
/** is an object of additional headers */
headers?: Headers;
headers?: Headers | undefined;
/** an optional value that overrides entire node content in the mime message. If used then all other options set for this node are ignored. */
raw?: string | Buffer | Readable | AttachmentLike;
raw?: string | Buffer | Readable | AttachmentLike | undefined;
}

@@ -63,9 +63,9 @@

/** is an alternative for content to load the AMP4EMAIL data from an URL */
href?: string;
href?: string | undefined;
/** defines optional content encoding, eg. ‘base64’ or ‘hex’. This only applies if the content is a string. By default an unicode string is assumed. */
encoding?: string;
encoding?: string | undefined;
/** optional content type for the attachment, if not set will be derived from the filename property */
contentType?: string;
contentType?: string | undefined;
/** an optional value that overrides entire node content in the mime message. If used then all other options set for this node are ignored. */
raw?: string | Buffer | Readable | AttachmentLike;
raw?: string | Buffer | Readable | AttachmentLike | undefined;
}

@@ -75,9 +75,9 @@

/** optional method, case insensitive, defaults to ‘publish’. Other possible values would be ‘request’, ‘reply’, ‘cancel’ or any other valid calendar method listed in RFC5546. This should match the METHOD: value in calendar event file. */
method?: string;
method?: string | undefined;
/** optional filename, defaults to ‘invite.ics’ */
filename?: string | false;
filename?: string | false | undefined;
/** is an alternative for content to load the calendar data from an URL */
href?: string;
href?: string | undefined;
/** defines optional content encoding, eg. ‘base64’ or ‘hex’. This only applies if the content is a string. By default an unicode string is assumed. */
encoding?: string;
encoding?: string | undefined;
}

@@ -91,9 +91,9 @@

/** the first address gets used as MAIL FROM address in SMTP */
from?: string;
from?: string | undefined;
/** addresses from this value get added to RCPT TO list */
to?: string;
to?: string | undefined;
/** addresses from this value get added to RCPT TO list */
cc?: string;
cc?: string | undefined;
/** addresses from this value get added to RCPT TO list */
bcc?: string;
bcc?: string | undefined;
}

@@ -103,58 +103,58 @@

/** The e-mail address of the sender. All e-mail addresses can be plain 'sender@server.com' or formatted 'Sender Name <sender@server.com>' */
from?: string | Address;
from?: string | Address | undefined;
/** An e-mail address that will appear on the Sender: field */
sender?: string | Address;
sender?: string | Address | undefined;
/** Comma separated list or an array of recipients e-mail addresses that will appear on the To: field */
to?: string | Address | Array<string | Address>;
to?: string | Address | Array<string | Address> | undefined;
/** Comma separated list or an array of recipients e-mail addresses that will appear on the Cc: field */
cc?: string | Address | Array<string | Address>;
cc?: string | Address | Array<string | Address> | undefined;
/** Comma separated list or an array of recipients e-mail addresses that will appear on the Bcc: field */
bcc?: string | Address | Array<string | Address>;
bcc?: string | Address | Array<string | Address> | undefined;
/** An e-mail address that will appear on the Reply-To: field */
replyTo?: string | Address;
replyTo?: string | Address | undefined;
/** The message-id this message is replying */
inReplyTo?: string | Address;
inReplyTo?: string | Address | undefined;
/** Message-id list (an array or space separated string) */
references?: string | string[];
references?: string | string[] | undefined;
/** The subject of the e-mail */
subject?: string;
subject?: string | undefined;
/** The plaintext version of the message */
text?: string | Buffer | Readable | AttachmentLike;
text?: string | Buffer | Readable | AttachmentLike | undefined;
/** The HTML version of the message */
html?: string | Buffer | Readable | AttachmentLike;
html?: string | Buffer | Readable | AttachmentLike | undefined;
/** Apple Watch specific HTML version of the message, same usage as with text and html */
watchHtml?: string | Buffer | Readable | AttachmentLike;
watchHtml?: string | Buffer | Readable | AttachmentLike | undefined;
/** AMP4EMAIL specific HTML version of the message, same usage as with text and html. Make sure it is a full and valid AMP4EMAIL document, otherwise the displaying email client falls back to html and ignores the amp part */
amp?: string | Buffer | Readable | AmpAttachment;
amp?: string | Buffer | Readable | AmpAttachment | undefined;
/** iCalendar event, same usage as with text and html. Event method attribute defaults to ‘PUBLISH’ or define it yourself: {method: 'REQUEST', content: iCalString}. This value is added as an additional alternative to html or text. Only utf-8 content is allowed */
icalEvent?: string | Buffer | Readable | IcalAttachment;
icalEvent?: string | Buffer | Readable | IcalAttachment | undefined;
/** An object or array of additional header fields */
headers?: Headers;
headers?: Headers | undefined;
/** An object where key names are converted into list headers. List key help becomes List-Help header etc. */
list?: ListHeaders;
list?: ListHeaders | undefined;
/** An array of attachment objects */
attachments?: Attachment[];
attachments?: Attachment[] | undefined;
/** An array of alternative text contents (in addition to text and html parts) */
alternatives?: Attachment[];
alternatives?: Attachment[] | undefined;
/** optional SMTP envelope, if auto generated envelope is not suitable */
envelope?: Envelope | MimeNode.Envelope;
envelope?: Envelope | MimeNode.Envelope | undefined;
/** optional Message-Id value, random value will be generated if not set */
messageId?: string;
messageId?: string | undefined;
/** optional Date value, current UTC string will be used if not set */
date?: Date | string;
date?: Date | string | undefined;
/** optional transfer encoding for the textual parts */
encoding?: string;
encoding?: string | undefined;
/** if set then overwrites entire message output with this value. The value is not parsed, so you should still set address headers or the envelope value for the message to work */
raw?: string | Buffer | Readable | AttachmentLike;
raw?: string | Buffer | Readable | AttachmentLike | undefined;
/** set explicitly which encoding to use for text parts (quoted-printable or base64). If not set then encoding is detected from text content (mostly ascii means quoted-printable, otherwise base64) */
textEncoding?: TextEncoding;
textEncoding?: TextEncoding | undefined;
/** if set to true then fails with an error when a node tries to load content from URL */
disableUrlAccess?: boolean;
disableUrlAccess?: boolean | undefined;
/** if set to true then fails with an error when a node tries to load content from a file */
disableFileAccess?: boolean;
disableFileAccess?: boolean | undefined;
/** is an object with DKIM options */
dkim?: DKIM.Options;
dkim?: DKIM.Options | undefined;
/** method to normalize header keys for custom caseing */
normalizeHeaderKey?(key: string): string;
priority?: "high"|"normal"|"low";
priority?: "high"|"normal"|"low" | undefined;
}

@@ -161,0 +161,0 @@

export interface HeaderValue {
value: string;
params?: { [key: string]: string };
params?: { [key: string]: string } | undefined;
}

@@ -5,0 +5,0 @@

@@ -10,8 +10,8 @@ /// <reference types="node" />

interface Addresses {
from?: string[];
sender?: string[];
'reply-to'?: string[];
to?: string[];
cc?: string[];
bcc?: string[];
from?: string[] | undefined;
sender?: string[] | undefined;
'reply-to'?: string[] | undefined;
to?: string[] | undefined;
cc?: string[] | undefined;
bcc?: string[] | undefined;
}

@@ -28,13 +28,13 @@

/** root node for this tree */
rootNode?: MimeNode;
rootNode?: MimeNode | undefined;
/** immediate parent for this node */
parentNode?: MimeNode;
parentNode?: MimeNode | undefined;
/** filename for an attachment node */
filename?: string;
filename?: string | undefined;
/** shared part of the unique multipart boundary */
baseBoundary?: string;
baseBoundary?: string | undefined;
/** If true, do not exclude Bcc from the generated headers */
keepBcc?: boolean;
keepBcc?: boolean | undefined;
/** either 'Q' (the default) or 'B' */
textEncoding?: 'B' | 'Q';
textEncoding?: 'B' | 'Q' | undefined;
/** method to normalize header keys for custom caseing */

@@ -41,0 +41,0 @@ normalizeHeaderKey?(key: string): string;

@@ -12,3 +12,3 @@ /// <reference types="node" />

export interface EncoderOptions extends TransformOptions {
lineLength?: number | false;
lineLength?: number | false | undefined;
}

@@ -15,0 +15,0 @@

@@ -17,7 +17,7 @@ /// <reference types="node" />

/** path to the sendmail command (defaults to ‘sendmail’) */
path?: string;
path?: string | undefined;
/** either ‘windows’ or ‘unix’ (default). Forces all newlines in the output to either use Windows syntax <CR><LF> or Unix syntax <LF> */
newline?: string;
newline?: string | undefined;
/** an optional array of command line options to pass to the sendmail command (ie. ["-f", "foo@blurdybloop.com"]). This overrides all default arguments except for ’-i’ and recipient list so you need to make sure you have all required arguments set (ie. the ‘-f’ flag). */
args?: string[];
args?: string[] | undefined;
}

@@ -24,0 +24,0 @@

@@ -16,3 +16,3 @@ /// <reference types="node" />

/** list of keys that SendRawEmail method can take */
ses?: MailSesOptions;
ses?: MailSesOptions | undefined;
}

@@ -24,7 +24,7 @@

*/
Source?: string;
Source?: string | undefined;
/**
* A list of destinations for the message, consisting of To:, CC:, and BCC: addresses.
*/
Destinations?: string[];
Destinations?: string[] | undefined;
/**

@@ -38,15 +38,15 @@ * The raw email message itself. The message has to meet the following criteria: The message has to contain a header and a body, separated by a blank line. All of the required header fields must be present in the message. Each part of a multipart MIME message must be formatted properly. Attachments must be of a content type that Amazon SES supports. For a list on unsupported content types, see Unsupported Attachment Types in the Amazon SES Developer Guide. The entire message must be base64-encoded. If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, we highly recommend that you encode that content. For more information, see Sending Raw Email in the Amazon SES Developer Guide. Per RFC 5321, the maximum length of each line of text, including the &lt;CRLF&gt;, must not exceed 1,000 characters.

Data: Buffer|Uint8Array|{}|string;
};
} | undefined;
/**
* This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to specify a particular "From" address in the header of the raw email. Instead of using this parameter, you can use the X-header X-SES-FROM-ARN in the raw message of the email. If you use both the FromArn parameter and the corresponding X-header, Amazon SES uses the value of the FromArn parameter. For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide.
*/
FromArn?: string;
FromArn?: string | undefined;
/**
* This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the Source parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send from user@example.com, then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the Source to be user@example.com. Instead of using this parameter, you can use the X-header X-SES-SOURCE-ARN in the raw message of the email. If you use both the SourceArn parameter and the corresponding X-header, Amazon SES uses the value of the SourceArn parameter. For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide.
*/
SourceArn?: string;
SourceArn?: string | undefined;
/**
* This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the ReturnPath parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the ReturnPath to be feedback@example.com. Instead of using this parameter, you can use the X-header X-SES-RETURN-PATH-ARN in the raw message of the email. If you use both the ReturnPathArn parameter and the corresponding X-header, Amazon SES uses the value of the ReturnPathArn parameter. For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide.
*/
ReturnPathArn?: string;
ReturnPathArn?: string | undefined;
/**

@@ -64,7 +64,7 @@ * A list of tags, in the form of name/value pairs, to apply to an email that you send using SendRawEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.

Value: string;
}>;
}> | undefined;
/**
* The name of the configuration set to use when you send an email using SendRawEmail.
*/
ConfigurationSetName?: string;
ConfigurationSetName?: string | undefined;
}

@@ -76,5 +76,5 @@

/** How many messages per second is allowed to be delivered to SES */
maxConnections?: number;
maxConnections?: number | undefined;
/** How many parallel connections to allow towards SES */
sendingRate?: number;
sendingRate?: number | undefined;
}

@@ -81,0 +81,0 @@

@@ -20,4 +20,4 @@ /// <reference types="node" />

export interface ResolveHostnameOptions {
host?: string;
servername?: string | false;
host?: string | undefined;
servername?: string | false | undefined;
}

@@ -28,3 +28,3 @@

servername: string | false;
_cached?: true;
_cached?: true | undefined;
}

@@ -31,0 +31,0 @@

@@ -33,3 +33,3 @@ /// <reference types="node" />

/** indicates the authetication type, defaults to ‘login’, other option is ‘oauth2’ or ‘custom’ */
type?: 'login' | 'Login' | 'LOGIN';
type?: 'login' | 'Login' | 'LOGIN' | undefined;
}

@@ -39,3 +39,3 @@

/** indicates the authetication type, defaults to ‘login’, other option is ‘oauth2’ or ‘custom’ */
type?: 'oauth2' | 'OAuth2' | 'OAUTH2';
type?: 'oauth2' | 'OAuth2' | 'OAUTH2' | undefined;
}

@@ -60,3 +60,3 @@

text: string;
code?: number;
code?: number | undefined;
}

@@ -84,9 +84,9 @@

/** return either the full message ‘FULL’ or only headers ‘HDRS’ */
ret?: 'Full' | 'HDRS';
ret?: 'Full' | 'HDRS' | undefined;
/** sender’s ‘envelope identifier’ for tracking */
envid?: string;
envid?: string | undefined;
/** when to send a DSN. Multiple options are OK - array or comma delimited. NEVER must appear by itself. */
notify?: DSNOption | DSNOption[];
notify?: DSNOption | DSNOption[] | undefined;
/** original recipient */
orcpt?: string;
orcpt?: string | undefined;
}

@@ -100,7 +100,7 @@

/** an optional value of the predicted size of the message in bytes. This value is used if the server supports the SIZE extension (RFC1870) */
size?: number;
size?: number | undefined;
/** if true then inform the server that this message might contain bytes outside 7bit ascii range */
use8BitMime?: boolean;
use8BitMime?: boolean | undefined;
/** the dsn options */
dsn?: DSNOptions;
dsn?: DSNOptions | undefined;
}

@@ -110,9 +110,9 @@

/** string code identifying the error, for example ‘EAUTH’ is returned when authentication */
code?: string;
code?: string | undefined;
/** the last response received from the server (if the error is caused by an error response from the server) */
response?: string;
response?: string | undefined;
/** the numeric response code of the response string (if available) */
responseCode?: number;
responseCode?: number | undefined;
/** command which provoked an error */
command?: string;
command?: string | undefined;
}

@@ -126,3 +126,3 @@

/** if some recipients were rejected then this property holds an array of error objects for the rejected recipients */
rejectedErrors?: SMTPError[];
rejectedErrors?: SMTPError[] | undefined;
/** the last response received from the server */

@@ -140,40 +140,40 @@ response: string;

/** the hostname or IP address to connect to (defaults to ‘localhost’) */
host?: string;
host?: string | undefined;
/** the port to connect to (defaults to 25 or 465) */
port?: number;
port?: number | undefined;
/** defines authentication data */
auth?: AuthenticationType;
auth?: AuthenticationType | undefined;
/** defines if the connection should use SSL (if true) or not (if false) */
secure?: boolean;
secure?: boolean | undefined;
/** turns off STARTTLS support if true */
ignoreTLS?: boolean;
ignoreTLS?: boolean | undefined;
/** forces the client to use STARTTLS. Returns an error if upgrading the connection is not possible or fails. */
requireTLS?: boolean;
requireTLS?: boolean | undefined;
/** tries to use STARTTLS and continues normally if it fails */
opportunisticTLS?: boolean;
opportunisticTLS?: boolean | undefined;
/** optional hostname of the client, used for identifying to the server */
name?: string;
name?: string | undefined;
/** the local interface to bind to for network connections */
localAddress?: string;
localAddress?: string | undefined;
/** how many milliseconds to wait for the connection to establish */
connectionTimeout?: ms;
connectionTimeout?: ms | undefined;
/** how many milliseconds to wait for the greeting after connection is established */
greetingTimeout?: ms;
greetingTimeout?: ms | undefined;
/** how many milliseconds of inactivity to allow */
socketTimeout?: ms;
socketTimeout?: ms | undefined;
/** optional bunyan compatible logger instance. If set to true then logs to console. If value is not set or is false then nothing is logged */
logger?: shared.Logger | boolean;
logger?: shared.Logger | boolean | undefined;
/** if set to true, then logs SMTP traffic without message content */
transactionLog?: boolean;
transactionLog?: boolean | undefined;
/** if set to true, then logs SMTP traffic and message content, otherwise logs only transaction events */
debug?: boolean;
debug?: boolean | undefined;
/** defines preferred authentication method, e.g. ‘PLAIN’ */
authMethod?: string;
authMethod?: string | undefined;
/** defines additional options to be passed to the socket constructor, e.g. {rejectUnauthorized: true} */
tls?: tls.ConnectionOptions;
tls?: tls.ConnectionOptions | undefined;
/** initialized socket to use instead of creating a new one */
socket?: net.Socket;
socket?: net.Socket | undefined;
/** connected socket to use instead of creating and connecting a new one. If secure option is true, then socket is upgraded from plaintext to ciphertext */
connection?: net.Socket;
customAuth?: CustomAuthenticationHandlers;
connection?: net.Socket | undefined;
customAuth?: CustomAuthenticationHandlers | undefined;
}

@@ -180,0 +180,0 @@ }

@@ -15,4 +15,4 @@ /// <reference types="node" />

interface MailOptions extends Mail.Options {
auth?: SMTPConnection.AuthenticationType;
dsn?: SMTPConnection.DSNOptions;
auth?: SMTPConnection.AuthenticationType | undefined;
dsn?: SMTPConnection.DSNOptions | undefined;
}

@@ -23,13 +23,13 @@

pool: true;
service?: string;
service?: string | undefined;
getSocket?(options: Options, callback: (err: Error | null, socketOptions: any) => void): void; // TODO http.ClientRequest?
url?: string;
url?: string | undefined;
/** the count of maximum simultaneous connections to make against the SMTP server (defaults to 5) */
maxConnections?: number;
maxConnections?: number | undefined;
/** limits the message count to be sent using a single connection (defaults to 100). After maxMessages is reached the connection is dropped and a new one is created for the following messages */
maxMessages?: number;
maxMessages?: number | undefined;
/** defines the time measuring period in milliseconds (defaults to 1000, ie. to 1 second) for rate limiting */
rateDelta?: number;
rateDelta?: number | undefined;
/** limits the message count to be sent in rateDelta time. Once rateLimit is reached, sending is paused until the end of the measuring period. This limit is shared between connections, so if one connection uses up the limit, then other connections are paused as well. If rateLimit is not set then sending rate is not limited */
rateLimit?: number;
rateLimit?: number | undefined;
}

@@ -36,0 +36,0 @@

@@ -38,10 +38,10 @@ /// <reference types="node" />

interface MailOptions extends Mail.Options {
auth?: SMTPConnection.AuthenticationType;
dsn?: SMTPConnection.DSNOptions;
auth?: SMTPConnection.AuthenticationType | undefined;
dsn?: SMTPConnection.DSNOptions | undefined;
}
interface Options extends MailOptions, TransportOptions, SMTPConnection.Options {
service?: string;
service?: string | undefined;
getSocket?(options: Options, callback: (err: Error | null, socketOptions: any) => void): void; // TODO http.ClientRequest?
url?: string;
url?: string | undefined;
}

@@ -48,0 +48,0 @@

@@ -20,5 +20,5 @@ /// <reference types="node" />

/** if true, then returns the message as a Buffer object instead of a stream */
buffer?: boolean;
buffer?: boolean | undefined;
/** either ‘windows’ or ‘unix’ (default). Forces all newlines in the output to either use Windows syntax <CR><LF> or Unix syntax <LF> */
newline?: string;
newline?: string | undefined;
}

@@ -25,0 +25,0 @@

@@ -14,22 +14,22 @@ /// <reference types="node" />

/** User e-mail address */
user?: string;
user?: string | undefined;
/** Client ID value */
clientId?: string;
clientId?: string | undefined;
/** Client secret value */
clientSecret?: string;
clientSecret?: string | undefined;
/** Refresh token for an user */
refreshToken?: string;
refreshToken?: string | undefined;
/** Endpoint for token generation, defaults to 'https://accounts.google.com/o/oauth2/token' */
accessUrl?: string;
accessUrl?: string | undefined;
/** An existing valid accessToken */
accessToken?: string;
accessToken?: string | undefined;
/** Private key for JSW */
privateKey?: string | { key: string; passphrase: string; };
privateKey?: string | { key: string; passphrase: string; } | undefined;
/** Optional Access Token expire time in ms */
expires?: ms;
expires?: ms | undefined;
/** Optional TTL for Access Token in seconds */
timeout?: s;
timeout?: s | undefined;
/** Function to run when a new access token is required */
provisionCallback?(user: string, renew: boolean, callback: (err: Error | null, accessToken: string, expires: number) => void): void;
serviceClient?: string;
serviceClient?: string | undefined;
}

@@ -44,3 +44,3 @@

interface RequestParams {
customHeaders?: http.OutgoingHttpHeaders;
customHeaders?: http.OutgoingHttpHeaders | undefined;
}

@@ -47,0 +47,0 @@ }

{
"name": "@types/nodemailer",
"version": "6.4.2",
"version": "6.4.3",
"description": "TypeScript definitions for Nodemailer",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodemailer",
"license": "MIT",

@@ -34,4 +35,4 @@ "contributors": [

},
"typesPublisherContentHash": "d82eae001ee70595c034fcffdcc5c37fd64ef3bcbd31451a0d2479d57fee0233",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "9a04e35281c1609ec1cf861766baeafdf0e42e262b2f3cd17b9f4819f9d36b40",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 24 May 2021 12:32:37 GMT
* Last updated: Wed, 07 Jul 2021 16:31:33 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc