silgi 0.37.35 → 0.37.37

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.37.35";
4
+ const version = "0.37.37";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -1,7 +1,7 @@
1
1
  import type { EnvOptions, SilgiEvent, SilgiRuntimeConfig } from 'silgi/types';
2
2
  export declare function updateEnvOptions(runtime: SilgiRuntimeConfig): EnvOptions;
3
3
  export declare function sharedRuntimeConfig(runtime: SilgiRuntimeConfig, force?: boolean): SilgiRuntimeConfig;
4
- export declare function useSilgiRuntimeConfig<T extends SilgiRuntimeConfig>(event?: SilgiEvent, localRuntimeConfig?: SilgiRuntimeConfig): SilgiRuntimeConfig;
4
+ export declare function useSilgiRuntimeConfig<T extends SilgiRuntimeConfig>(event?: SilgiEvent, localRuntimeConfig?: SilgiRuntimeConfig, force?: boolean): SilgiRuntimeConfig;
5
5
  export declare function initRuntimeConfig(envOptions?: EnvOptions, inlineRuntimeConfig?: Record<string, any>): Readonly<Record<string, any>>;
6
6
  export declare function updateRuntimeConfig(runtimeConfig: Record<string, unknown>): void;
7
7
  export declare function applyEnv(obj: Record<string, any>, opts: EnvOptions, parentKey?: string): Record<string, any>;
@@ -14,7 +14,6 @@ export function updateEnvOptions(runtime) {
14
14
  }
15
15
  let inlineRuntimeConfig;
16
16
  export function sharedRuntimeConfig(runtime, force) {
17
- updateRuntimeStorage(inlineRuntimeConfig);
18
17
  if (inlineRuntimeConfig && !force) {
19
18
  return inlineRuntimeConfig;
20
19
  }
@@ -24,9 +23,9 @@ export function sharedRuntimeConfig(runtime, force) {
24
23
  updateRuntimeStorage(inlineRuntimeConfig);
25
24
  return inlineRuntimeConfig;
26
25
  }
27
- export function useSilgiRuntimeConfig(event, localRuntimeConfig) {
26
+ export function useSilgiRuntimeConfig(event, localRuntimeConfig, force) {
28
27
  if (localRuntimeConfig) {
29
- return sharedRuntimeConfig(localRuntimeConfig);
28
+ return sharedRuntimeConfig(localRuntimeConfig, force);
30
29
  }
31
30
  const runtime = useRuntime();
32
31
  if (!event) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.37.35",
4
+ "version": "0.37.37",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {