-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from renderforest/remove-vulnerable-deps
remove vulnerable deps
- Loading branch information
Showing
17 changed files
with
6,890 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!-- | ||
Thank you for reporting an issue. | ||
Please fill in as much of the template below as you're able. | ||
If possible, please provide additional details that demonstrate the problem, keeping it as | ||
simple and free of external dependencies as you are able. | ||
--> | ||
|
||
* **Expected Behavior**: | ||
* **Actual Behavior**: | ||
* **Steps to reproduce the behavior**: | ||
|
||
<!-- Enter your issue details below this comment. --> | ||
|
||
* **Issue additional details**: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
language: node_js | ||
sudo: false | ||
node_js: | ||
- "6.9.1" | ||
- "8.8.1" | ||
- "6.13.1" | ||
- "8.9.3" | ||
cache: | ||
directories: | ||
- node_modules | ||
install: | ||
- npm install | ||
script: | ||
- npm run lint-no-fix | ||
- npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,11 @@ | ||
# notification-hooks | ||
Notification Hooks 🚨 | ||
Notification Hooks. | ||
|
||
[![Build Status](https://travis-ci.org/renderforest/notification-hooks.svg?branch=master)](https://travis-ci.org/renderforest/notification-hooks) | ||
[![GitHub issues](https://img.shields.io/github/issues/renderforest/notification-hooks.svg)](https://github.com/renderforest/notification-hooks/issues) | ||
[![GitHub release](https://img.shields.io/github/release/renderforest/notification-hooks.svg)](https://github.com/renderforest/notification-hooks/releases) | ||
[![GitHub stars](https://img.shields.io/github/stars/renderforest/notification-hooks.svg)](https://github.com/renderforest/notification-hooks/stargazers) | ||
|
||
[![Dep](https://img.shields.io/david/renderforest/notification-hooks.svg)](https://david-dm.org/renderforest/notification-hooks) | ||
[![DevDep](https://img.shields.io/david/dev/renderforest/notification-hooks.svg)](https://david-dm.org/renderforest/notification-hooks?type=dev) | ||
|
||
|
||
# API ✍ | ||
|
||
Environment variables(s): | ||
|
||
* SLACK_WEB_HOOK_URL | ||
|
||
|
||
## Slack API | ||
|
||
#### notifyError(...) | ||
``` javascript | ||
const SlackHooks = require('notification-hooks').Slack | ||
|
||
const options = { | ||
channel: '#media-upload', | ||
codeSnippet: false, // default value is `true` | ||
iconEmoji: ':lion_face:', // default value is ':fire:' | ||
text: 'Hello world!', // supports string, Object, Error | ||
username: '@albert @ryan' | ||
} | ||
|
||
SlackHooks.notifyError(options).then().catch() | ||
``` | ||
|
||
#### notifyWarn(...) | ||
``` javascript | ||
const SlackHooks = require('notification-hooks').Slack | ||
const options = { | ||
channel: '#backend', | ||
codeSnippet: false, // default value is `true` | ||
iconEmoji: ':bus:', // default value is ':warning:' | ||
text: 'Hi there!', // supports both string & Object | ||
username: '@cris @ryan' | ||
} | ||
SlackHooks.notifyWarn(options).then().catch() | ||
``` | ||
|
||
#### notifyInfo(...) | ||
``` javascript | ||
const SlackHooks = require('notification-hooks').Slack | ||
const options = { | ||
channel: '#front', | ||
codeSnippet: true, // default value is `true` | ||
iconEmoji: ':airplane:', // default value is ':information_source:' | ||
text: 'Hello!', // supports both string & Object | ||
username: '@john' | ||
} | ||
SlackHooks.notifyError(options).then().catch() | ||
``` | ||
|
||
# Development ⚠ | ||
In case you add new third party dependencies, use flow-typed npm package to add annotations for that packages. | ||
* npm i -g flow-typed | ||
* flow-typed install --ignoreDeps dev | ||
|
||
Table of Contents | ||
|
||
* [API](https://github.com/renderforest/notification-hooks/blob/master/doc/API.md) | ||
* [Contributing](https://github.com/renderforest/notification-hooks/blob/master/CONTRIBUTING.md) | ||
* [Test](https://github.com/renderforest/notification-hooks/blob/master/doc/TEST.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
'use strict' | ||
|
||
module.exports = (params) => Promise.resolve(params) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.