linkedin-relay-mcp 1.2.0 → 1.2.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/cli.js +2 -1
- package/dist/cli.js.map +1 -1
- package/dist/mcp-shim.js +2 -1
- package/dist/mcp-shim.js.map +1 -1
- package/package.json +1 -1
package/dist/mcp-shim.js
CHANGED
|
@@ -796,9 +796,10 @@ function classify(res) {
|
|
|
796
796
|
if (res.status === 404) {
|
|
797
797
|
return fail("NOT_FOUND", "no such resource");
|
|
798
798
|
}
|
|
799
|
-
if (res.status
|
|
799
|
+
if (res.status < 200 || res.status >= 300) {
|
|
800
800
|
return fail("FETCH_FAILED", `unexpected status ${res.status}`);
|
|
801
801
|
}
|
|
802
|
+
if (res.body.trim() === "") return { outcome: "ok", retry: false, json: null };
|
|
802
803
|
return classifyBody(res.body);
|
|
803
804
|
}
|
|
804
805
|
function referencesUrns(data) {
|