agentskillsdk 0.1.0 → 0.1.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/package.json +1 -1
- package/src/lib/api.js +1 -2
package/package.json
CHANGED
package/src/lib/api.js
CHANGED
|
@@ -8,8 +8,7 @@ export async function fetchSkills() {
|
|
|
8
8
|
throw new Error('Could not reach agentskills.dk. Check your internet connection.');
|
|
9
9
|
}
|
|
10
10
|
if (!res.ok) throw new Error(`Failed to fetch skills: ${res.status}`);
|
|
11
|
-
|
|
12
|
-
return data.skills;
|
|
11
|
+
return res.json();
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
export async function fetchSkill(name) {
|