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

esendex

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esendex - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

definitions/useragentbuilder.d.ts

1

definitions/requesthandler.d.ts

@@ -12,4 +12,5 @@ export interface RequestHandlerOptions {

private responseHandler;
private userAgent;
constructor(options: RequestHandlerOptions);
request(method: string, path: string, query: Object, data: string, expectedStatus: number, callback: (err: any, responseData?: string) => void): void;
}

4

lib/requesthandler.js

@@ -5,2 +5,3 @@ var http = require('http');

var responsehandler_1 = require('./responsehandler');
var useragentbuilder_1 = require('./useragentbuilder');
var defaultOptions = {

@@ -26,2 +27,3 @@ host: 'api.esendex.com',

this.responseHandler = new responsehandler_1.ResponseHandler();
this.userAgent = useragentbuilder_1.UserAgentBuilder.Build();
}

@@ -33,3 +35,3 @@ RequestHandler.prototype.request = function (method, path, query, data, expectedStatus, callback) {

'Accept': 'application/xml',
'User-Agent': 'github.com/codesleuth/esendex-node'
'User-Agent': this.userAgent
};

@@ -36,0 +38,0 @@ var options = {

{
"name": "esendex",
"version": "0.1.2",
"version": "0.1.3",
"description": "Esendex Node.js client library.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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