s2cfgtojson 3.5.0 → 3.5.1
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 +4 -0
- package/package.json +1 -1
- package/types.mts +6 -3
package/Struct.mts
CHANGED
|
@@ -19,10 +19,14 @@ const INTERNAL_PROPS = new Map([
|
|
|
19
19
|
["removeNode", ""], // methods
|
|
20
20
|
["addNode", ""], // methods
|
|
21
21
|
["clone", ""], // methods
|
|
22
|
+
["entries", ""], // methods
|
|
22
23
|
["forEach", ""], // methods
|
|
23
24
|
["filter", ""], // methods
|
|
24
25
|
["map", ""], // methods
|
|
26
|
+
["fromJson", ""], // methods
|
|
27
|
+
["toJson", ""], // methods
|
|
25
28
|
["toString", ""], // methods
|
|
29
|
+
["fromString", ""], // methods
|
|
26
30
|
] as const);
|
|
27
31
|
const INTERNAL_PROPS_INV = new Map(
|
|
28
32
|
Array.from(INTERNAL_PROPS.entries()).map(([k, v]) => [v, k]),
|
package/package.json
CHANGED
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
|
-
| "
|
|
81
|
-
| "
|
|
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
|
}
|