@octokit/auth-oauth-device
Advanced tools
Comparing version 6.0.1 to 7.0.0-beta.1
@@ -130,3 +130,3 @@ "use strict"; | ||
// pkg/dist-src/version.js | ||
var VERSION = "6.0.1"; | ||
var VERSION = "7.0.0-beta.1"; | ||
@@ -133,0 +133,0 @@ // pkg/dist-src/index.js |
@@ -1,2 +0,2 @@ | ||
import { getOAuthAccessToken } from "./get-oauth-access-token"; | ||
import { getOAuthAccessToken } from "./get-oauth-access-token.js"; | ||
async function auth(state, authOptions) { | ||
@@ -3,0 +3,0 @@ return getOAuthAccessToken(state, { |
@@ -1,2 +0,2 @@ | ||
import { getOAuthAccessToken } from "./get-oauth-access-token"; | ||
import { getOAuthAccessToken } from "./get-oauth-access-token.js"; | ||
async function hook(state, request, route, parameters) { | ||
@@ -3,0 +3,0 @@ let endpoint = request.endpoint.merge( |
import { getUserAgent } from "universal-user-agent"; | ||
import { request as octokitRequest } from "@octokit/request"; | ||
import { auth } from "./auth"; | ||
import { hook } from "./hook"; | ||
import { VERSION } from "./version"; | ||
import { auth } from "./auth.js"; | ||
import { hook } from "./hook.js"; | ||
import { VERSION } from "./version.js"; | ||
function createOAuthDeviceAuth(options) { | ||
@@ -7,0 +7,0 @@ const requestWithDefaults = options.request || octokitRequest.defaults({ |
@@ -1,4 +0,4 @@ | ||
const VERSION = "6.0.1"; | ||
const VERSION = "7.0.0-beta.1"; | ||
export { | ||
VERSION | ||
}; |
@@ -1,2 +0,2 @@ | ||
import type { OAuthAppAuthOptions, GitHubAppAuthOptions, OAuthAppAuthentication, GitHubAppAuthentication, OAuthAppState, GitHubAppState } from "./types"; | ||
import type { OAuthAppAuthOptions, GitHubAppAuthOptions, OAuthAppAuthentication, GitHubAppAuthentication, OAuthAppState, GitHubAppState } from "./types.js"; | ||
export declare function auth(state: OAuthAppState | GitHubAppState, authOptions: OAuthAppAuthOptions | GitHubAppAuthOptions): Promise<OAuthAppAuthentication | GitHubAppAuthentication>; |
import type { RequestInterface } from "@octokit/types"; | ||
import type { OAuthAppState, GitHubAppState, OAuthAppAuthOptions, GitHubAppAuthOptions, OAuthAppAuthentication, GitHubAppAuthentication } from "./types"; | ||
import type { OAuthAppState, GitHubAppState, OAuthAppAuthOptions, GitHubAppAuthOptions, OAuthAppAuthentication, GitHubAppAuthentication } from "./types.js"; | ||
export declare function getOAuthAccessToken(state: OAuthAppState | GitHubAppState, options: { | ||
@@ -4,0 +4,0 @@ request?: RequestInterface; |
import type { RequestInterface, OctokitResponse, EndpointOptions, RequestParameters, Route } from "@octokit/types"; | ||
import type { OAuthAppState, GitHubAppState } from "./types"; | ||
import type { OAuthAppState, GitHubAppState } from "./types.js"; | ||
export declare function hook(state: OAuthAppState | GitHubAppState, request: RequestInterface, route: Route | EndpointOptions, parameters?: RequestParameters): Promise<OctokitResponse<any>>; |
@@ -1,4 +0,4 @@ | ||
import type { GitHubAppAuthInterface, GitHubAppStrategyOptions, OAuthAppAuthInterface, OAuthAppStrategyOptions } from "./types"; | ||
export type { OAuthAppStrategyOptions, OAuthAppAuthOptions, OAuthAppAuthentication, GitHubAppStrategyOptions, GitHubAppAuthOptions, GitHubAppAuthentication, GitHubAppAuthenticationWithExpiration, } from "./types"; | ||
import type { GitHubAppAuthInterface, GitHubAppStrategyOptions, OAuthAppAuthInterface, OAuthAppStrategyOptions } from "./types.js"; | ||
export type { OAuthAppStrategyOptions, OAuthAppAuthOptions, OAuthAppAuthentication, GitHubAppStrategyOptions, GitHubAppAuthOptions, GitHubAppAuthentication, GitHubAppAuthenticationWithExpiration, } from "./types.js"; | ||
export declare function createOAuthDeviceAuth(options: OAuthAppStrategyOptions): OAuthAppAuthInterface; | ||
export declare function createOAuthDeviceAuth(options: GitHubAppStrategyOptions): GitHubAppAuthInterface; |
@@ -41,7 +41,7 @@ import type { RequestInterface, Route, EndpointOptions, RequestParameters, OctokitResponse } from "@octokit/types"; | ||
tokenType: "oauth"; | ||
} & Omit<OAuthMethodsTypes.GitHubAppAuthentication, "clientSecret">; | ||
} & Omit<OAuthMethodsTypes.GitHubAppAuthenticationWithExpirationDisabled, "clientSecret">; | ||
export type GitHubAppAuthenticationWithExpiration = { | ||
type: "token"; | ||
tokenType: "oauth"; | ||
} & Omit<OAuthMethodsTypes.GitHubAppAuthentication, "clientSecret">; | ||
} & Omit<OAuthMethodsTypes.GitHubAppAuthenticationWithRefreshToken, "clientSecret">; | ||
export type Verification = { | ||
@@ -48,0 +48,0 @@ device_code: string; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "6.0.1"; | ||
export declare const VERSION = "7.0.0-beta.1"; |
@@ -106,3 +106,3 @@ // pkg/dist-src/index.js | ||
// pkg/dist-src/version.js | ||
var VERSION = "6.0.1"; | ||
var VERSION = "7.0.0-beta.1"; | ||
@@ -109,0 +109,0 @@ // pkg/dist-src/index.js |
{ | ||
"name": "@octokit/auth-oauth-device", | ||
"version": "6.0.1", | ||
"version": "7.0.0-beta.1", | ||
"description": "GitHub OAuth Device authentication strategy for JavaScript", | ||
"type": "module", | ||
"repository": "github:octokit/auth-oauth-device.js", | ||
@@ -15,17 +16,17 @@ "keywords": [ | ||
"dependencies": { | ||
"@octokit/oauth-methods": "^4.0.0", | ||
"@octokit/request": "^8.0.0", | ||
"@octokit/oauth-methods": "^5.0.0-beta.2", | ||
"@octokit/request": "^9.0.0", | ||
"@octokit/types": "^12.0.0", | ||
"universal-user-agent": "^6.0.0" | ||
"universal-user-agent": "^7.0.0" | ||
}, | ||
"devDependencies": { | ||
"@octokit/tsconfig": "^2.0.0", | ||
"@octokit/tsconfig": "^3.0.0", | ||
"@types/jest": "^29.0.0", | ||
"@types/node": "^18.0.0", | ||
"esbuild": "^0.19.0", | ||
"@types/node": "^20.0.0", | ||
"esbuild": "^0.20.0", | ||
"fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1", | ||
"glob": "^10.2.7", | ||
"jest": "^29.0.0", | ||
"prettier": "3.0.3", | ||
"semantic-release": "^22.0.0", | ||
"prettier": "3.2.5", | ||
"semantic-release": "^23.0.0", | ||
"semantic-release-plugin-update-version-in-files": "^1.1.0", | ||
@@ -32,0 +33,0 @@ "ts-jest": "^29.0.0", |
@@ -57,3 +57,3 @@ # auth-oauth-device.js | ||
```js | ||
const { createOAuthDeviceAuth } = require("@octokit/auth-oauth-device"); | ||
import { createOAuthDeviceAuth } from "@octokit/auth-oauth-device"; | ||
``` | ||
@@ -228,3 +228,3 @@ | ||
```js | ||
const { request } = require("@octokit/request"); | ||
import { request } from "@octokit/request"; | ||
createOAuthDeviceAuth({ | ||
@@ -231,0 +231,0 @@ clientId: "1234567890abcdef1234", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
51031
Yes
2
+ Added@octokit/endpoint@10.1.1(transitive)
+ Added@octokit/oauth-authorization-url@7.1.1(transitive)
+ Added@octokit/oauth-methods@5.1.2(transitive)
+ Added@octokit/request@9.1.1(transitive)
+ Added@octokit/request-error@6.1.1(transitive)
+ Addeduniversal-user-agent@7.0.2(transitive)
- Removed@octokit/endpoint@9.0.5(transitive)
- Removed@octokit/oauth-authorization-url@6.0.2(transitive)
- Removed@octokit/oauth-methods@4.1.0(transitive)
- Removed@octokit/request@8.4.0(transitive)
- Removed@octokit/request-error@5.1.0(transitive)
- Removedbtoa-lite@1.0.0(transitive)
- Removeddeprecation@2.3.1(transitive)
- Removedonce@1.4.0(transitive)
- Removeduniversal-user-agent@6.0.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updated@octokit/request@^9.0.0
Updateduniversal-user-agent@^7.0.0