chore(generic): replace node-github with @octokit/rest
node-github was deprecated
This commit is contained in:
Родитель
a80ff504e1
Коммит
e1f26075b5
|
@ -106,6 +106,7 @@
|
||||||
"cache": true
|
"cache": true
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@octokit/rest": "^14.0.4",
|
||||||
"aws-sdk": "^2.9.0",
|
"aws-sdk": "^2.9.0",
|
||||||
"babel-register": "^6.16.3",
|
"babel-register": "^6.16.3",
|
||||||
"bluebird": "^3.4.6",
|
"bluebird": "^3.4.6",
|
||||||
|
@ -121,7 +122,6 @@
|
||||||
"electron-rebuild": "^1.6.0",
|
"electron-rebuild": "^1.6.0",
|
||||||
"form-data": "^2.1.4",
|
"form-data": "^2.1.4",
|
||||||
"fs-extra": "^5.0.0",
|
"fs-extra": "^5.0.0",
|
||||||
"github": "^13.1.0",
|
|
||||||
"glob": "^7.1.1",
|
"glob": "^7.1.1",
|
||||||
"inquirer": "^5.0.0",
|
"inquirer": "^5.0.0",
|
||||||
"lodash.merge": "^4.6.0",
|
"lodash.merge": "^4.6.0",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import GitHubAPI from 'github';
|
import GitHubAPI from '@octokit/rest';
|
||||||
|
|
||||||
export default class GitHub {
|
export default class GitHub {
|
||||||
constructor(authToken, requireAuth) {
|
constructor(authToken, requireAuth) {
|
||||||
|
|
|
@ -21,7 +21,7 @@ describe('GitHub', () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
GitHub = proxyquire.noCallThru().load('../../src/util/github', {
|
GitHub = proxyquire.noCallThru().load('../../src/util/github', {
|
||||||
github: MockGitHub,
|
'@octokit/rest': MockGitHub,
|
||||||
}).default;
|
}).default;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче