s2cfgtojson 3.2.4 → 3.2.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/Struct.mts CHANGED
@@ -239,7 +239,11 @@ function parseHead(line: string, index: number): Struct {
239
239
 
240
240
  const dummy = createDynamicClassInstance(match[1].trim(), index);
241
241
  if (match[3]) {
242
- Object.assign(dummy.__internal__, new Refs(match[3]));
242
+ const parsed = new Refs(match[3]);
243
+ dummy.__internal__.refurl = parsed.refurl;
244
+ dummy.__internal__.refkey = parsed.refkey;
245
+ dummy.__internal__.bskipref = parsed.bskipref;
246
+ dummy.__internal__.bpatch = parsed.bpatch;
243
247
  }
244
248
 
245
249
  return dummy as Struct;
package/Struct.test.mts CHANGED
@@ -79,6 +79,7 @@ struct.end`,
79
79
  test("1", () => {
80
80
  const instance = createDynamicClassInstance("DynamicClass");
81
81
  expect(instance).toBeInstanceOf(Struct);
82
+ expect(instance.__internal__.rawName).toBe("DynamicClass");
82
83
  expect(instance.toString()).toBe(
83
84
  `DynamicClass : struct.begin\n\nstruct.end`,
84
85
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "3.2.4",
3
+ "version": "3.2.5",
4
4
  "description": "Converts Stalker 2 Cfg file into POJOs",
5
5
  "keywords": [
6
6
  "stalker",