@dsmrt/axiom-config 1.2.0 → 1.2.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @dsmrt/axiom-config
2
2
 
3
+ ## 1.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - c941d5d: fix init cli command; fix loadConfigByEnv to allow undefined env
8
+
3
9
  ## 1.2.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -39,7 +39,7 @@ interface LoadConfigInput {
39
39
  cwd?: string;
40
40
  }
41
41
  declare const importConfigFromPath: (path: string) => Promise<Config>;
42
- declare const loadConfigByEnv: <T extends object>(env: string, options?: Omit<LoadConfigInput, "env">) => Promise<ConfigContainer & T>;
42
+ declare const loadConfigByEnv: <T extends object>(env?: string, options?: Omit<LoadConfigInput, "env">) => Promise<ConfigContainer & T>;
43
43
  declare const loadConfig: <T extends object>(input?: LoadConfigInput) => Promise<ConfigContainer & T>;
44
44
  /**
45
45
  * Simple object check.
package/dist/index.d.ts CHANGED
@@ -39,7 +39,7 @@ interface LoadConfigInput {
39
39
  cwd?: string;
40
40
  }
41
41
  declare const importConfigFromPath: (path: string) => Promise<Config>;
42
- declare const loadConfigByEnv: <T extends object>(env: string, options?: Omit<LoadConfigInput, "env">) => Promise<ConfigContainer & T>;
42
+ declare const loadConfigByEnv: <T extends object>(env?: string, options?: Omit<LoadConfigInput, "env">) => Promise<ConfigContainer & T>;
43
43
  declare const loadConfig: <T extends object>(input?: LoadConfigInput) => Promise<ConfigContainer & T>;
44
44
  /**
45
45
  * Simple object check.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsmrt/axiom-config",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Config library for axiom cli",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",