Skip to content

Commit

Permalink
chore(deps-dev): bump standard from 13.1.0 to 14.0.2 (#1052)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump standard from 13.1.0 to 14.0.2

Bumps [standard](https://github.com/standard/standard) from 13.1.0 to 14.0.2.
- [Release notes](https://github.com/standard/standard/releases)
- [Changelog](https://github.com/standard/standard/blob/master/CHANGELOG.md)
- [Commits](standard/standard@v13.1.0...v14.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* feat: update linting
  • Loading branch information
dependabot-preview[bot] authored and hacdias committed Aug 24, 2019
1 parent 4038164 commit 5a32d08
Show file tree
Hide file tree
Showing 7 changed files with 112 additions and 82 deletions.
172 changes: 100 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"request-progress": "^3.0.0",
"shx": "^0.3.2",
"spectron": "^8.0.0",
"standard": "^13.1.0",
"standard": "^14.0.2",
"tar": "^4.4.10",
"tmp": "0.1.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/auto-updater/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function setup (ctx) {
})

autoUpdater.on('update-available', async () => {
logger.info(`[updater] update available. download started`)
logger.info('[updater] update available. download started')

try {
await autoUpdater.downloadUpdate()
Expand All @@ -42,7 +42,7 @@ function setup (ctx) {
})

autoUpdater.on('update-downloaded', () => {
logger.info(`[updater] update downloaded`)
logger.info('[updater] update downloaded')

notify({
title: i18n.t('updateAvailable'),
Expand Down
2 changes: 1 addition & 1 deletion src/daemon/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function cannotConnectDialog (addr) {
}

async function cleanup (addr, path) {
logger.info(`[daemon] cleanup: started`)
logger.info('[daemon] cleanup: started')

if (!await fs.pathExists(join(path, 'config'))) {
cannotConnectDialog(addr)
Expand Down
10 changes: 6 additions & 4 deletions src/dialogs/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import dock from '../dock'
// NOTE: always send the buttons in the order [OK, Cancel, ...Actions].
// See this post for more interesting information about the topic:
// https://medium.muz.li/ok-key-and-cancel-key-which-one-should-be-set-up-on-the-left-4780e86c16eb
export default function ({ title, message, type = 'info', showDock = true, buttons = [
i18n.t('ok'),
i18n.t('cancel')
], ...opts }) {
export default function ({
title, message, type = 'info', showDock = true, buttons = [
i18n.t('ok'),
i18n.t('cancel')
], ...opts
}) {
const options = {
type: type,
buttons: buttons,
Expand Down
2 changes: 1 addition & 1 deletion src/webui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default async function (ctx) {
})

session.defaultSession.webRequest.onBeforeSendHeaders((details, callback) => {
delete details.requestHeaders['Origin']
delete details.requestHeaders.Origin
callback({ cancel: false, requestHeaders: details.requestHeaders }) // eslint-disable-line
})

Expand Down
Loading

0 comments on commit 5a32d08

Please sign in to comment.