Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

splunk-events

Package Overview
Dependencies
Maintainers
55
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

splunk-events - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

4

CHANGELOG.md

@@ -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>;

4

lib/splunk-events.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc