splunk-events
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -10,2 +10,6 @@ # Changelog | ||
## [1.4.2] - 2021-03-09 | ||
### Added | ||
- Custom header to be added in the request | ||
## [1.4.1] - 2020-09-18 | ||
@@ -12,0 +16,0 @@ ### Fixed |
@@ -61,2 +61,6 @@ import { FetchContext } from './request'; | ||
token: string; | ||
/** | ||
* Custom headers to be added in the request | ||
*/ | ||
headers?: HeadersInit; | ||
} | ||
@@ -63,0 +67,0 @@ declare type EventData = Record<string, string | number | boolean>; |
@@ -142,5 +142,3 @@ "use strict"; | ||
this.shouldParseEventData = (_r = config.shouldParseEventData) !== null && _r !== void 0 ? _r : true; | ||
this.headers = { | ||
Authorization: "Splunk " + this.token | ||
}; | ||
this.headers = __assign({ Authorization: "Splunk " + this.token, 'Content-Type': 'application/json' }, config.headers); | ||
}; | ||
@@ -147,0 +145,0 @@ /** |
{ | ||
"name": "splunk-events", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Javascript lib to create Splunk Logs via HTTP", | ||
@@ -5,0 +5,0 @@ "main": "lib/splunk-events.js", |
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
26871
427