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 4.3.4 to 4.6.0

2

nodemailer/index.d.ts

@@ -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

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