@rxap/config 19.2.0-dev.2 → 19.2.0-dev.3
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 +1 -1
- package/compodoc/injectables/ConfigService.html +142 -68
- package/compodoc/interfaces/ConfigLoadOptions.html +197 -33
- package/compodoc/js/menu-wc.js +3 -0
- package/compodoc/js/menu-wc_es5.js +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/enumerations.html +231 -0
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +780 -644
- package/docs/html/assets/hierarchy.js +1 -1
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- 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/enums/ConfigLoadingStrategy.html +3 -0
- package/docs/html/functions/ProvideConfig.html +1 -1
- package/docs/html/functions/dnsLookup.html +1 -1
- package/docs/html/functions/dnsResolver.html +1 -1
- package/docs/html/functions/fetchCidContent.html +1 -1
- package/docs/html/functions/fetchCidContentAsJson.html +1 -1
- package/docs/html/functions/fetchCidContentViaHttp.html +1 -1
- package/docs/html/functions/fetchContentViaHttp.html +1 -1
- package/docs/html/functions/raceSuccess.html +2 -2
- 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 +7 -5
- 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/enumerations/ConfigLoadingStrategy.md +25 -0
- package/docs/markdown/functions/ProvideConfig.md +2 -2
- package/docs/markdown/functions/dnsLookup.md +2 -2
- package/docs/markdown/functions/dnsResolver.md +2 -2
- package/docs/markdown/functions/fetchCidContent.md +2 -2
- package/docs/markdown/functions/fetchCidContentAsJson.md +2 -2
- package/docs/markdown/functions/fetchCidContentViaHttp.md +2 -2
- package/docs/markdown/functions/fetchContentViaHttp.md +2 -2
- package/docs/markdown/functions/raceSuccess.md +2 -2
- package/docs/markdown/globals.md +6 -2
- package/docs/markdown/interfaces/AppsNavigationConfig.md +12 -12
- package/docs/markdown/interfaces/Config.md +6 -6
- package/docs/markdown/interfaces/ConfigLoadOptions.md +27 -11
- package/docs/markdown/interfaces/LogoConfig.md +5 -5
- package/docs/markdown/interfaces/NavigationConfig.md +9 -9
- 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/Enumeration.ConfigLoadingStrategy.md +21 -0
- package/docs/wiki/Function.ProvideConfig.md +1 -1
- package/docs/wiki/Function.dnsLookup.md +1 -1
- package/docs/wiki/Function.dnsResolver.md +1 -1
- package/docs/wiki/Function.fetchCidContent.md +1 -1
- package/docs/wiki/Function.fetchCidContentAsJson.md +1 -1
- package/docs/wiki/Function.fetchCidContentViaHttp.md +1 -1
- package/docs/wiki/Function.fetchContentViaHttp.md +1 -1
- package/docs/wiki/Function.raceSuccess.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 +26 -10
- package/docs/wiki/Interface.LogoConfig.md +4 -4
- package/docs/wiki/Interface.NavigationConfig.md +8 -8
- 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/_Sidebar.md +4 -0
- package/docs/wiki/globals.md +5 -1
- package/fesm2022/rxap-config.mjs +111 -34
- package/fesm2022/rxap-config.mjs.map +1 -1
- package/lib/config.service.d.ts +9 -0
- package/package.json +6 -6
package/lib/config.service.d.ts
CHANGED
|
@@ -5,8 +5,13 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export type AnySchema = {
|
|
6
6
|
validateAsync: (...args: any[]) => any;
|
|
7
7
|
};
|
|
8
|
+
export declare enum ConfigLoadingStrategy {
|
|
9
|
+
DEFAULT = "default",
|
|
10
|
+
FIFO = "fifo"
|
|
11
|
+
}
|
|
8
12
|
export interface ConfigLoadOptions {
|
|
9
13
|
fromUrlParam?: string | boolean;
|
|
14
|
+
fromUrls?: boolean;
|
|
10
15
|
fromLocalStorage?: boolean;
|
|
11
16
|
schema?: AnySchema;
|
|
12
17
|
url?: string | string[] | ((environment: Environment) => string | string[]);
|
|
@@ -26,6 +31,7 @@ export interface ConfigLoadOptions {
|
|
|
26
31
|
fromCid?: string;
|
|
27
32
|
fetchCidContent?: (cid: string, path?: string) => Promise<Blob | null>;
|
|
28
33
|
dnsServers?: string[];
|
|
34
|
+
strategy?: ConfigLoadingStrategy;
|
|
29
35
|
}
|
|
30
36
|
export declare class ConfigService<Config extends Record<string, any> = Record<string, any>> {
|
|
31
37
|
static onError: ReplaySubject<unknown>;
|
|
@@ -60,6 +66,9 @@ export declare class ConfigService<Config extends Record<string, any> = Record<s
|
|
|
60
66
|
*
|
|
61
67
|
*/
|
|
62
68
|
static Load(options?: ConfigLoadOptions, environment?: Environment): Promise<void>;
|
|
69
|
+
private static loadConfigFromUrlParam;
|
|
70
|
+
private static loadConfigFromLocalStorage;
|
|
71
|
+
private static loadConfigFromUrls;
|
|
63
72
|
private static loadConfigFromCid;
|
|
64
73
|
private static loadConfigFromDns;
|
|
65
74
|
private static handleError;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "19.2.0-dev.
|
|
2
|
+
"version": "19.2.0-dev.3",
|
|
3
3
|
"name": "@rxap/config",
|
|
4
4
|
"description": "Provides a configuration service for Angular applications, allowing you to load and manage application settings from various sources such as static files, URLs, local storage, and URL parameters. It supports schema validation and provides utilities for accessing configuration values. This package also includes testing utilities for mocking and managing configurations in test environments.\n",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@angular/common": "^19.2.1",
|
|
12
12
|
"@angular/core": "^19.2.1",
|
|
13
13
|
"@rxap/environment": "^19.0.4",
|
|
14
|
-
"@rxap/utilities": "^16.5.0-dev.
|
|
14
|
+
"@rxap/utilities": "^16.5.0-dev.1",
|
|
15
15
|
"rxjs": "^7.8.1"
|
|
16
16
|
},
|
|
17
17
|
"author": {
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"packageGroup": [
|
|
38
38
|
{
|
|
39
39
|
"package": "@angular/common",
|
|
40
|
-
"version": "19.2.
|
|
40
|
+
"version": "19.2.16"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"package": "@angular/core",
|
|
44
|
-
"version": "19.2.
|
|
44
|
+
"version": "19.2.16"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"package": "@rxap/environment",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"package": "@rxap/utilities",
|
|
52
|
-
"version": "16.5.0-dev.
|
|
52
|
+
"version": "16.5.0-dev.1"
|
|
53
53
|
}
|
|
54
54
|
]
|
|
55
55
|
},
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"schematics": "./generators.json",
|
|
66
66
|
"sideEffects": false,
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "5ad37909a73f9e3eaab7208cdf5b0e12eb759c7e",
|
|
68
68
|
"module": "fesm2022/rxap-config.mjs",
|
|
69
69
|
"typings": "index.d.ts",
|
|
70
70
|
"exports": {
|