utilium 1.7.7 → 1.7.8

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/struct.js CHANGED
@@ -180,7 +180,7 @@ export function deserialize(instance, _buffer) {
180
180
  for (const [name, { type, offset, length: rawLength }] of members) {
181
181
  const length = _memberLength(instance, rawLength, name);
182
182
  for (let i = 0; i < Math.abs(length); i++) {
183
- let object = length != -1 ? instance[name][i] : instance[name];
183
+ let object = length != -1 ? instance[name] : instance;
184
184
  const key = length != -1 ? i : name, iOff = offset + sizeof(type) * i;
185
185
  if (typeof instance[name] == 'string') {
186
186
  instance[name] =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utilium",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "Typescript utilities",
5
5
  "funding": {
6
6
  "type": "individual",
package/src/struct.ts CHANGED
@@ -239,7 +239,7 @@ export function deserialize(instance: unknown, _buffer: ArrayBufferLike | ArrayB
239
239
  for (const [name, { type, offset, length: rawLength }] of members) {
240
240
  const length = _memberLength(instance, rawLength, name);
241
241
  for (let i = 0; i < Math.abs(length); i++) {
242
- let object = length != -1 ? instance[name][i] : instance[name];
242
+ let object = length != -1 ? instance[name] : instance;
243
243
  const key = length != -1 ? i : name,
244
244
  iOff = offset + sizeof(type) * i;
245
245