Socket
Socket
Sign inDemoInstall

httpntlm

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httpntlm - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

19

httpntlm.js
var async = require('async');
var url = require('url');
var httpreq = require('httpreq');
var ntlm = require('./ntlm');
var HttpsAgent = require('agentkeepalive').HttpsAgent;
var keepaliveAgent = new HttpsAgent();

@@ -11,2 +10,18 @@ exports.get = function(options, callback){

// is https?
var isHttps = false;
var reqUrl = url.parse(options.url);
if(reqUrl.protocol == 'https:') isHttps = true;
// set keepaliveAgent (http or https):
var keepaliveAgent;
if(isHttps){
var HttpsAgent = require('agentkeepalive').HttpsAgent;
keepaliveAgent = new HttpsAgent();
}else{
var Agent = require('agentkeepalive');
keepaliveAgent = new Agent();
}
async.waterfall([

@@ -13,0 +28,0 @@ function ($){

2

package.json
{
"name": "httpntlm",
"description": "httpntlm is a Node.js library to do HTTP NTLM authentication",
"version": "1.1.0",
"version": "1.2.0",
"dependencies": {

@@ -6,0 +6,0 @@ "httpreq": "~0.3.4",

@@ -32,7 +32,7 @@ # httpntlm

Currently only supports __https__
Should support __http__ and __https__ now. Though, I've not tested it on http.
## Advanced
If you want to use the NTLM-functions yourself, you can access the ntlm-library like this:
If you want to use the NTLM-functions yourself, you can access the ntlm-library like this (https example):

@@ -39,0 +39,0 @@ ```js

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