@oauth2-cli/qui-cli 1.0.2 → 1.1.0

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,19 @@
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
+ ## [1.1.0](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/1.0.3...qui-cli-plugin/1.1.0) (2026-03-04)
6
+
7
+
8
+ ### Features
9
+
10
+ * improve logging of request information ([f138d2e](https://github.com/battis/oauth2-cli/commit/f138d2ed048c87480ffb9d272024ce90943beca2))
11
+
12
+ ## [1.0.3](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/1.0.2...qui-cli-plugin/1.0.3) (2026-03-03)
13
+
14
+ ### Bug Fixes
15
+
16
+ - remove extraneous debugging output ([30e7fba](https://github.com/battis/oauth2-cli/commit/30e7fba402cba03b876b31f6cee9c612504fd98c))
17
+
5
18
  ## [1.0.2](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/1.0.1...qui-cli-plugin/1.0.2) (2026-03-03)
6
19
 
7
20
  ### Bug Fixes
package/dist/Client.js CHANGED
@@ -28,31 +28,23 @@ export class Client extends OAuth2CLI.Client {
28
28
  async authorize() {
29
29
  Log.debug(`Authorizing ${this.name} new access token`);
30
30
  const response = await super.authorize();
31
- Log.debug(`Authorized ${this.name} new access token`, { response });
31
+ Log.debug(`Authorized ${this.name} new access token:\n${Log.syntaxColor(response)}`);
32
32
  return response;
33
33
  }
34
34
  async handleAuthorizationCodeRedirect(request, session) {
35
- Log.debug(`Handling ${this.name} authorization code redirect`, { request });
35
+ Log.debug(`Handling ${this.name} authorization code redirect:\n${Log.syntaxColor(request)}`);
36
36
  const response = await super.handleAuthorizationCodeRedirect(request, session);
37
- Log.debug(`Received ${this.name} authorization code response`, {
38
- response
39
- });
37
+ Log.debug(`Received ${this.name} authorization code response:\n${Log.syntaxColor(response)}`);
40
38
  return response;
41
39
  }
42
40
  async refreshTokenGrant(token) {
43
- Log.debug(`Refreshing expired ${this.name} access token`, {
44
- token
45
- });
41
+ Log.debug(`Refreshing expired ${this.name} access token:\n${Log.syntaxColor(token)}`);
46
42
  const refreshed = await super.refreshTokenGrant(token);
47
- Log.debug(`Received refreshed ${this.name} access token`, {
48
- token: refreshed
49
- });
43
+ Log.debug(`Received refreshed ${this.name} access token:\n${Log.syntaxColor(refreshed || {})}`);
50
44
  return refreshed;
51
45
  }
52
46
  async save(response) {
53
- Log.debug(`Persisting ${this.name} refresh token, if present and storage configured`, {
54
- response
55
- });
47
+ Log.debug(`Persisting ${this.name} refresh token, if present and storage configured:\n${Log.syntaxColor(response)}`);
56
48
  return await super.save(response);
57
49
  }
58
50
  async request(url, method, body, headers, dPoPOptions) {
@@ -60,12 +52,12 @@ export class Client extends OAuth2CLI.Client {
60
52
  request: { method, url, headers, body, dPoPOptions }
61
53
  });
62
54
  const response = await super.request(url, method, body, headers, dPoPOptions);
63
- Log.debug(`Received response from ${this.name}`, { response });
55
+ Log.debug(`Received response from ${this.name}:\n${Log.syntaxColor(response)}`);
64
56
  return response;
65
57
  }
66
58
  async requestJSON(url, method, body, headers, dPoPOptions) {
67
59
  const json = await super.requestJSON(url, method, body, headers, dPoPOptions);
68
- Log.debug(`Parsed JSON from ${this.name} response`, { json });
60
+ Log.debug(`Parsed JSON from ${this.name} response:\n${Log.syntaxColor({ json })}`);
69
61
  return json;
70
62
  }
71
63
  }
@@ -28,31 +28,23 @@ export class Client extends OAuth2CLI.Client {
28
28
  async authorize() {
29
29
  Log.debug(`Authorizing ${this.name} new access token`);
30
30
  const response = await super.authorize();
31
- Log.debug(`Authorized ${this.name} new access token`, { response });
31
+ Log.debug(`Authorized ${this.name} new access token:\n${Log.syntaxColor(response)}`);
32
32
  return response;
33
33
  }
34
34
  async handleAuthorizationCodeRedirect(request, session) {
35
- Log.debug(`Handling ${this.name} authorization code redirect`, { request });
35
+ Log.debug(`Handling ${this.name} authorization code redirect:\n${Log.syntaxColor(request)}`);
36
36
  const response = await super.handleAuthorizationCodeRedirect(request, session);
37
- Log.debug(`Received ${this.name} authorization code response`, {
38
- response
39
- });
37
+ Log.debug(`Received ${this.name} authorization code response:\n${Log.syntaxColor(response)}`);
40
38
  return response;
41
39
  }
42
40
  async refreshTokenGrant(token) {
43
- Log.debug(`Refreshing expired ${this.name} access token`, {
44
- token
45
- });
41
+ Log.debug(`Refreshing expired ${this.name} access token:\n${Log.syntaxColor(token)}`);
46
42
  const refreshed = await super.refreshTokenGrant(token);
47
- Log.debug(`Received refreshed ${this.name} access token`, {
48
- token: refreshed
49
- });
43
+ Log.debug(`Received refreshed ${this.name} access token:\n${Log.syntaxColor(refreshed || {})}`);
50
44
  return refreshed;
51
45
  }
52
46
  async save(response) {
53
- Log.debug(`Persisting ${this.name} refresh token, if present and storage configured`, {
54
- response
55
- });
47
+ Log.debug(`Persisting ${this.name} refresh token, if present and storage configured:\n${Log.syntaxColor(response)}`);
56
48
  return await super.save(response);
57
49
  }
58
50
  async request(url, method, body, headers, dPoPOptions) {
@@ -60,12 +52,12 @@ export class Client extends OAuth2CLI.Client {
60
52
  request: { method, url, headers, body, dPoPOptions }
61
53
  });
62
54
  const response = await super.request(url, method, body, headers, dPoPOptions);
63
- Log.debug(`Received response from ${this.name}`, { response });
55
+ Log.debug(`Received response from ${this.name}:\n${Log.syntaxColor(response)}`);
64
56
  return response;
65
57
  }
66
58
  async requestJSON(url, method, body, headers, dPoPOptions) {
67
59
  const json = await super.requestJSON(url, method, body, headers, dPoPOptions);
68
- Log.debug(`Parsed JSON from ${this.name} response`, { json });
60
+ Log.debug(`Parsed JSON from ${this.name} response:\n${Log.syntaxColor({ json })}`);
69
61
  return json;
70
62
  }
71
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oauth2-cli/qui-cli",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
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": {
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@qui-cli/colors": "^3.2.3",
20
20
  "requestish": "0.1.3",
21
- "oauth2-cli": "1.0.1"
21
+ "oauth2-cli": "1.0.2"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@battis/descriptive-types": "^0.2.6",