@joai/sdk 12.0.1 → 12.0.3
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.mjs +3 -3
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1529,11 +1529,11 @@ var FollowsResource = class {
|
|
|
1529
1529
|
if (params?.perPage) search.set("perPage", String(params.perPage));
|
|
1530
1530
|
if (params?.page) search.set("page", String(params.page));
|
|
1531
1531
|
const query = search.toString();
|
|
1532
|
-
return this.http.get(`
|
|
1532
|
+
return this.http.get(`follows${query ? `?${query}` : ""}`);
|
|
1533
1533
|
}
|
|
1534
1534
|
/** Idempotent: following twice returns the existing follow. */
|
|
1535
1535
|
create(payload) {
|
|
1536
|
-
return this.http.post("
|
|
1536
|
+
return this.http.post("follows", payload);
|
|
1537
1537
|
}
|
|
1538
1538
|
/** Idempotent: deleting a follow that does not exist is a no-op. */
|
|
1539
1539
|
delete(payload) {
|
|
@@ -1541,7 +1541,7 @@ var FollowsResource = class {
|
|
|
1541
1541
|
type: payload.type,
|
|
1542
1542
|
followable: payload.followable
|
|
1543
1543
|
});
|
|
1544
|
-
return this.http.delete(`
|
|
1544
|
+
return this.http.delete(`follows?${query.toString()}`);
|
|
1545
1545
|
}
|
|
1546
1546
|
};
|
|
1547
1547
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joai/sdk",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.3",
|
|
4
4
|
"description": "JoAi public API SDK — build with your AI agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"test": "jest --config jest.config.js"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@joai/core": "^5.3.
|
|
38
|
+
"@joai/core": "^5.3.3",
|
|
39
39
|
"@joai/warps": "*"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@joai/core": "^5.3.
|
|
42
|
+
"@joai/core": "^5.3.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"tsdown": "^0.21.0",
|