s2cfgtojson 3.5.0 → 3.5.2

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 (3) hide show
  1. package/Struct.mts +4 -2
  2. package/package.json +1 -1
  3. package/types.mts +7 -4
package/Struct.mts CHANGED
@@ -1,5 +1,3 @@
1
- import { type } from "node:os";
2
-
3
1
  export * from "./types.mts";
4
2
  export * from "./enums.mts";
5
3
  import { DefaultEntries, GetStructType, Internal } from "./types.mts";
@@ -19,10 +17,14 @@ const INTERNAL_PROPS = new Map([
19
17
  ["removeNode", ""], // methods
20
18
  ["addNode", ""], // methods
21
19
  ["clone", ""], // methods
20
+ ["entries", ""], // methods
22
21
  ["forEach", ""], // methods
23
22
  ["filter", ""], // methods
24
23
  ["map", ""], // methods
24
+ ["fromJson", ""], // methods
25
+ ["toJson", ""], // methods
25
26
  ["toString", ""], // methods
27
+ ["fromString", ""], // methods
26
28
  ] as const);
27
29
  const INTERNAL_PROPS_INV = new Map(
28
30
  Array.from(INTERNAL_PROPS.entries()).map(([k, v]) => [v, k]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "3.5.0",
3
+ "version": "3.5.2",
4
4
  "description": "Converts Stalker 2 Cfg file into POJOs",
5
5
  "keywords": [
6
6
  "stalker",
package/types.mts CHANGED
@@ -74,11 +74,14 @@ export type Internal =
74
74
  | "removeNode"
75
75
  | "addNode"
76
76
  | "clone"
77
+ | "entries"
77
78
  | "forEach"
78
79
  | "filter"
79
80
  | "map"
80
- | "entries"
81
- | "toString";
81
+ | "fromJson"
82
+ | "toJson"
83
+ | "toString"
84
+ | "fromString";
82
85
 
83
86
  export type DeeplyPartial<T> = {
84
87
  [P in keyof T]?: T[P] extends Array<infer U>
@@ -100,7 +103,7 @@ export interface DefaultEntries {
100
103
  refkey?: string | number;
101
104
  bskipref?: boolean;
102
105
  bpatch?: boolean;
103
-
106
+ isRoot?: boolean;
104
107
  isArray?: boolean;
105
108
  useAsterisk?: boolean;
106
109
  }
@@ -1756,7 +1759,7 @@ export type QuestNodePrototype = GetStructType<{
1756
1759
  Connections: {
1757
1760
  SID: string;
1758
1761
  Name: string;
1759
- };
1762
+ }[];
1760
1763
  }[];
1761
1764
  LastPhrases: {
1762
1765
  FinishNode: boolean;