oauth2-cli 1.2.3 → 1.2.4

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
+ ## [1.2.4](https://github.com/battis/oauth2-cli/compare/oauth2-cli/1.2.3...oauth2-cli/1.2.4) (2026-03-08)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * actually fix base_url completion removing search params ([2575df7](https://github.com/battis/oauth2-cli/commit/2575df7250ec1c5c0ba76ab5f7babc40b2e5a07d))
11
+
5
12
  ## [1.2.3](https://github.com/battis/oauth2-cli/compare/oauth2-cli/1.2.2...oauth2-cli/1.2.3) (2026-03-08)
6
13
 
7
14
  ## [1.2.2](https://github.com/battis/oauth2-cli/compare/oauth2-cli/1.2.1...oauth2-cli/1.2.2) (2026-03-08)
package/dist/Client.js CHANGED
@@ -259,13 +259,24 @@ export class Client extends EventEmitter {
259
259
  }
260
260
  catch (error) {
261
261
  if (this.base_url || this.credentials.issuer) {
262
- url = new URL(url, this.base_url || this.credentials.issuer);
262
+ try {
263
+ url = new URL(url, this.base_url || this.credentials.issuer);
264
+ }
265
+ catch (error) {
266
+ throw new Error(`${this.name} request url invalid`, {
267
+ cause: {
268
+ url,
269
+ base_url: this.base_url,
270
+ issuer: this.credentials.issuer,
271
+ error
272
+ }
273
+ });
274
+ }
263
275
  }
264
276
  else {
265
277
  throw new Error(`${this.name} request url invalid`, {
266
278
  cause: {
267
- base_url: this.base_url,
268
- issuer: this.credentials.issuer,
279
+ url,
269
280
  error
270
281
  }
271
282
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oauth2-cli",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Acquire API access tokens via OAuth 2.0 / OpenID Connect within CLI tools",
5
5
  "homepage": "https://github.com/battis/oauth2-cli/tree/main/packages/oauth2-cli#readme",
6
6
  "repository": {
@@ -23,8 +23,8 @@
23
23
  "open": "^11.0.0",
24
24
  "openid-client": "^6.8.2",
25
25
  "ora": "^9.3.0",
26
- "gcrtl": "0.1.11",
27
- "requestish": "0.1.10"
26
+ "requestish": "0.1.10",
27
+ "gcrtl": "0.1.11"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@battis/descriptive-types": "^0.2.6",