-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make update URL configurable. #776
Conversation
I suggest turning whitespace off in the diff: https://github.com/mozilla-iot/gateway/pull/776/files?w=1 |
This is the first step required for WebThingsIO#697.
Codecov Report
@@ Coverage Diff @@
## master #776 +/- ##
==========================================
+ Coverage 78.85% 78.86% +0.01%
==========================================
Files 85 85
Lines 3457 3459 +2
Branches 452 452
==========================================
+ Hits 2726 2728 +2
Misses 672 672
Partials 59 59
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with one minor change inline
} | ||
fetch(config.get('updateUrl'), | ||
{headers: {'User-Agent': `mozilla-iot-gateway/${pkg.version}`}}) | ||
.then(res => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should be consistent with line 13 (which means it wouldn't have the extra indentation either)
tools/check-for-update.js
Outdated
@@ -1,61 +1,63 @@ | |||
const config = require('config'); | |||
const exec = require('child_process').exec; | |||
const fetch = require('node-fetch'); | |||
const fs = require('fs'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused import causing tests to fail
This is the first step required for #697.