@oauth2-cli/qui-cli 0.5.0 → 0.5.1

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.1](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.5.0...qui-cli-plugin/0.5.1) (2026-01-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * implement convenience methods as methods, not properties ([a3f67fe](https://github.com/battis/oauth2-cli/commit/a3f67fecde50ae19d8cf960fe6828623e745126b))
11
+
5
12
  ## [0.5.0](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.4.3...qui-cli-plugin/0.5.0) (2026-01-14)
6
13
 
7
14
 
package/dist/OAuth2.d.ts CHANGED
@@ -46,9 +46,9 @@ export declare class OAuth2 {
46
46
  options(): Plugin.Options;
47
47
  init({ values }: Plugin.ExpectedArguments<typeof this.options>): Promise<void>;
48
48
  getClient(): OAuth2CLI.Client;
49
- getToken: () => Promise<OAuth2CLI.Token | undefined>;
50
- request: (...args: Parameters<OAuth2CLI.Client["request"]>) => Promise<Response>;
51
- fetch: (...args: Parameters<OAuth2CLI.Client["fetch"]>) => Promise<Response>;
52
- requestJSON: <T extends JSONValue>(...args: Parameters<OAuth2CLI.Client["requestJSON"]>) => Promise<T>;
53
- fetchJSON: <T extends JSONValue>(...args: Parameters<OAuth2CLI.Client["fetchJSON"]>) => Promise<T>;
49
+ getToken(): Promise<OAuth2CLI.Token | undefined>;
50
+ request(...args: Parameters<OAuth2CLI.Client['request']>): Promise<Response>;
51
+ requestJSON<T extends JSONValue>(...args: Parameters<OAuth2CLI.Client['requestJSON']>): Promise<T>;
52
+ fetch(...args: Parameters<OAuth2CLI.Client['fetch']>): Promise<Response>;
53
+ fetchJSON<T extends JSONValue>(...args: Parameters<OAuth2CLI.Client['fetchJSON']>): Promise<T>;
54
54
  }
package/dist/OAuth2.js CHANGED
@@ -166,9 +166,19 @@ export class OAuth2 {
166
166
  }
167
167
  return this.client;
168
168
  }
169
- getToken = () => this.getClient().getToken();
170
- request = (...args) => this.getClient().request(...args);
171
- fetch = (...args) => this.getClient().fetch(...args);
172
- requestJSON = (...args) => this.getClient().requestJSON(...args);
173
- fetchJSON = (...args) => this.getClient().fetchJSON(...args);
169
+ getToken() {
170
+ return this.getClient().getToken();
171
+ }
172
+ request(...args) {
173
+ return this.getClient().request(...args);
174
+ }
175
+ requestJSON(...args) {
176
+ return this.getClient().requestJSON(...args);
177
+ }
178
+ fetch(...args) {
179
+ return this.getClient().fetch(...args);
180
+ }
181
+ fetchJSON(...args) {
182
+ return this.getClient().fetchJSON(...args);
183
+ }
174
184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oauth2-cli/qui-cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
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": {
@@ -29,7 +29,7 @@
29
29
  "@qui-cli/root": "^3.0.6",
30
30
  "@tsconfig/node24": "^24.0.3",
31
31
  "commit-and-tag-version": "^12.6.1",
32
- "del-cli": "^6.0.0",
32
+ "del-cli": "^7.0.0",
33
33
  "npm-run-all": "^4.1.5",
34
34
  "typescript": "^5.9.3"
35
35
  },