Skip to content

Commit

Permalink
Merge branch 'hotfix/0.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
amiuhle committed Oct 6, 2015
2 parents dc9741b + 0c7990f commit eb38a8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 5 additions & 4 deletions lib/fetch-redmine.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use babel';

// import fetch from 'node-fetch';
import {} from 'whatwg-fetch';
import fetch, {Headers, Request, Response} from 'node-fetch';
// import {} from 'whatwg-fetch';
import querystring from 'querystring';

export default class Redmine {
Expand All @@ -13,15 +13,16 @@ export default class Redmine {

options(method='GET') {
return {
// mode: 'no-cors',
method: method,
headers: this.headers()
};
}

headers() {
return {
return new Headers({
'X-Redmine-API-Key': this.apiKey
};
});
}

fetch(path, params={}, method='GET') {
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "redmine",
"main": "./lib/redmine",
"version": "0.2.1",
"version": "0.2.2",
"description": "View and open your Redmine issues in Atom.",
"keywords": ["redmine", "issues"],
"activationCommands": {
Expand All @@ -16,9 +16,8 @@
"atom": ">=0.174.0 <2.0.0"
},
"dependencies": {
"atom-space-pen-views": "^2.0.5",
"season": "^5.2.0",
"node-fetch": "^1.2.1",
"whatwg-fetch": "^0.8.2"
"atom-space-pen-views": "~2.1.0",
"season": "~5.3.0",
"node-fetch": "~1.3.3"
}
}

0 comments on commit eb38a8a

Please sign in to comment.