caplets 0.5.0 → 0.5.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/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19848,7 +19848,7 @@ const EMPTY_COMPLETION_RESULT = { completion: {
|
|
|
19848
19848
|
} };
|
|
19849
19849
|
//#endregion
|
|
19850
19850
|
//#region package.json
|
|
19851
|
-
var version = "0.5.
|
|
19851
|
+
var version = "0.5.1";
|
|
19852
19852
|
//#endregion
|
|
19853
19853
|
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
19854
19854
|
/**
|
|
@@ -31713,8 +31713,9 @@ var FileOAuthProvider = class {
|
|
|
31713
31713
|
return this.verifier;
|
|
31714
31714
|
}
|
|
31715
31715
|
addClientAuthentication = async (headers, params) => {
|
|
31716
|
-
if (this.server.auth?.type !== "oauth2" && this.server.auth?.type !== "oidc"
|
|
31717
|
-
params.set("
|
|
31716
|
+
if (this.server.auth?.type !== "oauth2" && this.server.auth?.type !== "oidc") return;
|
|
31717
|
+
if (this.server.auth.clientId) params.set("client_id", this.server.auth.clientId);
|
|
31718
|
+
if (this.server.auth.clientSecret) params.set("client_secret", this.server.auth.clientSecret);
|
|
31718
31719
|
headers.set("content-type", "application/x-www-form-urlencoded");
|
|
31719
31720
|
};
|
|
31720
31721
|
};
|