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.7.6 to 2.7.7

8

CHANGELOG.md
# Changelog
## 2.7.7
* Added delivery types to server model
## 2.7.6
* Improved data model for webhook triggers
## 2.7.4

@@ -4,0 +12,0 @@

4

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

@@ -11,2 +11,6 @@ export declare enum LinkTrackingOptions {

}
export declare enum ServerDeliveryTypes {
Live = "Live",
Sandbox = "Sandbox"
}
export declare class Header {

@@ -13,0 +17,0 @@ Name: string;

@@ -15,2 +15,7 @@ "use strict";

})(LinkClickLocation = exports.LinkClickLocation || (exports.LinkClickLocation = {}));
var ServerDeliveryTypes;
(function (ServerDeliveryTypes) {
ServerDeliveryTypes["Live"] = "Live";
ServerDeliveryTypes["Sandbox"] = "Sandbox";
})(ServerDeliveryTypes = exports.ServerDeliveryTypes || (exports.ServerDeliveryTypes = {}));
var Header = /** @class */ (function () {

@@ -17,0 +22,0 @@ function Header(Name, Value) {

6

dist/client/models/server/Server.d.ts

@@ -1,2 +0,2 @@

import { LinkTrackingOptions } from "../message/SupportingTypes";
import { LinkTrackingOptions, ServerDeliveryTypes } from "../message/SupportingTypes";
export interface Server {

@@ -10,2 +10,3 @@ ID: number;

RawEmailEnabled: boolean;
DeliveryType: ServerDeliveryTypes;
InboundAddress: string;

@@ -46,3 +47,4 @@ InboundHookUrl?: string;

export declare class CreateServerRequest extends UpdateServerRequest {
constructor(Name: string, Color?: string, SmtpApiActivated?: boolean, RawEmailEnabled?: boolean, InboundHookUrl?: string, BounceHookUrl?: string, OpenHookUrl?: string, DeliveryHookUrl?: string, ClickHookUrl?: string, PostFirstOpenOnly?: boolean, InboundSpamThreshold?: number, TrackOpens?: boolean, TrackLinks?: LinkTrackingOptions, IncludeBounceContentInHook?: boolean, EnableSmtpApiErrorHooks?: boolean, InboundDomain?: string);
DeliveryType?: ServerDeliveryTypes;
constructor(Name: string, Color?: string, SmtpApiActivated?: boolean, RawEmailEnabled?: boolean, InboundHookUrl?: string, BounceHookUrl?: string, OpenHookUrl?: string, DeliveryHookUrl?: string, ClickHookUrl?: string, PostFirstOpenOnly?: boolean, InboundSpamThreshold?: number, TrackOpens?: boolean, TrackLinks?: LinkTrackingOptions, IncludeBounceContentInHook?: boolean, EnableSmtpApiErrorHooks?: boolean, InboundDomain?: string, DeliveryType?: ServerDeliveryTypes);
}

@@ -37,4 +37,6 @@ "use strict";

__extends(CreateServerRequest, _super);
function CreateServerRequest(Name, Color, SmtpApiActivated, RawEmailEnabled, InboundHookUrl, BounceHookUrl, OpenHookUrl, DeliveryHookUrl, ClickHookUrl, PostFirstOpenOnly, InboundSpamThreshold, TrackOpens, TrackLinks, IncludeBounceContentInHook, EnableSmtpApiErrorHooks, InboundDomain) {
return _super.call(this, Name, Color, SmtpApiActivated, RawEmailEnabled, InboundHookUrl, BounceHookUrl, OpenHookUrl, DeliveryHookUrl, ClickHookUrl, PostFirstOpenOnly, InboundSpamThreshold, TrackOpens, TrackLinks, IncludeBounceContentInHook, EnableSmtpApiErrorHooks, InboundDomain) || this;
function CreateServerRequest(Name, Color, SmtpApiActivated, RawEmailEnabled, InboundHookUrl, BounceHookUrl, OpenHookUrl, DeliveryHookUrl, ClickHookUrl, PostFirstOpenOnly, InboundSpamThreshold, TrackOpens, TrackLinks, IncludeBounceContentInHook, EnableSmtpApiErrorHooks, InboundDomain, DeliveryType) {
var _this = _super.call(this, Name, Color, SmtpApiActivated, RawEmailEnabled, InboundHookUrl, BounceHookUrl, OpenHookUrl, DeliveryHookUrl, ClickHookUrl, PostFirstOpenOnly, InboundSpamThreshold, TrackOpens, TrackLinks, IncludeBounceContentInHook, EnableSmtpApiErrorHooks, InboundDomain) || this;
_this.DeliveryType = DeliveryType;
return _this;
}

@@ -41,0 +43,0 @@ return CreateServerRequest;

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

],
"version": "2.7.6",
"version": "2.7.7",
"author": "Igor Balos",

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

@@ -15,11 +15,13 @@ <a href="https://postmarkapp.com">

1. Make sure the tests pass for your branch in CI
1. Merge your branch to master
2. Update version in package.json
3. Compile the latest version (details how to run command are in the package.json)
4. Make sure the tests pass (details how to run them in the package.json)
5. Update CHANGELOG.md with the latest release details
6. Compile the docs (details in the package.json - unless it's a very small change)
7. Push the changes to Github and wait for tests to pass
8. Push the changes to NPM with `npm publish`
9. Update any related content in the [Github wiki](https://github.com/wildbit/postmark.js/wiki)
10. Add release version in the [Github releases](https://github.com/wildbit/postmark.js/releases) so it has a tag.
1. Determine the next version of the library by following the [SemVer](https://semver.org/) guidelines
1. Update version in package.json
1. Compile the latest version (details how to run command are in the package.json)
1. Make sure the tests pass locally (details how to run them in the package.json)
1. Update CHANGELOG.md with the latest release details
1. Compile the docs (details in the package.json - unless it's a very small change)
1. Push the changes to Github and wait for tests to pass in CI
1. Push the changes to NPM with `npm publish`
1. Update any related content in the [Github wiki](https://github.com/wildbit/postmark.js/wiki)
1. Add release version in the [Github releases](https://github.com/wildbit/postmark.js/releases) so it has a tag.

@@ -1,7 +0,8 @@

import { expect } from "chai";
import {expect} from "chai";
import "mocha";
import { CreateServerRequest, UpdateServerRequest } from "../../src/client/models";
import * as nconf from "nconf";
import {CreateServerRequest, ServerDeliveryTypes, UpdateServerRequest} from "../../src/client/models";
import * as postmark from "../../src/index";
import * as nconf from "nconf";
const testingKeys = nconf.env().file({ file: __dirname + "/../../testing_keys.json" });

@@ -40,2 +41,9 @@

it("createServer - delivery type - sandbox", async () => {
const serverOptions = serverToTest();
serverOptions.DeliveryType = ServerDeliveryTypes.Sandbox;
const serverDetails = await client.createServer(serverOptions);
expect(serverDetails.DeliveryType).to.equal("Sandbox");
});
it("editServer", async () => {

@@ -42,0 +50,0 @@ const serverOptions = new UpdateServerRequest(undefined, "red");

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