Comparing version 1.2.0 to 1.3.0
@@ -6,3 +6,3 @@ var async = require('async'); | ||
exports.get = function(options, callback){ | ||
exports.method = function(method, options, callback){ | ||
if(!options.workstation) options.workstation = ''; | ||
@@ -47,3 +47,3 @@ if(!options.domain) options.domain = ''; | ||
httpreq.get(options.url, { | ||
httpreq[method](options.url, { | ||
headers:{ | ||
@@ -58,5 +58,9 @@ 'Connection' : 'Close', | ||
], callback); | ||
} | ||
}; | ||
['get', 'put', 'post', 'delete', 'head'].forEach(function(method){ | ||
exports[method] = exports.method.bind(exports, method); | ||
}); | ||
exports.ntlm = ntlm; //if you want to use the NTML functions yourself | ||
{ | ||
"name": "httpntlm", | ||
"description": "httpntlm is a Node.js library to do HTTP NTLM authentication", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"dependencies": { | ||
@@ -23,2 +23,8 @@ "httpreq": "~0.3.4", | ||
"main": "./httpntlm", | ||
"contributors": [ | ||
{ | ||
"name": "Marius Gundersen", | ||
"url": "https://github.com/mariusGundersen" | ||
} | ||
], | ||
"licenses": [ | ||
@@ -25,0 +31,0 @@ { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20637
367