@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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2192
|
+
this.subusers = server.relationships.subusers?.data?.map(
|
|
2193
2193
|
(d) => new ServerUser(this.client, d.attributes)
|
|
2194
2194
|
);
|
|
2195
2195
|
}
|