winston-transport-splunk
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -5,2 +5,5 @@ # Changelog | ||
#### [0.0.2] - 31-05-2019 | ||
- Use require instead of ES6 import/export. | ||
#### [0.0.1] - 31-05-2019 | ||
@@ -7,0 +10,0 @@ - draft implementation. |
{ | ||
"name": "winston-transport-splunk", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "winston transport for Splunk Event API", | ||
"main": "src/index.js", | ||
"main": "src/lib/index.js", | ||
"scripts": { | ||
@@ -26,3 +26,2 @@ "test": "echo \"Error: no test specified\" && exit 0", | ||
"dependencies": { | ||
"esm": "^3.2.20", | ||
"lodash": "^4.17.11", | ||
@@ -29,0 +28,0 @@ "splunk-logging": "^0.10.1", |
@@ -8,3 +8,3 @@ # winston-splunk | ||
import winston from 'winston'; | ||
import { Splunk } from 'winston-splunk'; | ||
import { Splunk } from 'winston-transport-splunk'; | ||
@@ -11,0 +11,0 @@ |
@@ -8,8 +8,7 @@ /* | ||
*/ | ||
import _ from 'lodash'; | ||
import os from 'os'; | ||
import util from 'util'; | ||
import Transport from 'winston-transport'; | ||
import winston from 'winston'; | ||
import { createLogger } from './splunk-logger'; | ||
const _ = require('lodash'); | ||
const util = require('util'); | ||
const Transport = require('winston-transport'); | ||
const winston = require('winston'); | ||
const { createLogger } = require('./splunk-logger'); | ||
@@ -53,5 +52,5 @@ | ||
source: opts.source, | ||
sourcetype: opts.sourcetype || 'api_json', | ||
index: opts.index || '', | ||
host: opts.host || os.hostname() | ||
sourcetype: opts.sourcetype, | ||
index: opts.index, | ||
host: opts.host | ||
}); | ||
@@ -98,2 +97,2 @@ | ||
export { Splunk }; | ||
module.exports = { Splunk }; |
@@ -1,3 +0,3 @@ | ||
import _ from 'lodash'; | ||
import { Logger, utils } from 'splunk-logging'; | ||
const _ = require('lodash'); | ||
const { Logger, utils } = require('splunk-logging'); | ||
@@ -35,2 +35,2 @@ | ||
export { createLogger }; | ||
module.exports = { createLogger }; |
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
5
6583
7
108
- Removedesm@^3.2.20
- Removedesm@3.2.25(transitive)