Skip to content

Commit

Permalink
Added test file, changed package json and some documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarvesh Chitko committed Feb 22, 2019
1 parent 17846bc commit 8dff488
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "winston-logstash",
"version": "0.0.1",
"description": "Adds Logstash support to Winston 3",
"main": "index.js",
"main": "src/index.js",
"scripts": {
"test": "test"
"test": "mocha tests/index.test.js"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* @module LogstashTransport
*/
const winston = require("winston")
const Transport = winston.transport;

/**
* @class LogstashTransport
* @extends Transport
*/
module.exports =
class LogstashTransport extends Transport {
class LogstashTransport extends winston.Transport {
/**
*
* @param {Object} options - The Configuration object
Expand Down
Empty file added tests/index.test.js
Empty file.

0 comments on commit 8dff488

Please sign in to comment.