@bodhiapp/bodhi-js-core 0.0.41 → 0.0.43

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.
@@ -71,6 +71,9 @@ class ge {
71
71
  setOnProgress(e) {
72
72
  return this.options.onProgress = e, this;
73
73
  }
74
+ setReauthorize(e = !0) {
75
+ return this.options.reauthorize = e, this;
76
+ }
74
77
  build() {
75
78
  const e = { ...this.options };
76
79
  return Object.keys(this.requested).length > 0 && (e.requested = { ...this.requested }), e;
@@ -1362,7 +1365,9 @@ class Pe extends ue {
1362
1365
  createMcpTransportConfig(e) {
1363
1366
  const t = this.serverUrl;
1364
1367
  if (!t)
1365
- throw new Error("DirectClient not initialized. Call init({ serverUrl }) before creating an MCP transport.");
1368
+ throw new Error(
1369
+ "DirectClient not initialized. Call init({ serverUrl }) before creating an MCP transport."
1370
+ );
1366
1371
  return {
1367
1372
  url: new URL(`${t}${e}`),
1368
1373
  fetch: O(async () => (await this.getAuthState()).accessToken)