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

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.8.8 to 1.8.9

tests/integrationtests-server.js

10

httpntlm.js

@@ -33,6 +33,10 @@ /**

if(isHttps){
keepaliveAgent = new https.Agent({keepAlive: true});
if(options.agent) {
keepaliveAgent = options.agent;
}else{
keepaliveAgent = new http.Agent({keepAlive: true});
if(isHttps){
keepaliveAgent = new https.Agent({keepAlive: true});
}else{
keepaliveAgent = new http.Agent({keepAlive: true});
}
}

@@ -39,0 +43,0 @@

{
"name": "httpntlm",
"description": "httpntlm is a Node.js library to do HTTP NTLM authentication",
"version": "1.8.8",
"version": "1.8.9",
"dependencies": {

@@ -53,4 +53,6 @@ "des.js": "^1.0.1",

"deep-equal": "^2.2.0",
"express": "^4.18.2",
"express-ntlm": "^2.6.2",
"rewire": "^6.0.0"
}
}

@@ -94,6 +94,7 @@ # httpntlm

- `url:` _{String}_ URL to connect. (Required)
- `username:` _{String}_ Username. (Required)
- `password:` _{String}_ Password. (Required)
- `workstation:` _{String}_ Name of workstation or `''`.
- `domain:` _{String}_ Name of domain or `''`.
- `username:` _{String}_ Username (optional, default: '')
- `password:` _{String}_ Password (optional, default: '')
- `workstation:` _{String}_ Name of workstation (optional, default: '')
- `domain:` _{String}_ Name of domain (optional, default: '')
- `agent:` _{Agent}_ In case you want to reuse the keepaliveAgent over different calls (optional)

@@ -201,9 +202,17 @@ if you already got the encrypted password,you should use this two param to replace the 'password' param.

To run the tests, simply run
To run the unit tests, simply run
node test.js
node ./tests/unittests.js
All tests should return `true`
To run the integration tests, first start the NTLM server with
node ./tests/integrationtests-server.js
Next, run the integration tests with:
node ./tests/integrationtests.js
## License (MIT)

@@ -210,0 +219,0 @@

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