Comparing version 0.1.2 to 0.1.3
@@ -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; | ||
} |
@@ -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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
48813
36
440
1