Comparing version 1.8.8 to 1.8.9
@@ -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 @@ |
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
55395
9
923
237
4
6