@mcp-use/client 2.0.0-beta.6 → 2.0.0-beta.7
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/auth/browser.d.ts +2 -0
- package/dist/auth/browser.d.ts.map +1 -1
- package/dist/auth/session-store.d.ts +5 -0
- package/dist/auth/session-store.d.ts.map +1 -1
- package/dist/index-browser.js +13 -1
- package/dist/index-browser.js.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +20 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react/types.d.ts +2 -0
- package/dist/react/types.d.ts.map +1 -1
- package/dist/react/useMcp-operations.d.ts.map +1 -1
- package/dist/react/useMcp.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1108,7 +1108,7 @@ init_connector_telemetry();
|
|
|
1108
1108
|
init_logging();
|
|
1109
1109
|
|
|
1110
1110
|
// src/utils/version.ts
|
|
1111
|
-
var VERSION = "2.0.0-beta.
|
|
1111
|
+
var VERSION = "2.0.0-beta.6";
|
|
1112
1112
|
function getPackageVersion() {
|
|
1113
1113
|
return VERSION;
|
|
1114
1114
|
}
|
|
@@ -2207,6 +2207,14 @@ var OAuthSessionStore = class _OAuthSessionStore {
|
|
|
2207
2207
|
async getTokenEndpoint() {
|
|
2208
2208
|
return (await this.discoveryState())?.authorizationServerMetadata?.token_endpoint ?? null;
|
|
2209
2209
|
}
|
|
2210
|
+
/**
|
|
2211
|
+
* Return the protected-resource URL selected during OAuth discovery.
|
|
2212
|
+
* Consumers can persist it and reuse it for server-side refresh exchanges.
|
|
2213
|
+
*/
|
|
2214
|
+
async getResource() {
|
|
2215
|
+
const resource = (await this.discoveryState())?.resourceMetadata?.resource;
|
|
2216
|
+
return typeof resource === "string" ? resource : null;
|
|
2217
|
+
}
|
|
2210
2218
|
};
|
|
2211
2219
|
|
|
2212
2220
|
// src/auth/node.ts
|