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.2 to 2.2.3

2

package.json

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

],
"version": "2.2.2",
"version": "2.2.3",
"author": "Igor Balos",

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

@@ -39,2 +39,20 @@ import { ErrorHandler } from "../../src/client/ErrorHandler";

it('422', () => {
const errorHandler = new ErrorHandler();
const error: any = {
name: "Test name",
body: {
Message: "Test message",
ErrorCode: 422
},
statusCode: 422
};
let postmarkError = errorHandler.generateError(error);
expect(postmarkError).to.be.an.instanceof(Errors.ApiInputError);
expect(postmarkError.name).to.equal('ApiInputError')
expect(postmarkError.message).to.equal(error.body.Message);
});
it('500', () => {

@@ -41,0 +59,0 @@ const errorHandler = new ErrorHandler();

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