@oauth2-cli/qui-cli 0.5.2 → 0.5.3
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 +7 -0
- package/dist/OAuth2.d.ts +1 -1
- package/dist/OAuth2.js +2 -5
- package/package.json +1 -1
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.3](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.5.2...qui-cli-plugin/0.5.3) (2026-01-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* instantiateClient() _returns_ the client ([a302fdb](https://github.com/battis/oauth2-cli/commit/a302fdba916f68756b24319d432cc6adce09a1ba))
|
|
11
|
+
|
|
5
12
|
## [0.5.2](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.5.1...qui-cli-plugin/0.5.2) (2026-01-15)
|
|
6
13
|
|
|
7
14
|
|
package/dist/OAuth2.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare class OAuth2Plugin {
|
|
|
45
45
|
configure(proposal?: ConfigurationProposal): void;
|
|
46
46
|
options(): Plugin.Options;
|
|
47
47
|
init({ values }: Plugin.ExpectedArguments<typeof this.options>): Promise<void>;
|
|
48
|
-
protected instantiateClient(...args: ConstructorParameters<typeof OAuth2CLI.Client>):
|
|
48
|
+
protected instantiateClient(...args: ConstructorParameters<typeof OAuth2CLI.Client>): OAuth2CLI.Client;
|
|
49
49
|
getClient(): OAuth2CLI.Client;
|
|
50
50
|
getToken(): Promise<OAuth2CLI.Token | undefined>;
|
|
51
51
|
request(...args: Parameters<OAuth2CLI.Client['request']>): Promise<Response>;
|
package/dist/OAuth2.js
CHANGED
|
@@ -142,7 +142,7 @@ export class OAuth2Plugin {
|
|
|
142
142
|
this.configure(proposal);
|
|
143
143
|
}
|
|
144
144
|
instantiateClient(...args) {
|
|
145
|
-
|
|
145
|
+
return new OAuth2CLI.Client(...args);
|
|
146
146
|
}
|
|
147
147
|
getClient() {
|
|
148
148
|
if (!this.client) {
|
|
@@ -159,7 +159,7 @@ export class OAuth2Plugin {
|
|
|
159
159
|
if (!authorization_endpoint) {
|
|
160
160
|
throw new Error('OAuth 2.0 authorization endpoint not defined');
|
|
161
161
|
}
|
|
162
|
-
this.instantiateClient({
|
|
162
|
+
this.client = this.instantiateClient({
|
|
163
163
|
client_id,
|
|
164
164
|
client_secret,
|
|
165
165
|
redirect_uri,
|
|
@@ -169,9 +169,6 @@ export class OAuth2Plugin {
|
|
|
169
169
|
store
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
if (!this.client) {
|
|
173
|
-
throw new Error('Failed to instantiate oauth2-cli Client.');
|
|
174
|
-
}
|
|
175
172
|
return this.client;
|
|
176
173
|
}
|
|
177
174
|
getToken() {
|
package/package.json
CHANGED