@oauth2-cli/qui-cli 0.5.4 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [0.5.5](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.5.4...qui-cli-plugin/0.5.5) (2026-01-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * getClient() should return the type instantiated by instiateClient() ([46a4507](https://github.com/battis/oauth2-cli/commit/46a450707954917e1f55595fb3e35f0a62f475fc))
11
+
5
12
  ## [0.5.4](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.5.3...qui-cli-plugin/0.5.4) (2026-01-15)
6
13
 
7
14
 
package/dist/Module.d.ts CHANGED
@@ -4,7 +4,7 @@ export declare const configure: (proposal?: import("./OAuth2.js").ConfigurationP
4
4
  export declare const options: () => import("@qui-cli/plugin").Options;
5
5
  export declare const init: ({ values }: import("@qui-cli/plugin").ExpectedArguments<typeof this.options>) => Promise<void>;
6
6
  export declare const getToken: () => Promise<import("oauth2-cli/dist/Token.js").Token | undefined>;
7
- export declare const getClient: () => import("oauth2-cli/dist/Client.js").Client;
7
+ export declare const getClient: () => ReturnType<typeof this.instantiateClient>;
8
8
  export declare const request: (url: string | URL, method?: string | undefined, body?: import("openid-client").FetchBody, headers?: Headers | undefined, dPoPOptions?: import("openid-client").DPoPOptions | undefined) => Promise<Response>;
9
9
  export declare const requestJSON: <T extends import("@battis/typescript-tricks").JSONValue>(url: string | URL, method?: string | undefined, body?: import("openid-client").FetchBody, headers?: Headers | undefined, dPoPOptions?: import("openid-client").DPoPOptions | undefined) => Promise<T>;
10
10
  export declare const fetch: (endpoint: string | URL | Request, init?: RequestInit | undefined) => Promise<Response>;
package/dist/OAuth2.d.ts CHANGED
@@ -47,7 +47,7 @@ export declare class OAuth2Plugin {
47
47
  options(): Plugin.Options;
48
48
  init({ values }: Plugin.ExpectedArguments<typeof this.options>): Promise<void>;
49
49
  protected instantiateClient(...args: ConstructorParameters<typeof OAuth2CLI.Client>): OAuth2CLI.Client;
50
- getClient(): OAuth2CLI.Client;
50
+ getClient(): ReturnType<typeof this.instantiateClient>;
51
51
  getToken(): Promise<OAuth2CLI.Token | undefined>;
52
52
  request(...args: Parameters<OAuth2CLI.Client['request']>): Promise<Response>;
53
53
  requestJSON<T extends JSONValue>(...args: Parameters<OAuth2CLI.Client['requestJSON']>): Promise<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oauth2-cli/qui-cli",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "@qui-cli/plugin wrapper for oauth2-cli",
5
5
  "homepage": "https://github.com/battis/oauth2-cli/tree/main/packages/qui-cli#readme",
6
6
  "repository": {