@oauth2-cli/qui-cli 0.5.3 → 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,20 @@
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
+
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)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * export EnvironmentStorage from class as well as module ([01cb4ea](https://github.com/battis/oauth2-cli/commit/01cb4eaf54beebd16870adbb1b2664b4e585b14f))
18
+
5
19
  ## [0.5.3](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.5.2...qui-cli-plugin/0.5.3) (2026-01-15)
6
20
 
7
21
 
package/dist/Module.d.ts CHANGED
@@ -1,11 +1,10 @@
1
- export * from './EnvironmentStorage.js';
2
1
  export * from './OAuth2.js';
3
2
  export declare const name: string;
4
3
  export declare const configure: (proposal?: import("./OAuth2.js").ConfigurationProposal) => void;
5
4
  export declare const options: () => import("@qui-cli/plugin").Options;
6
5
  export declare const init: ({ values }: import("@qui-cli/plugin").ExpectedArguments<typeof this.options>) => Promise<void>;
7
6
  export declare const getToken: () => Promise<import("oauth2-cli/dist/Token.js").Token | undefined>;
8
- export declare const getClient: () => import("oauth2-cli/dist/Client.js").Client;
7
+ export declare const getClient: () => ReturnType<typeof this.instantiateClient>;
9
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>;
10
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>;
11
10
  export declare const fetch: (endpoint: string | URL | Request, init?: RequestInit | undefined) => Promise<Response>;
package/dist/Module.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { OAuth2Plugin } from './OAuth2.js';
2
- export * from './EnvironmentStorage.js';
3
2
  export * from './OAuth2.js';
4
3
  const oauth2 = new OAuth2Plugin();
5
4
  export const name = oauth2.name;
package/dist/OAuth2.d.ts CHANGED
@@ -3,6 +3,7 @@ import { JSONValue } from '@battis/typescript-tricks';
3
3
  import * as Plugin from '@qui-cli/plugin';
4
4
  import * as OAuth2CLI from 'oauth2-cli';
5
5
  export * from 'oauth2-cli';
6
+ export * from './EnvironmentStorage.js';
6
7
  type ParamNames = 'clientId' | 'clientSecret' | 'redirectUri' | 'authorizationEndpoint' | 'tokenEndpoint' | 'tokenPath' | 'accessToken';
7
8
  type EnvironmentVars = Record<ParamNames, string>;
8
9
  type SupportUrls = Record<ParamNames, URLString>;
@@ -46,7 +47,7 @@ export declare class OAuth2Plugin {
46
47
  options(): Plugin.Options;
47
48
  init({ values }: Plugin.ExpectedArguments<typeof this.options>): Promise<void>;
48
49
  protected instantiateClient(...args: ConstructorParameters<typeof OAuth2CLI.Client>): OAuth2CLI.Client;
49
- getClient(): OAuth2CLI.Client;
50
+ getClient(): ReturnType<typeof this.instantiateClient>;
50
51
  getToken(): Promise<OAuth2CLI.Token | undefined>;
51
52
  request(...args: Parameters<OAuth2CLI.Client['request']>): Promise<Response>;
52
53
  requestJSON<T extends JSONValue>(...args: Parameters<OAuth2CLI.Client['requestJSON']>): Promise<T>;
package/dist/OAuth2.js CHANGED
@@ -6,6 +6,7 @@ import path from 'node:path';
6
6
  import * as OAuth2CLI from 'oauth2-cli';
7
7
  import { EnvironmentStorage } from './EnvironmentStorage.js';
8
8
  export * from 'oauth2-cli';
9
+ export * from './EnvironmentStorage.js';
9
10
  export class OAuth2Plugin {
10
11
  name;
11
12
  static names = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oauth2-cli/qui-cli",
3
- "version": "0.5.3",
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": {
@@ -43,6 +43,6 @@
43
43
  "build": "run-s build:*",
44
44
  "build:clean": "run-s clean",
45
45
  "build:compile": "tsc",
46
- "release": "commit-and-tag-version"
46
+ "version": "commit-and-tag-version"
47
47
  }
48
48
  }