@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.js
CHANGED
|
@@ -7794,7 +7794,7 @@ var RaisinHttpClient = class extends import_events3.EventEmitter {
|
|
|
7794
7794
|
"Content-Type": "application/json",
|
|
7795
7795
|
...options.headers
|
|
7796
7796
|
};
|
|
7797
|
-
if (!options.skipAuth
|
|
7797
|
+
if (!options.skipAuth) {
|
|
7798
7798
|
const token = this.authManager.getAccessToken();
|
|
7799
7799
|
if (token) {
|
|
7800
7800
|
headers["Authorization"] = `Bearer ${token}`;
|
|
@@ -7938,11 +7938,9 @@ var RaisinHttpClient = class extends import_events3.EventEmitter {
|
|
|
7938
7938
|
*/
|
|
7939
7939
|
mcpSubscribe(repository, branch, slug, method, params) {
|
|
7940
7940
|
const headers = {};
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
headers["Authorization"] = `Bearer ${token}`;
|
|
7945
|
-
}
|
|
7941
|
+
const token = this.authManager.getAccessToken();
|
|
7942
|
+
if (token) {
|
|
7943
|
+
headers["Authorization"] = `Bearer ${token}`;
|
|
7946
7944
|
}
|
|
7947
7945
|
const sse = new SSEClient(
|
|
7948
7946
|
`${this.baseUrl}/mcp/${repository}/${branch}/${slug}`,
|