@pelican.ts/sdk 0.5.2-next.3 → 0.5.2-next.5

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
@@ -2227,14 +2227,14 @@ var Server = class {
2227
2227
  this.isSuspended = server.is_suspended;
2228
2228
  this.isInstalling = server.is_installing;
2229
2229
  this.isTransferring = server.is_transferring;
2230
- this.allocations = server.relationships.allocations.data.map(
2230
+ this.allocations = server.relationships.allocations?.data.map(
2231
2231
  (d) => new ServerAllocation(this.client, d.attributes)
2232
2232
  );
2233
- this.variables = server.relationships.variables.data.map(
2233
+ this.variables = server.relationships.variables?.data.map(
2234
2234
  (d) => d.attributes
2235
2235
  );
2236
2236
  this.egg = server.relationships.egg?.attributes;
2237
- this.subusers = server.relationships.subusers?.data.map(
2237
+ this.subusers = server.relationships.subusers?.data?.map(
2238
2238
  (d) => new ServerUser(this.client, d.attributes)
2239
2239
  );
2240
2240
  }
package/dist/index.mjs CHANGED
@@ -2182,14 +2182,14 @@ var Server = class {
2182
2182
  this.isSuspended = server.is_suspended;
2183
2183
  this.isInstalling = server.is_installing;
2184
2184
  this.isTransferring = server.is_transferring;
2185
- this.allocations = server.relationships.allocations.data.map(
2185
+ this.allocations = server.relationships.allocations?.data.map(
2186
2186
  (d) => new ServerAllocation(this.client, d.attributes)
2187
2187
  );
2188
- this.variables = server.relationships.variables.data.map(
2188
+ this.variables = server.relationships.variables?.data.map(
2189
2189
  (d) => d.attributes
2190
2190
  );
2191
2191
  this.egg = server.relationships.egg?.attributes;
2192
- this.subusers = server.relationships.subusers?.data.map(
2192
+ this.subusers = server.relationships.subusers?.data?.map(
2193
2193
  (d) => new ServerUser(this.client, d.attributes)
2194
2194
  );
2195
2195
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pelican.ts/sdk",
3
- "version": "0.5.2-next.3",
3
+ "version": "0.5.2-next.5",
4
4
  "description": "Pelican panel SDK for TypeScript",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",