@octokit/auth-oauth-app
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -15,3 +15,3 @@ 'use strict'; | ||
// instead it’s using the github.com domain. | ||
const route = /^https:\/\/(api\.)?github\.com$/.test(state.request.endpoint.DEFAULTS.baseUrl) ? "POST https://github.com/login/oauth/access_token" : `POST ${state.request.endpoint.DEFAULTS.baseUrl}/login/oauth/access_token`; | ||
const route = /^https:\/\/(api\.)?github\.com$/.test(state.request.endpoint.DEFAULTS.baseUrl) ? "POST https://github.com/login/oauth/access_token" : `POST ${state.request.endpoint.DEFAULTS.baseUrl.replace("/api/v3", "/login/oauth/access_token")}`; | ||
const request = customRequest || state.request; | ||
@@ -114,3 +114,3 @@ const { | ||
const VERSION = "2.0.1"; | ||
const VERSION = "0.0.0-development"; | ||
@@ -117,0 +117,0 @@ function createOAuthAppAuth(options) { |
@@ -7,3 +7,3 @@ export async function getOAuthAccessToken(state, customRequest) { | ||
? "POST https://github.com/login/oauth/access_token" | ||
: `POST ${state.request.endpoint.DEFAULTS.baseUrl}/login/oauth/access_token`; | ||
: `POST ${state.request.endpoint.DEFAULTS.baseUrl.replace("/api/v3", "/login/oauth/access_token")}`; | ||
const request = customRequest || state.request; | ||
@@ -10,0 +10,0 @@ const { data } = await request(route, { |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "2.0.1"; | ||
export const VERSION = "0.0.0-development"; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "2.0.1"; | ||
export declare const VERSION = "0.0.0-development"; |
@@ -11,3 +11,3 @@ import getUserAgent from 'universal-user-agent'; | ||
? "POST https://github.com/login/oauth/access_token" | ||
: `POST ${state.request.endpoint.DEFAULTS.baseUrl}/login/oauth/access_token`; | ||
: `POST ${state.request.endpoint.DEFAULTS.baseUrl.replace("/api/v3", "/login/oauth/access_token")}`; | ||
const request = customRequest || state.request; | ||
@@ -105,3 +105,3 @@ const { data } = await request(route, { | ||
const VERSION = "2.0.1"; | ||
const VERSION = "0.0.0-development"; | ||
@@ -108,0 +108,0 @@ function createOAuthAppAuth(options) { |
{ | ||
"name": "@octokit/auth-oauth-app", | ||
"description": "GitHub OAuth App authentication for JavaScript", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"license": "MIT", | ||
@@ -16,2 +16,3 @@ "files": [ | ||
"authentication", | ||
"oauth", | ||
"api" | ||
@@ -31,6 +32,5 @@ ], | ||
"devDependencies": { | ||
"@pika/pack": "^0.4.0", | ||
"@pika/pack": "^0.5.0", | ||
"@pika/plugin-build-node": "^0.6.0", | ||
"@pika/plugin-build-web": "^0.6.0", | ||
"@pika/plugin-bundle-web": "^0.6.0", | ||
"@pika/plugin-ts-standard-pkg": "^0.6.0", | ||
@@ -41,3 +41,2 @@ "@types/fetch-mock": "^7.3.1", | ||
"jest": "^24.8.0", | ||
"pika-plugin-unpkg-field": "^1.1.0", | ||
"semantic-release": "^15.13.12", | ||
@@ -54,4 +53,3 @@ "semantic-release-plugin-update-version-in-files": "^1.0.0", | ||
"main": "dist-node/index.js", | ||
"module": "dist-web/index.js", | ||
"unpkg": "dist-web/index.bundled.js" | ||
"module": "dist-web/index.js" | ||
} |
@@ -78,3 +78,2 @@ # auth-oauth-app.js | ||
// clientSecret: 'secret', | ||
// location: 'query', | ||
// query: { | ||
@@ -393,24 +392,2 @@ // client_id: '123', | ||
</tr> | ||
<tr> | ||
<th> | ||
<code>headers</code> | ||
</th> | ||
<th> | ||
<code>object</code> | ||
</th> | ||
<td> | ||
<code>{ authorization }</code> - value for the "Authorization" header | ||
</td> | ||
</tr> | ||
<tr> | ||
<th> | ||
<code>query</code> | ||
</th> | ||
<th> | ||
<code>object</code> | ||
</th> | ||
<td> | ||
<code>{}</code> - not used | ||
</td> | ||
</tr> | ||
</tbody> | ||
@@ -417,0 +394,0 @@ </table> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12
53304
21
551
448