@pelican.ts/sdk 0.3.3-next.2 → 0.3.3-next.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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/api/client/client.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -907,7 +907,7 @@ var Client = class {
|
|
|
907
907
|
};
|
|
908
908
|
listServers = async (type = "accessible", page = 1, per_page = 50, include) => {
|
|
909
909
|
import_zod5.default.number().positive().parse(page);
|
|
910
|
-
const { data } = await this.r.get("/
|
|
910
|
+
const { data } = await this.r.get("/", {
|
|
911
911
|
params: { type, page, include: include?.join(",") }
|
|
912
912
|
});
|
|
913
913
|
return data.data.map((s) => s.attributes);
|
package/dist/index.mjs
CHANGED
|
@@ -870,7 +870,7 @@ var Client = class {
|
|
|
870
870
|
};
|
|
871
871
|
listServers = async (type = "accessible", page = 1, per_page = 50, include) => {
|
|
872
872
|
z5.number().positive().parse(page);
|
|
873
|
-
const { data } = await this.r.get("/
|
|
873
|
+
const { data } = await this.r.get("/", {
|
|
874
874
|
params: { type, page, include: include?.join(",") }
|
|
875
875
|
});
|
|
876
876
|
return data.data.map((s) => s.attributes);
|
package/package.json
CHANGED
package/src/api/client/client.ts
CHANGED
|
@@ -34,7 +34,7 @@ export class Client {
|
|
|
34
34
|
z.number().positive().parse(page)
|
|
35
35
|
const {data} = await this.r.get<
|
|
36
36
|
GenericListResponse<GenericResponse<Server, "server">>
|
|
37
|
-
>("/
|
|
37
|
+
>("/", {
|
|
38
38
|
params: {type, page, include: include?.join(",")}
|
|
39
39
|
})
|
|
40
40
|
return data.data.map(s => s.attributes)
|