@oauth2-cli/qui-cli-plugin 0.2.3 → 0.2.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 +14 -0
- package/dist/OAuth2CLI.d.ts +2 -1
- package/dist/OAuth2CLI.js +2 -1
- package/package.json +1 -1
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.2.5](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.2.4...qui-cli-plugin/0.2.5) (2025-12-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* expose headers configuration ([bac6bcb](https://github.com/battis/oauth2-cli/commit/bac6bcbf351155472494b82ad620f6b4bc19a1e6))
|
|
11
|
+
|
|
12
|
+
## [0.2.4](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.2.3...qui-cli-plugin/0.2.4) (2025-12-23)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* more aggressively fix typing for partial configuration ([97f7e0c](https://github.com/battis/oauth2-cli/commit/97f7e0c034202fb26654677b5a3a836ff989b116))
|
|
18
|
+
|
|
5
19
|
## [0.2.3](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.2.2...qui-cli-plugin/0.2.3) (2025-12-23)
|
|
6
20
|
|
|
7
21
|
|
package/dist/OAuth2CLI.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export type Configuration = Plugin.Configuration & {
|
|
|
28
28
|
client_id?: string;
|
|
29
29
|
client_secret?: string;
|
|
30
30
|
redirect_uri?: URLString;
|
|
31
|
+
headers?: Record<string, string>;
|
|
31
32
|
authorization_endpoint?: URLString;
|
|
32
33
|
token_endpoint?: URLString;
|
|
33
34
|
store?: OAuth2.TokenStorage;
|
|
@@ -37,7 +38,7 @@ export type Configuration = Plugin.Configuration & {
|
|
|
37
38
|
suppress?: OptionSuppression;
|
|
38
39
|
};
|
|
39
40
|
export declare const name = "@oauth2-cli/qui-cli-plugin";
|
|
40
|
-
export declare function configure(proposal?: Partial<Configuration
|
|
41
|
+
export declare function configure(proposal?: Partial<Omit<Configuration, 'env' | 'suppress'>> & {
|
|
41
42
|
env?: Partial<EnvironmentVars>;
|
|
42
43
|
suppress?: Partial<OptionSuppression>;
|
|
43
44
|
}): void;
|
package/dist/OAuth2CLI.js
CHANGED
|
@@ -124,7 +124,7 @@ export async function init(args) {
|
|
|
124
124
|
}
|
|
125
125
|
function getClient() {
|
|
126
126
|
if (!client) {
|
|
127
|
-
const { client_id, client_secret, redirect_uri, authorization_endpoint, token_endpoint, store } = config;
|
|
127
|
+
const { client_id, client_secret, redirect_uri, authorization_endpoint, token_endpoint, headers, store } = config;
|
|
128
128
|
if (!client_id) {
|
|
129
129
|
throw new Error('OAuth 2.0 client ID not defined');
|
|
130
130
|
}
|
|
@@ -143,6 +143,7 @@ function getClient() {
|
|
|
143
143
|
redirect_uri,
|
|
144
144
|
authorization_endpoint,
|
|
145
145
|
token_endpoint,
|
|
146
|
+
headers,
|
|
146
147
|
store
|
|
147
148
|
});
|
|
148
149
|
}
|
package/package.json
CHANGED