@raisindb/client 0.4.3 → 0.4.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/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6459,7 +6459,7 @@ var RaisinHttpClient = class extends EventEmitter {
|
|
|
6459
6459
|
"Content-Type": "application/json",
|
|
6460
6460
|
...options.headers
|
|
6461
6461
|
};
|
|
6462
|
-
if (!options.skipAuth
|
|
6462
|
+
if (!options.skipAuth) {
|
|
6463
6463
|
const token = this.authManager.getAccessToken();
|
|
6464
6464
|
if (token) {
|
|
6465
6465
|
headers["Authorization"] = `Bearer ${token}`;
|
|
@@ -6603,11 +6603,9 @@ var RaisinHttpClient = class extends EventEmitter {
|
|
|
6603
6603
|
*/
|
|
6604
6604
|
mcpSubscribe(repository, branch, slug, method, params) {
|
|
6605
6605
|
const headers = {};
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
headers["Authorization"] = `Bearer ${token}`;
|
|
6610
|
-
}
|
|
6606
|
+
const token = this.authManager.getAccessToken();
|
|
6607
|
+
if (token) {
|
|
6608
|
+
headers["Authorization"] = `Bearer ${token}`;
|
|
6611
6609
|
}
|
|
6612
6610
|
const sse = new SSEClient(
|
|
6613
6611
|
`${this.baseUrl}/mcp/${repository}/${branch}/${slug}`,
|