@karmaniverous/get-dotenv 4.0.0-2 → 4.0.0-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/dist/index.d.cts CHANGED
@@ -4,6 +4,14 @@ import { Command } from '@commander-js/extra-typings';
4
4
  * Options passed programmatically to `getDotenvCli`.
5
5
  */
6
6
  interface GetDotenvCliOptions extends Omit<GetDotenvOptions, 'paths' | 'vars'> {
7
+ /**
8
+ * Cli alias. Should align with the `bin` property in `package.json`.
9
+ */
10
+ alias?: string;
11
+ /**
12
+ * Cli description (appears in CLI help).
13
+ */
14
+ description?: string;
7
15
  /**
8
16
  * Logs CLI internals when true.
9
17
  */
@@ -180,13 +188,9 @@ type GetDotenvCliPostHookCallback = (dotenv: ProcessEnv) => Promise<void>;
180
188
  */
181
189
  interface GetDotenvCliGenerateOptions extends Omit<GetDotenvCliOptions, 'env'> {
182
190
  /**
183
- * Cli alias. Should align with the `bin` property in `package.json`.
191
+ * Logger object (defaults to console)
184
192
  */
185
- alias?: string;
186
- /**
187
- * Cli description (appears in CLI help).
188
- */
189
- description?: string;
193
+ logger?: Logger;
190
194
  /**
191
195
  * Mutates inbound options & executes side effects within the `getDotenv`
192
196
  * context before executing CLI commands.
package/dist/index.d.mts CHANGED
@@ -4,6 +4,14 @@ import { Command } from '@commander-js/extra-typings';
4
4
  * Options passed programmatically to `getDotenvCli`.
5
5
  */
6
6
  interface GetDotenvCliOptions extends Omit<GetDotenvOptions, 'paths' | 'vars'> {
7
+ /**
8
+ * Cli alias. Should align with the `bin` property in `package.json`.
9
+ */
10
+ alias?: string;
11
+ /**
12
+ * Cli description (appears in CLI help).
13
+ */
14
+ description?: string;
7
15
  /**
8
16
  * Logs CLI internals when true.
9
17
  */
@@ -180,13 +188,9 @@ type GetDotenvCliPostHookCallback = (dotenv: ProcessEnv) => Promise<void>;
180
188
  */
181
189
  interface GetDotenvCliGenerateOptions extends Omit<GetDotenvCliOptions, 'env'> {
182
190
  /**
183
- * Cli alias. Should align with the `bin` property in `package.json`.
191
+ * Logger object (defaults to console)
184
192
  */
185
- alias?: string;
186
- /**
187
- * Cli description (appears in CLI help).
188
- */
189
- description?: string;
193
+ logger?: Logger;
190
194
  /**
191
195
  * Mutates inbound options & executes side effects within the `getDotenv`
192
196
  * context before executing CLI commands.
package/dist/index.d.ts CHANGED
@@ -4,6 +4,14 @@ import { Command } from '@commander-js/extra-typings';
4
4
  * Options passed programmatically to `getDotenvCli`.
5
5
  */
6
6
  interface GetDotenvCliOptions extends Omit<GetDotenvOptions, 'paths' | 'vars'> {
7
+ /**
8
+ * Cli alias. Should align with the `bin` property in `package.json`.
9
+ */
10
+ alias?: string;
11
+ /**
12
+ * Cli description (appears in CLI help).
13
+ */
14
+ description?: string;
7
15
  /**
8
16
  * Logs CLI internals when true.
9
17
  */
@@ -180,13 +188,9 @@ type GetDotenvCliPostHookCallback = (dotenv: ProcessEnv) => Promise<void>;
180
188
  */
181
189
  interface GetDotenvCliGenerateOptions extends Omit<GetDotenvCliOptions, 'env'> {
182
190
  /**
183
- * Cli alias. Should align with the `bin` property in `package.json`.
191
+ * Logger object (defaults to console)
184
192
  */
185
- alias?: string;
186
- /**
187
- * Cli description (appears in CLI help).
188
- */
189
- description?: string;
193
+ logger?: Logger;
190
194
  /**
191
195
  * Mutates inbound options & executes side effects within the `getDotenv`
192
196
  * context before executing CLI commands.
package/package.json CHANGED
@@ -130,5 +130,5 @@
130
130
  },
131
131
  "type": "module",
132
132
  "types": "dist/index.d.ts",
133
- "version": "4.0.0-2"
133
+ "version": "4.0.0-3"
134
134
  }