@o3co/ts.hocon 1.5.2 → 1.6.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/dist/{config-BwjvKeZ5.d.cts → config-DCSLXkNY.d.cts} +11 -6
- package/dist/{config-BwjvKeZ5.d.ts → config-DCSLXkNY.d.ts} +11 -6
- package/dist/index.cjs +289 -183
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +289 -183
- package/dist/zod.cjs +289 -183
- package/dist/zod.d.cts +1 -1
- package/dist/zod.d.ts +1 -1
- package/dist/zod.js +289 -183
- package/package.json +1 -1
|
@@ -24,6 +24,8 @@ type SubstPlaceholder = {
|
|
|
24
24
|
_kind: 'subst-placeholder';
|
|
25
25
|
segments: Segment[];
|
|
26
26
|
optional: boolean;
|
|
27
|
+
/** Internal sentinel for a folded optional self-ref with no prior value. */
|
|
28
|
+
knownAbsent: boolean;
|
|
27
29
|
listSuffix: boolean;
|
|
28
30
|
line: number;
|
|
29
31
|
col: number;
|
|
@@ -37,17 +39,20 @@ type ConcatPlaceholder = {
|
|
|
37
39
|
/** 1-based column of the concat value in the source file (from AST Concat pos). */
|
|
38
40
|
col: number;
|
|
39
41
|
};
|
|
40
|
-
type AppendPlaceholder = {
|
|
41
|
-
_kind: 'append-placeholder';
|
|
42
|
-
existing: ResolverValue;
|
|
43
|
-
elem: ResolverValue;
|
|
44
|
-
};
|
|
45
42
|
type ResObj = {
|
|
46
43
|
_kind: 'res-obj';
|
|
47
44
|
fields: Map<string, ResolverValue>;
|
|
48
45
|
priorValues: Map<string, ResolverValue>;
|
|
46
|
+
/**
|
|
47
|
+
* Keys whose net value in THIS object was established by an explicit
|
|
48
|
+
* non-self-referential assignment (`k = [...]`), i.e. a reset rather than a
|
|
49
|
+
* `+=`/self-ref append. Used by `deepMergeResObjInto` to decide whether an
|
|
50
|
+
* included file's `k` chains off the destination's pre-merge value (append
|
|
51
|
+
* origin → splice) or replaces it (reset origin → discard). See go.hocon#134.
|
|
52
|
+
*/
|
|
53
|
+
resetKeys: Set<string>;
|
|
49
54
|
};
|
|
50
|
-
type ResolverValue = HoconValue | SubstPlaceholder | ConcatPlaceholder |
|
|
55
|
+
type ResolverValue = HoconValue | SubstPlaceholder | ConcatPlaceholder | ResObj;
|
|
51
56
|
/**
|
|
52
57
|
* Custom resolver for `include package("id", "file")`.
|
|
53
58
|
*
|
|
@@ -24,6 +24,8 @@ type SubstPlaceholder = {
|
|
|
24
24
|
_kind: 'subst-placeholder';
|
|
25
25
|
segments: Segment[];
|
|
26
26
|
optional: boolean;
|
|
27
|
+
/** Internal sentinel for a folded optional self-ref with no prior value. */
|
|
28
|
+
knownAbsent: boolean;
|
|
27
29
|
listSuffix: boolean;
|
|
28
30
|
line: number;
|
|
29
31
|
col: number;
|
|
@@ -37,17 +39,20 @@ type ConcatPlaceholder = {
|
|
|
37
39
|
/** 1-based column of the concat value in the source file (from AST Concat pos). */
|
|
38
40
|
col: number;
|
|
39
41
|
};
|
|
40
|
-
type AppendPlaceholder = {
|
|
41
|
-
_kind: 'append-placeholder';
|
|
42
|
-
existing: ResolverValue;
|
|
43
|
-
elem: ResolverValue;
|
|
44
|
-
};
|
|
45
42
|
type ResObj = {
|
|
46
43
|
_kind: 'res-obj';
|
|
47
44
|
fields: Map<string, ResolverValue>;
|
|
48
45
|
priorValues: Map<string, ResolverValue>;
|
|
46
|
+
/**
|
|
47
|
+
* Keys whose net value in THIS object was established by an explicit
|
|
48
|
+
* non-self-referential assignment (`k = [...]`), i.e. a reset rather than a
|
|
49
|
+
* `+=`/self-ref append. Used by `deepMergeResObjInto` to decide whether an
|
|
50
|
+
* included file's `k` chains off the destination's pre-merge value (append
|
|
51
|
+
* origin → splice) or replaces it (reset origin → discard). See go.hocon#134.
|
|
52
|
+
*/
|
|
53
|
+
resetKeys: Set<string>;
|
|
49
54
|
};
|
|
50
|
-
type ResolverValue = HoconValue | SubstPlaceholder | ConcatPlaceholder |
|
|
55
|
+
type ResolverValue = HoconValue | SubstPlaceholder | ConcatPlaceholder | ResObj;
|
|
51
56
|
/**
|
|
52
57
|
* Custom resolver for `include package("id", "file")`.
|
|
53
58
|
*
|