splunk-events
Advanced tools
Comparing version 1.3.0-beta.0 to 1.3.0-beta.1
{ | ||
"name": "splunk-events", | ||
"version": "1.3.0-beta.0", | ||
"version": "1.3.0-beta.1", | ||
"description": "Javascript lib to create Splunk Logs via HTTP", | ||
@@ -5,0 +5,0 @@ "main": "SplunkEvents.js", |
@@ -97,8 +97,8 @@ 'use strict'; | ||
var data = { | ||
var data = _extends({ | ||
sourcetype: _this.source, | ||
host: _this.host, | ||
time: +new Date(), | ||
host: _this.host | ||
}, _this.injectTimestamp && { time: +new Date() }, { | ||
event: parsedEvent | ||
}; | ||
}); | ||
@@ -181,2 +181,3 @@ _this.events.push(data); | ||
this.request = _config.request !== undefined ? _config.request : this.request || fetchRequest; | ||
this.injectTimestamp = _config.injectTimestamp !== undefined ? _config.injectTimestamp : false; | ||
this.headers = { | ||
@@ -183,0 +184,0 @@ Authorization: 'Splunk ' + this.token |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
16459
215
1