Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  fix(build): Ensure all modern lang features are polyfilled by Babel, supporting older versions of No
  • Loading branch information
ibarsi committed Oct 9, 2017
2 parents 020e3db + 69a6c38 commit 58b8a37
Show file tree
Hide file tree
Showing 5 changed files with 5,538 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"presets": [
"latest-minimal"
"latest"
],
"plugins": [
"transform-runtime"
],
"sourceMaps": true,
"retainLines": true
Expand Down
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"debug"
],
"console": "integratedTerminal",
"port": 12345,
"port": 9229,
"cwd": "${workspaceRoot}",
"sourceMaps": true,
"outFiles": [
Expand All @@ -26,4 +26,4 @@
"restart": true
}
]
}
}
6 changes: 5 additions & 1 deletion main/modules/commits.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ function GitHubCommits(auth) {
};

const branches = await fetch(config.branches_url.replace('{owner}', owner).replace('{repo}', repository), options.config)
.then(response => response.json());
.then(response => {
if (response.status !== 200) { throw new Error(`ERROR: ${ response.status } - ${ response.statusText }`); }

return response.json();
});

const branch_commit_results = await Promise.all(branches.map(branch => {
return _requestPagedResponse(Object.assign({}, options, {
Expand Down
Loading

0 comments on commit 58b8a37

Please sign in to comment.