splunk-events
Advanced tools
Comparing version 1.1.1 to 1.2.0
{ | ||
"name": "splunk-events", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Javascript lib to create Splunk Logs via HTTP", | ||
"main": "SplunkEvents.js", | ||
"scripts": { | ||
"prepublish": "babel src/index.js -o SplunkEvents.js" | ||
"build": "babel src/index.js -o SplunkEvents.js", | ||
"postreleasy": "npm publish", | ||
"prepublish": "npm run build" | ||
}, | ||
@@ -9,0 +11,0 @@ "devDependencies": { |
@@ -33,3 +33,3 @@ 'use strict'; | ||
} | ||
}; | ||
} | ||
@@ -96,3 +96,3 @@ var debounced = function debounced() { | ||
this.autoRetryFlush = _config.autoRetryFlush !== undefined ? _config.autoRetryFlush : true; | ||
this.source = _config.source !== undefined ? _config.source : 'splunkeventsjs'; | ||
this.source = _config.source !== undefined ? _config.source : 'log'; | ||
this.path = _config.path !== undefined ? _config.path : '/services/collector/event'; | ||
@@ -105,3 +105,3 @@ this.host = _config.host !== undefined ? _config.host : '-'; | ||
this.headers = { | ||
'Authorization': 'Splunk ' + this.token | ||
Authorization: 'Splunk ' + this.token | ||
}; | ||
@@ -113,3 +113,10 @@ } | ||
this.validateEvent(event); | ||
var parsedEvent = level + ',' + type + ',' + workflowType + ',' + workflowInstance + ',' + account + ' '; | ||
var parsedEvent = this.parseEventData({ | ||
level: level, | ||
type: type, | ||
workflowType: workflowType, | ||
workflowInstance: workflowInstance, | ||
account: account | ||
}); | ||
parsedEvent += this.parseEventData(event); | ||
@@ -116,0 +123,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
105172
231
1