@rxap/config 19.0.4-dev.0 → 19.0.4-dev.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/CHANGELOG.md +6 -0
- package/compodoc/changelog.html +5 -0
- package/compodoc/dependencies.html +2 -2
- package/compodoc/injectables/ConfigService.html +18 -19
- package/compodoc/interfaces/ConfigLoadOptions.html +2 -3
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +128 -128
- package/docs/html/classes/ConfigLoaderService.html +2 -2
- package/docs/html/classes/ConfigService.html +6 -6
- package/docs/html/classes/ConfigTestingService.html +2 -2
- package/docs/html/functions/ProvideConfig.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/AppsNavigationConfig.html +2 -2
- package/docs/html/interfaces/Config.html +2 -2
- package/docs/html/interfaces/ConfigLoadOptions.html +3 -3
- package/docs/html/interfaces/LogoConfig.html +2 -2
- package/docs/html/interfaces/NavigationConfig.html +2 -2
- package/docs/html/interfaces/Oauth2Config.html +2 -2
- package/docs/html/interfaces/i18nConfig.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/types/AnySchema.html +1 -1
- package/docs/html/types/Join.html +1 -1
- package/docs/html/types/LanguagesConfig.html +1 -1
- package/docs/html/types/Leaves.html +1 -1
- package/docs/html/types/NoInferType.html +1 -1
- package/docs/html/types/Paths.html +1 -1
- package/docs/html/variables/RXAP_CONFIG.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/ConfigLoaderService.md +7 -7
- package/docs/markdown/classes/ConfigService.md +22 -22
- package/docs/markdown/classes/ConfigTestingService.md +8 -8
- package/docs/markdown/functions/ProvideConfig.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/AppsNavigationConfig.md +12 -12
- package/docs/markdown/interfaces/Config.md +6 -6
- package/docs/markdown/interfaces/ConfigLoadOptions.md +7 -7
- package/docs/markdown/interfaces/LogoConfig.md +5 -5
- package/docs/markdown/interfaces/NavigationConfig.md +8 -8
- package/docs/markdown/interfaces/Oauth2Config.md +3 -3
- package/docs/markdown/interfaces/i18nConfig.md +4 -4
- package/docs/markdown/type-aliases/AnySchema.md +2 -2
- package/docs/markdown/type-aliases/Join.md +2 -2
- package/docs/markdown/type-aliases/LanguagesConfig.md +2 -2
- package/docs/markdown/type-aliases/Leaves.md +2 -2
- package/docs/markdown/type-aliases/NoInferType.md +2 -2
- package/docs/markdown/type-aliases/Paths.md +2 -2
- package/docs/markdown/variables/RXAP_CONFIG.md +2 -2
- package/docs/wiki/Class.ConfigLoaderService.md +6 -6
- package/docs/wiki/Class.ConfigService.md +21 -21
- package/docs/wiki/Class.ConfigTestingService.md +7 -7
- package/docs/wiki/Function.ProvideConfig.md +1 -1
- package/docs/wiki/Interface.AppsNavigationConfig.md +11 -11
- package/docs/wiki/Interface.Config.md +5 -5
- package/docs/wiki/Interface.ConfigLoadOptions.md +6 -6
- package/docs/wiki/Interface.LogoConfig.md +4 -4
- package/docs/wiki/Interface.NavigationConfig.md +7 -7
- package/docs/wiki/Interface.Oauth2Config.md +2 -2
- package/docs/wiki/Interface.i18nConfig.md +3 -3
- package/docs/wiki/TypeAlias.AnySchema.md +1 -1
- package/docs/wiki/TypeAlias.Join.md +1 -1
- package/docs/wiki/TypeAlias.LanguagesConfig.md +1 -1
- package/docs/wiki/TypeAlias.Leaves.md +1 -1
- package/docs/wiki/TypeAlias.NoInferType.md +1 -1
- package/docs/wiki/TypeAlias.Paths.md +1 -1
- package/docs/wiki/Variable.RXAP_CONFIG.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-config.mjs +1 -2
- package/fesm2022/rxap-config.mjs.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [19.0.4-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/config@19.0.4-dev.0...@rxap/config@19.0.4-dev.1) (2025-05-06)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **config.service:** improve path handling and property access validation ([645c46c](https://gitlab.com/rxap/packages/commit/645c46ca609bb731e9abdfd1a0e7e35132b4d127))
|
|
11
|
+
|
|
6
12
|
## [19.0.4-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/config@19.0.3...@rxap/config@19.0.4-dev.0) (2025-03-12)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @rxap/config
|
package/compodoc/changelog.html
CHANGED
|
@@ -85,6 +85,11 @@
|
|
|
85
85
|
<h1>Change Log</h1>
|
|
86
86
|
<p>All notable changes to this project will be documented in this file.
|
|
87
87
|
See <a href="https://conventionalcommits.org">Conventional Commits</a> for commit guidelines.</p>
|
|
88
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/config@19.0.4-dev.0...@rxap/config@19.0.4-dev.1">19.0.4-dev.1</a> (2025-05-06)</h2>
|
|
89
|
+
<h3>Bug Fixes</h3>
|
|
90
|
+
<ul>
|
|
91
|
+
<li><strong>config.service:</strong> improve path handling and property access validation (<a href="https://gitlab.com/rxap/packages/commit/645c46ca609bb731e9abdfd1a0e7e35132b4d127">645c46c</a>)</li>
|
|
92
|
+
</ul>
|
|
88
93
|
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/config@19.0.3...@rxap/config@19.0.4-dev.0">19.0.4-dev.0</a> (2025-03-12)</h2>
|
|
89
94
|
<p><strong>Note:</strong> Version bump only for package @rxap/config</p>
|
|
90
95
|
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/config@19.0.3-dev.0...@rxap/config@19.0.3">19.0.3</a> (2025-03-07)</h2>
|
|
@@ -117,9 +117,9 @@
|
|
|
117
117
|
<li>
|
|
118
118
|
<b>@angular/core</b> : ^19.2.1</li>
|
|
119
119
|
<li>
|
|
120
|
-
<b>@rxap/environment</b> : ^19.0.
|
|
120
|
+
<b>@rxap/environment</b> : ^19.0.4-dev.0</li>
|
|
121
121
|
<li>
|
|
122
|
-
<b>@rxap/utilities</b> : ^16.4.
|
|
122
|
+
<b>@rxap/utilities</b> : ^16.4.4-dev.0</li>
|
|
123
123
|
<li>
|
|
124
124
|
<b>rxjs</b> : ^7.8.1</li>
|
|
125
125
|
</ul>
|
|
@@ -325,8 +325,8 @@
|
|
|
325
325
|
|
|
326
326
|
<tr>
|
|
327
327
|
<td class="col-md-4">
|
|
328
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
329
|
-
class="link-to-prism">src/lib/config.service.ts:
|
|
328
|
+
<div class="io-line">Defined in <a href="" data-line="345"
|
|
329
|
+
class="link-to-prism">src/lib/config.service.ts:345</a></div>
|
|
330
330
|
</td>
|
|
331
331
|
</tr>
|
|
332
332
|
|
|
@@ -364,8 +364,8 @@
|
|
|
364
364
|
|
|
365
365
|
<tr>
|
|
366
366
|
<td class="col-md-4">
|
|
367
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
368
|
-
class="link-to-prism">src/lib/config.service.ts:
|
|
367
|
+
<div class="io-line">Defined in <a href="" data-line="349"
|
|
368
|
+
class="link-to-prism">src/lib/config.service.ts:349</a></div>
|
|
369
369
|
</td>
|
|
370
370
|
</tr>
|
|
371
371
|
|
|
@@ -441,8 +441,8 @@
|
|
|
441
441
|
|
|
442
442
|
<tr>
|
|
443
443
|
<td class="col-md-4">
|
|
444
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
445
|
-
class="link-to-prism">src/lib/config.service.ts:
|
|
444
|
+
<div class="io-line">Defined in <a href="" data-line="350"
|
|
445
|
+
class="link-to-prism">src/lib/config.service.ts:350</a></div>
|
|
446
446
|
</td>
|
|
447
447
|
</tr>
|
|
448
448
|
|
|
@@ -530,8 +530,8 @@
|
|
|
530
530
|
|
|
531
531
|
<tr>
|
|
532
532
|
<td class="col-md-4">
|
|
533
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
534
|
-
class="link-to-prism">src/lib/config.service.ts:
|
|
533
|
+
<div class="io-line">Defined in <a href="" data-line="351"
|
|
534
|
+
class="link-to-prism">src/lib/config.service.ts:351</a></div>
|
|
535
535
|
</td>
|
|
536
536
|
</tr>
|
|
537
537
|
|
|
@@ -831,8 +831,8 @@
|
|
|
831
831
|
|
|
832
832
|
<tr>
|
|
833
833
|
<td class="col-md-4">
|
|
834
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
835
|
-
class="link-to-prism">src/lib/config.service.ts:
|
|
834
|
+
<div class="io-line">Defined in <a href="" data-line="355"
|
|
835
|
+
class="link-to-prism">src/lib/config.service.ts:355</a></div>
|
|
836
836
|
</td>
|
|
837
837
|
</tr>
|
|
838
838
|
|
|
@@ -908,8 +908,8 @@
|
|
|
908
908
|
|
|
909
909
|
<tr>
|
|
910
910
|
<td class="col-md-4">
|
|
911
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
912
|
-
class="link-to-prism">src/lib/config.service.ts:
|
|
911
|
+
<div class="io-line">Defined in <a href="" data-line="356"
|
|
912
|
+
class="link-to-prism">src/lib/config.service.ts:356</a></div>
|
|
913
913
|
</td>
|
|
914
914
|
</tr>
|
|
915
915
|
|
|
@@ -997,8 +997,8 @@
|
|
|
997
997
|
|
|
998
998
|
<tr>
|
|
999
999
|
<td class="col-md-4">
|
|
1000
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1001
|
-
class="link-to-prism">src/lib/config.service.ts:
|
|
1000
|
+
<div class="io-line">Defined in <a href="" data-line="357"
|
|
1001
|
+
class="link-to-prism">src/lib/config.service.ts:357</a></div>
|
|
1002
1002
|
</td>
|
|
1003
1003
|
</tr>
|
|
1004
1004
|
|
|
@@ -1173,8 +1173,8 @@
|
|
|
1173
1173
|
|
|
1174
1174
|
<tr>
|
|
1175
1175
|
<td class="col-md-4">
|
|
1176
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1177
|
-
class="link-to-prism">src/lib/config.service.ts:
|
|
1176
|
+
<div class="io-line">Defined in <a href="" data-line="341"
|
|
1177
|
+
class="link-to-prism">src/lib/config.service.ts:341</a></div>
|
|
1178
1178
|
</td>
|
|
1179
1179
|
</tr>
|
|
1180
1180
|
|
|
@@ -1962,9 +1962,8 @@ export class ConfigService<Config extends Record<string, any> = Re
|
|
|
1962
1962
|
if (typeof path !== 'string') {
|
|
1963
1963
|
throw new Error('The config property path is not a string');
|
|
1964
1964
|
}
|
|
1965
|
-
for (const fragment of
|
|
1966
|
-
|
|
1967
|
-
if (configValue.hasOwnProperty(fragment)) {
|
|
1965
|
+
for (const fragment of path.split('.')) {
|
|
1966
|
+
if (configValue && typeof configValue === 'object' && fragment in configValue) {
|
|
1968
1967
|
configValue = configValue[fragment];
|
|
1969
1968
|
} else {
|
|
1970
1969
|
if (defaultValue !== undefined) {
|
|
@@ -687,9 +687,8 @@ export class ConfigService<Config extends Record<string, any> = Re
|
|
|
687
687
|
if (typeof path !== 'string') {
|
|
688
688
|
throw new Error('The config property path is not a string');
|
|
689
689
|
}
|
|
690
|
-
for (const fragment of
|
|
691
|
-
|
|
692
|
-
if (configValue.hasOwnProperty(fragment)) {
|
|
690
|
+
for (const fragment of path.split('.')) {
|
|
691
|
+
if (configValue && typeof configValue === 'object' && fragment in configValue) {
|
|
693
692
|
configValue = configValue[fragment];
|
|
694
693
|
} else {
|
|
695
694
|
if (defaultValue !== undefined) {
|