@expofp/config 3.42.1 → 3.43.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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/config-store.d.ts +2 -0
- package/dist/lib/config-store.js +4 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { applyIntents } from './lib/apply-intents.js';
|
|
2
|
-
export { getConfig, setConfig } from './lib/config-store.js';
|
|
2
|
+
export { getConfig, peekConfig, setConfig } from './lib/config-store.js';
|
|
3
3
|
export { type DebugSettingDescriptor, toDebugSettings } from './lib/debug-settings.js';
|
|
4
4
|
export { parseDeprecatedUrlParams } from './lib/deprecated-url-params.js';
|
|
5
5
|
export { type LegacyOneShot, type LegacyPrimary, type LegacyUrlQuery, parseLegacyQuery, serializeSelection, splitPlatformParams, type UrlSelection, } from './lib/legacy-url.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { applyIntents } from './lib/apply-intents.js';
|
|
2
|
-
export { getConfig, setConfig } from './lib/config-store.js';
|
|
2
|
+
export { getConfig, peekConfig, setConfig } from './lib/config-store.js';
|
|
3
3
|
export { toDebugSettings } from './lib/debug-settings.js';
|
|
4
4
|
// TEMPORARY, with the shim itself — the floor plan needs it for the runtime
|
|
5
5
|
// `applyParameters` path, which parses the query a second time
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type Config } from '@expofp/schema';
|
|
2
2
|
/** Install the active config (called once `loadConfig` has produced it). */
|
|
3
3
|
export declare function setConfig(newConfig: Config): void;
|
|
4
|
+
/** The active config, or `undefined` before {@link setConfig} has run. */
|
|
5
|
+
export declare function peekConfig(): Config | undefined;
|
|
4
6
|
/** The active config. Throws if called before {@link setConfig}. */
|
|
5
7
|
export declare function getConfig(): Config;
|
|
6
8
|
//# sourceMappingURL=config-store.d.ts.map
|
package/dist/lib/config-store.js
CHANGED
|
@@ -3,6 +3,10 @@ let config;
|
|
|
3
3
|
export function setConfig(newConfig) {
|
|
4
4
|
config = newConfig;
|
|
5
5
|
}
|
|
6
|
+
/** The active config, or `undefined` before {@link setConfig} has run. */
|
|
7
|
+
export function peekConfig() {
|
|
8
|
+
return config;
|
|
9
|
+
}
|
|
6
10
|
/** The active config. Throws if called before {@link setConfig}. */
|
|
7
11
|
export function getConfig() {
|
|
8
12
|
if (!config) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.43.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ExpoFP SDK internal: config layer and schemas",
|
|
6
6
|
"homepage": "https://developer.expofp.com/",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"debug": "^4.4.3",
|
|
30
30
|
"tslib": "^2.3.0",
|
|
31
31
|
"zod": "4.4.3",
|
|
32
|
-
"@expofp/resolve": "3.
|
|
33
|
-
"@expofp/schema": "3.
|
|
34
|
-
"@expofp/utils": "3.
|
|
32
|
+
"@expofp/resolve": "3.43.1",
|
|
33
|
+
"@expofp/schema": "3.43.1",
|
|
34
|
+
"@expofp/utils": "3.43.1"
|
|
35
35
|
}
|
|
36
36
|
}
|