oauth2-cli 0.7.1 → 0.7.2

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.7.2](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.7.1...oauth2-cli/0.7.2) (2026-02-16)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * resolve remaining requestish requests correctly ([2be680c](https://github.com/battis/oauth2-cli/commit/2be680c9575bcfe9e816e450c85b94ccf5c8f950))
11
+
5
12
  ## [0.7.1](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.7.0...oauth2-cli/0.7.1) (2026-02-16)
6
13
 
7
14
  ## [0.7.0](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.6.0...oauth2-cli/0.7.0) (2026-02-16)
package/README.md CHANGED
@@ -62,10 +62,10 @@ class Client {
62
62
  // ...
63
63
 
64
64
  public async request(
65
- url: Req.URL.ish,
65
+ url: requestish.URL.ish,
66
66
  method = 'GET',
67
67
  body?: OpenIDClient.FetchBody,
68
- headers: Req.Headers.ish = {},
68
+ headers: requestish.Headers.ish = {},
69
69
  dPoPOptions?: OpenIDClient.DPoPOptions
70
70
  ) {
71
71
  // ...
@@ -73,7 +73,7 @@ class Client {
73
73
  }
74
74
  ```
75
75
 
76
- [`Req.URL.ish`](https://github.com/battis/oauth2-cli/blob/main/packages/oauth2-cli/src/Request/URL.ts#L3) and [`Req.Headers.ish`](https://github.com/battis/oauth2-cli/blob/main/packages/oauth2-cli/src/Request/Headers.ts#L1) are more forgiving types accepting not just those specific types, but reasonable facsimiles of them.
76
+ [`requestish.URL.ish`](https://www.npmjs.com/package/requestish) are more forgiving types accepting not just those specific types, but reasonable facsimiles of them.
77
77
 
78
78
  ### `requestJSON<T>()`
79
79
 
@@ -86,10 +86,10 @@ class Client {
86
86
  public async requestJSON<
87
87
  T extends OpenIDClient.JsonValue = OpenIDClient.JsonValue
88
88
  >(
89
- url: Req.URL.ish,
89
+ url: requestish.URL.ish,
90
90
  method = 'GET',
91
91
  body?: OpenIDClient.FetchBody,
92
- headers: Req.Headers.ish = {},
92
+ headers: requestish.Headers.ish = {},
93
93
  dPoPOptions?: OpenIDClient.DPoPOptions
94
94
  ) {
95
95
  // ...
package/dist/Client.js CHANGED
@@ -108,7 +108,7 @@ export class Client extends EventEmitter {
108
108
  ? requestish.URLSearchParams.from(this.inject.search)
109
109
  : undefined, {
110
110
  // @ts-expect-error 2322 undocumented arg pass-through to oauth4webapi
111
- headers: Req.Headers.merge(this.headers, request?.headers)
111
+ headers: requestish.Headers.merge(this.headers, request?.headers)
112
112
  });
113
113
  return await this.save(token);
114
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oauth2-cli",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Acquire API access tokens via OAuth 2.0 within CLI tools",
5
5
  "homepage": "https://github.com/battis/oauth2-cli/tree/main/packages/oauth2-cli#readme",
6
6
  "repository": {