@types/nodemailer
Advanced tools
Comparing version 4.3.4 to 4.6.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for Nodemailer 4.3 | ||
// Type definitions for Nodemailer 4.6 | ||
// Project: https://github.com/nodemailer/nodemailer | ||
@@ -3,0 +3,0 @@ // Definitions by: Rogier Schouten <https://github.com/rogierschouten> |
@@ -0,0 +0,0 @@ declare namespace addressparser { |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ type s = number; |
@@ -7,2 +7,3 @@ /// <reference types="node" /> | ||
import * as http from 'http'; | ||
import { Writable } from 'stream'; | ||
@@ -14,2 +15,7 @@ import * as tls from 'tls'; | ||
interface WritableResponse extends Writable { | ||
statusCode: number; | ||
headers: http.IncomingHttpHeaders; | ||
} | ||
interface Options { | ||
@@ -32,4 +38,4 @@ fetchRes?: Writable; | ||
declare function fetch(url: string, options?: fetch.Options): Writable; | ||
declare function fetch(url: string, options?: fetch.Options): fetch.WritableResponse; | ||
export = fetch; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -49,3 +49,3 @@ /// <reference types="node" /> | ||
contentType?: string; | ||
/** optional transfer encoding for the attachment, if not set it will be derived from the contentType property. Example values: quoted-printable, base64 */ | ||
/** 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?: string; | ||
@@ -139,2 +139,4 @@ /** optional content disposition type for the attachment, defaults to ‘attachment’ */ | ||
dkim?: DKIM.Options; | ||
/** method to normalize header keys for custom caseing */ | ||
normalizeHeaderKey?(key: string): string; | ||
} | ||
@@ -141,0 +143,0 @@ |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ export interface HeaderValue { |
export function detectMimeType(filename: string | false): string; | ||
export function detectExtension(mimeType: string | false): string; |
@@ -37,3 +37,5 @@ /// <reference types="node" /> | ||
/** either 'Q' (the default) or 'B' */ | ||
textEncoding: 'B' | 'Q'; | ||
textEncoding?: 'B' | 'Q'; | ||
/** method to normalize header keys for custom caseing */ | ||
normalizeHeaderKey?(key: string): string; | ||
} | ||
@@ -48,6 +50,6 @@ } | ||
declare class MimeNode { | ||
constructor(contentType: string, options: MimeNode.Options); | ||
constructor(contentType: string, options?: MimeNode.Options); | ||
/** Creates and appends a child node.Arguments provided are passed to MimeNode constructor */ | ||
createChild(contentType: string, options: MimeNode.Options): MimeNode; | ||
createChild(contentType: string, options?: MimeNode.Options): MimeNode; | ||
@@ -68,3 +70,3 @@ /** Appends an existing node to the mime tree. Removes the node from an existing tree if needed */ | ||
*/ | ||
setHeader(key: string, value: string): this; | ||
setHeader(key: string, value: string | string[]): this; | ||
setHeader(headers: { [key: string]: string } | Array<{ key: string, value: string }>): this; | ||
@@ -71,0 +73,0 @@ |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ import SMTPConnection = require('./smtp-connection'); |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
{ | ||
"name": "@types/nodemailer", | ||
"version": "4.3.4", | ||
"version": "4.6.0", | ||
"description": "TypeScript definitions for Nodemailer", | ||
@@ -28,4 +28,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "7dedb63697352d2c71c412909be46dfb47d42b5a7c63555283edd3300bcf2b2f", | ||
"typesPublisherContentHash": "412744a7909771bbe096e233222d1afac4cd96dc62de864e33ba0d1cd0304c66", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 13 Feb 2018 20:54:40 GMT | ||
* Dependencies: node, stream, tls, events, url, net, http | ||
* Last updated: Fri, 09 Mar 2018 00:01:00 GMT | ||
* Dependencies: node, stream, http, tls, events, url, net | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62591
1187