@mcp-use/client 2.1.1-canary.4 → 2.1.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/dist/.tsbuildinfo +1 -1
- package/dist/index-browser.js +11 -8
- package/dist/index-browser.js.map +1 -1
- package/dist/index.js +11 -8
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +18 -9
- package/dist/react/index.js.map +1 -1
- package/dist/react/useMcp.d.ts.map +1 -1
- package/dist/transport/http.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1525,7 +1525,7 @@ init_connector_telemetry();
|
|
|
1525
1525
|
init_logging();
|
|
1526
1526
|
|
|
1527
1527
|
// src/utils/version.ts
|
|
1528
|
-
var VERSION = "2.1.1
|
|
1528
|
+
var VERSION = "2.1.1";
|
|
1529
1529
|
function getPackageVersion() {
|
|
1530
1530
|
return VERSION;
|
|
1531
1531
|
}
|
|
@@ -3071,12 +3071,10 @@ var HttpConnector = class extends BaseConnector {
|
|
|
3071
3071
|
await transport.finishAuth(code, iss);
|
|
3072
3072
|
}
|
|
3073
3073
|
}).then(() => {
|
|
3074
|
-
|
|
3075
|
-
this.authorizationCache
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
};
|
|
3079
|
-
}
|
|
3074
|
+
this.authorizationCache = {
|
|
3075
|
+
...this.authorizationCache ?? { mode: "mixed" },
|
|
3076
|
+
authenticated: true
|
|
3077
|
+
};
|
|
3080
3078
|
}).finally(() => {
|
|
3081
3079
|
this.pendingOAuthCompletion = null;
|
|
3082
3080
|
});
|
|
@@ -3107,7 +3105,12 @@ var HttpConnector = class extends BaseConnector {
|
|
|
3107
3105
|
return this.authorizationCache;
|
|
3108
3106
|
}
|
|
3109
3107
|
if (this.authorizationDiscovery) return this.authorizationDiscovery;
|
|
3110
|
-
this.authorizationDiscovery = this.discoverMixedAuthorization()
|
|
3108
|
+
this.authorizationDiscovery = this.discoverMixedAuthorization().then(
|
|
3109
|
+
(authorization) => {
|
|
3110
|
+
if (!authorization) this.authorizationDiscovery = null;
|
|
3111
|
+
return authorization;
|
|
3112
|
+
}
|
|
3113
|
+
);
|
|
3111
3114
|
return this.authorizationDiscovery;
|
|
3112
3115
|
}
|
|
3113
3116
|
async discoverMixedAuthorization() {
|