Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor #27

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
6316b74
added bugsnag
Dec 15, 2018
f0d5735
added to readme
Dec 15, 2018
b13daf5
decoupled bugsnag from platform
Dec 15, 2018
5584651
small adjustments; added tests
Dec 15, 2018
8a14c45
improved oauth routes
Dec 15, 2018
92006a1
moved twilio helper test
Dec 15, 2018
6f2fb4b
new tests for platform
Dec 16, 2018
52d110a
factored envoy api out of platform; removed unused intercept function…
Dec 16, 2018
89be853
covered all event failure scenarios
Dec 16, 2018
639f395
added event report helpers
Dec 22, 2018
6646431
added route generation helper tests
Dec 22, 2018
b32ed60
minor fixes; removed redundant code paths
Dec 22, 2018
de28514
use loadHandler to load routes
Dec 22, 2018
475944f
improved coverage, added test for oauth routes
Dec 22, 2018
e0c8ad4
refactored request type
Dec 22, 2018
b8ccfb1
refactored platform to class
Dec 22, 2018
fe304eb
refactored to hide private methods
Dec 22, 2018
03511a5
added jsdocs to platform file
Dec 22, 2018
2236a84
check that helpers are attached
Dec 22, 2018
60e2255
removed todo
Dec 22, 2018
4226620
updated readme w jsdoc auto generation
Dec 22, 2018
98f4a9c
small readme fix
Dec 22, 2018
2bd94cd
full response test coverage; deprecated response.store; minor fix on …
Dec 23, 2018
be804a0
added tests for job actions when response should be delayed
Dec 23, 2018
815ad92
refactored response to es2015 and standardjs
Dec 23, 2018
3afafa0
hidden respond functionality while keeping the _respond functinality …
Dec 23, 2018
fc2a5ce
reordered method
Dec 23, 2018
0551dcd
added response jsdocs; updated types readme
Dec 23, 2018
599b0ff
changed helper files to only include libraries, rather than implement…
Dec 23, 2018
21b23ac
added sms helper jsdocs and readme
Dec 23, 2018
d6d44d6
renamed platform opts to platform options
Dec 23, 2018
16a7a8e
added email jsdoc; updated readme
Dec 23, 2018
2b949ed
added envoy api jsdoc
Dec 23, 2018
04141fe
updated readme.md
Dec 23, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions helpers/logger.js
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
const debug = require('debug')
const info = debug('envoy-plugin:info')
const warn = debug('envoy-plugin:warn')
const error = debug('envoy-plugin:error')

function log (...args) {
args[0] = args[0]
.replace(/^.*envoy-plugin:/, '')
.replace(/^([^\s]+)/, `$1 ::`)
console.log(...args)
}

info.log = warn.log = error.log = log

module.exports = { info, warn, error }
module.exports = require('../lib/logger')
1 change: 1 addition & 0 deletions helpers/twilioHelper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/twilioHelper')
Loading