const Octokit = require("@octokit/rest") is deprecated.
Opened this issue · 0 comments
z3niths commented
Once I use gitflow generate-token
the console popup some error msg
CMD > gitflow generate-token
? Enter your Github username z3niths
? Enter your password: [hidden]
? Do you have 2FA enabled on your GitHub account? No
[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead
Deprecation: [@octokit/rest] Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)
at authenticationPlugin (/usr/local/lib/node_modules/@crazyfactory/gitflow/node_modules/@octokit/rest/plugins/authentication/index.js:58:5)
at /usr/local/lib/node_modules/@crazyfactory/gitflow/node_modules/@octokit/rest/lib/constructor.js:26:37
at Array.forEach (<anonymous>)
at new Octokit (/usr/local/lib/node_modules/@crazyfactory/gitflow/node_modules/@octokit/rest/lib/constructor.js:26:11)
at new DeprecatedOctokit (/usr/local/lib/node_modules/@crazyfactory/gitflow/node_modules/@octokit/rest/index.js:29:10)
at Object.generateToken (/usr/local/lib/node_modules/@crazyfactory/gitflow/lib/github.js:18:13)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Command.<anonymous> (/usr/local/lib/node_modules/@crazyfactory/gitflow/index.js:56:7) {
name: 'Deprecation'
}
Deprecation: [@octokit/rest] octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations
at Object.deprecatedEndpointMethod [as listAuthorizations] (/usr/local/lib/node_modules/@crazyfactory/gitflow/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js:13127:28)
at Object.generateToken (/usr/local/lib/node_modules/@crazyfactory/gitflow/lib/github.js:30:50)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Command.<anonymous> (/usr/local/lib/node_modules/@crazyfactory/gitflow/index.js:56:7) {
name: 'Deprecation'
}
Not Found