@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 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("/servers", {
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("/servers", {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pelican.ts/sdk",
3
- "version": "0.3.3-next.2",
3
+ "version": "0.3.3-next.3",
4
4
  "description": "Pelican panel SDK for TypeScript",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -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
- >("/servers", {
37
+ >("/", {
38
38
  params: {type, page, include: include?.join(",")}
39
39
  })
40
40
  return data.data.map(s => s.attributes)