response-dashboard
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -14,3 +14,3 @@ const got = require('got') | ||
*/ | ||
module.exports = async(url, callback = () => { }) => { | ||
module.exports = async(url, callback = () => {}) => { | ||
try { | ||
@@ -28,4 +28,5 @@ if (url && url.match(/url=/gi)) { | ||
} catch (error) { | ||
callback() | ||
return {url: url, response: error} | ||
} | ||
} |
const got = require('got') | ||
module.exports = async(url, callback = () => { }) => { | ||
module.exports = async(url, callback = () => {}) => { | ||
try { | ||
@@ -15,2 +15,3 @@ let validURL = false | ||
} catch (error) { | ||
callback() | ||
return {url: url, response: error} | ||
@@ -17,0 +18,0 @@ //= > 'Internal server error ...' |
{ | ||
"name": "response-dashboard", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Performance measurement dashboard with configurable metrics and end-point monitoring. Ideally suited to API microservices.", | ||
@@ -17,3 +17,3 @@ "main": "index.js", | ||
"start": "node index.js", | ||
"test": "echo \"Error: no test specified\" && exit 0" | ||
"test": "jest --maxWorkers=1 --testTimeout=30000" | ||
}, | ||
@@ -20,0 +20,0 @@ "author": "marctimperley@yahoo.co.uk", |
@@ -68,3 +68,3 @@ # dashboard | ||
## Contributing and Code of Conduct | ||
## Contributing and Code of Conduct [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/MarcTimperley/response-dashboard/issues) | ||
@@ -85,6 +85,6 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on the code of conduct, and the process for submitting pull requests. | ||
- [ ] Build interval per measurement | ||
- [ ] Build all test cases | ||
- [X] Build all test cases | ||
- [ ] Add security to web server front end | ||
- [ ] Improve automation | ||
- [ ] Test coverage | ||
- [X] Improve automation | ||
- [X] Test coverage | ||
- [ ] Build admin UI | ||
@@ -101,1 +101,3 @@ - [X] Move measurement config to JSON file | ||
* | ||
[![https://nodei.co/npm/response-dashboard.png?downloads=true&downloadRank=true&stars=true](https://nodei.co/npm/response-dashboard.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/response-dashboard) |
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
155427
24
776
1
100