@sap/audit-logging
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -8,2 +8,8 @@ # Change Log | ||
## 4.1.0 - 2021-02-12 | ||
### Added | ||
- Added support for passing HTTP(s) request agent options to the Service transport. | ||
This feature is experimental and is therefore not documented. It may be changed or removed anytime. | ||
## 4.0.0 - 2021-02-09 | ||
@@ -10,0 +16,0 @@ |
@@ -7,2 +7,4 @@ 'use strict'; | ||
var util = require('util'); | ||
var http = require('http'); | ||
var https = require('https'); | ||
@@ -13,2 +15,6 @@ function ServiceTransport(credentials, options) { | ||
this.serviceURL = credentials.url + options.url; | ||
var requestAgentOptions = credentials.requestAgentOptions || {}; | ||
debug('HTTP(S) Agent Options: %o', requestAgentOptions); | ||
var requestAgentClass = (this.serviceURL.startsWith('https')) ? https.Agent : http.Agent; | ||
this.requestAgent = new requestAgentClass(requestAgentOptions); | ||
this.appInfo = process.env.VCAP_APPLICATION ? JSON.parse(process.env.VCAP_APPLICATION) : {}; | ||
@@ -57,3 +63,4 @@ } | ||
json: true, | ||
body: data | ||
body: data, | ||
agent: this.requestAgent | ||
}, function(err, httpResponse, body) { | ||
@@ -60,0 +67,0 @@ debug('Auditlog request: %s %s\n headers: %j\n body: %j', |
{ | ||
"name": "@sap/audit-logging", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"lockfileVersion": 1, | ||
@@ -5,0 +5,0 @@ "requires": true, |
{ | ||
"name": "@sap/audit-logging", | ||
"description": "Provides audit logging functionalities for Node.js applications", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"license": "SEE LICENSE IN LICENSE file", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
64943
887
2