GithubHelp home page GithubHelp logo

bunyan-slack's People

Contributors

brooklyndev avatar eligolding avatar greenkeeper[bot] avatar james-jensen avatar mformarlon avatar michaltk avatar rexxars avatar sethpollack avatar tikotzky avatar toddself avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bunyan-slack's Issues

Screenshots

I'd like to see an example of the integration before attempting to use it, just to see an example of it.

Weird issue with constructor

ON v1.0.0
TypeError: BunyanSlack is not a constructor
If we don't use
const BunyanSlack = require('bunyan-slack').default; instead of const BunyanSlack = require('bunyan-slack');

Even on runkit the issue is reproducible
image
image

Maintenance

Hi, I'm wondering if anyone is maintaining this package? It is used in various projects we work on and now is reporting some npm audit errors. We have created a fork of this package to get around this temporarily, would you still accept pull requests to it? alternatively we would be happy to maintain it ourselves if you would prefer to transfer ownership?

Set level in stream

Is it possible to set the log level for the stream rather than globally on the logger? It would be nice to set slack to error but main logs stream to info.

Usage of this in request error

I see you have a test to make sure your error handler is being run. I can't run your tests on my machine as I receive the following error, but your travis-ci build suggests that the test passes.

In the following code block, in .on('error') you are returning this.error, but this will have lost its context when the error event fires, so you should really take a reference to this outside the request call, for example var self = this, then reference return self.error(error). I believe your code will fail otherwise!

request.post({
    url: this.webhook_url,
    body: JSON.stringify(message)
})
.on('error', function(err) {
    return this.error(err);
});

My attempt at running your tests - maybe a mocha issue?

$ npm test

> [email protected] test C:\repositories\bunyan-slack
> istanbul cover _mocha --report lcovonly

No coverage information was collected, exit without writing coverage information
C:\repositories\bunyan-slack\node_modules\.bin\_mocha.CMD:1
(function (exports, require, module, __filename, __dirname) { @IF EXIST "%~dp0
                                                              ^
SyntaxError: Unexpected token ILLEGAL
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:414:25)
    at Object.Module._extensions..js (module.js:449:10)
    at Object.Module._extensions.(anonymous function) [as .js] (C:\repositories\bunyan-slack\node_modules\istanbul\lib\hook.js:107:37)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:472:10)
    at runFn (C:\repositories\bunyan-slack\node_modules\istanbul\lib\command\common\run-with-cover.js:122:16)
    at C:\repositories\bunyan-slack\node_modules\istanbul\lib\command\common\run-with-cover.js:248:17
    at C:\repositories\bunyan-slack\node_modules\istanbul\lib\util\file-matcher.js:68:16
npm ERR! Test failed.  See above for more details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.