s2cfgtojson 3.2.8 → 3.2.9

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.
Files changed (2) hide show
  1. package/Struct.mts +3 -0
  2. package/package.json +1 -1
package/Struct.mts CHANGED
@@ -144,6 +144,9 @@ export class Struct {
144
144
  const clone = this.clone();
145
145
  clone.entries().forEach(([key, value], i, arr) => {
146
146
  clone[key] = callback([key as K, value as V], i, arr as any);
147
+ if (clone[key] === null || clone[key] === undefined) {
148
+ delete clone[key];
149
+ }
147
150
  });
148
151
  return clone;
149
152
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "3.2.8",
3
+ "version": "3.2.9",
4
4
  "description": "Converts Stalker 2 Cfg file into POJOs",
5
5
  "keywords": [
6
6
  "stalker",