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

postmark

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postmark - npm Package Compare versions

Comparing version 2.2.5 to 2.2.6

7

dist/client/models/message/SupportingTypes.d.ts

@@ -16,2 +16,9 @@ export declare enum LinkTrackingOptions {

}
/**
* Attachment content
*
* @param Name - name of the attachment, for example book.pdf
* @param Content - Base64 encoded content, for example: fs.readFileSync('/Folder/book.pdf').toString('base64')
* @param ContentID - id of the attachment, in case we are referencing it, for example: cid:123book.pdf
*/
export declare class Attachment {

@@ -18,0 +25,0 @@ constructor(Name: string, Content: string, ContentType: string, ContentID?: string | null);

@@ -23,2 +23,9 @@ "use strict";

exports.Header = Header;
/**
* Attachment content
*
* @param Name - name of the attachment, for example book.pdf
* @param Content - Base64 encoded content, for example: fs.readFileSync('/Folder/book.pdf').toString('base64')
* @param ContentID - id of the attachment, in case we are referencing it, for example: cid:123book.pdf
*/
var Attachment = /** @class */ (function () {

@@ -25,0 +32,0 @@ function Attachment(Name, Content, ContentType, ContentID) {

2

dist/client/models/templates/Template.d.ts
import { Attachment, Header, LinkTrackingOptions } from "../message/SupportingTypes";
import { Hash } from "../client/SupportingTypes";
export declare class UpdateTemplateRequest {

@@ -78,3 +79,4 @@ constructor(Name?: string, Subject?: string, HtmlBody?: string, TextBody?: string, Alias?: string | null);

Headers?: Header[];
Metadata?: Hash<string>;
Attachments?: Attachment[];
}

2

package.json

@@ -12,3 +12,3 @@ {

],
"version": "2.2.5",
"version": "2.2.6",
"author": "Igor Balos",

@@ -15,0 +15,0 @@ "contributors": [

@@ -90,2 +90,4 @@ import * as postmark from "../../src/index";

fromAddress, template.TemplateId, {}, toAddress);
templatedMessage.Metadata = { "Key": "Value"};
const result = await client.sendEmailWithTemplate(templatedMessage);

@@ -92,0 +94,0 @@ expect(result.Message).to.eq("OK");

Sorry, the diff of this file is not supported yet

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