@karmaniverous/get-dotenv 3.1.8 → 3.1.10

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,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  // lib imports
4
4
  import { getDotenvCli } from '../../lib/getDotenvCli.js';
@@ -174,13 +174,13 @@ const getDotenvCli = function () {
174
174
  ...getdotenvOptions,
175
175
  logger
176
176
  };
177
- thisCommand.dotenv = await (0, _getDotenv.getDotenv)(thisCommand.getdotenvOptions);
178
- if (cliOptions.debug) console.log('\n*** resulting dotenv values ***\n', {
179
- dotenv: thisCommand.dotenv
177
+ const dotenv = await (0, _getDotenv.getDotenv)(thisCommand.getdotenvOptions);
178
+ if (cliOptions.debug) logger.log('\n*** resulting dotenv values ***\n', {
179
+ dotenv
180
180
  });
181
181
 
182
182
  // Execute post-hook.
183
- if (postHook) await postHook(thisCommand.dotenv);
183
+ if (postHook) await postHook(dotenv);
184
184
 
185
185
  // Execute shell command.
186
186
  if (command) await (0, _execa.execaCommand)(command.replace(/ /g, '\\ '), {
@@ -444,15 +444,14 @@ export const getDotenvCli = ({
444
444
  ...getdotenvOptions,
445
445
  logger,
446
446
  };
447
- thisCommand.dotenv = await getDotenv(thisCommand.getdotenvOptions);
447
+
448
+ const dotenv = await getDotenv(thisCommand.getdotenvOptions);
448
449
 
449
450
  if (cliOptions.debug)
450
- console.log('\n*** resulting dotenv values ***\n', {
451
- dotenv: thisCommand.dotenv,
452
- });
451
+ logger.log('\n*** resulting dotenv values ***\n', { dotenv });
453
452
 
454
453
  // Execute post-hook.
455
- if (postHook) await postHook(thisCommand.dotenv);
454
+ if (postHook) await postHook(dotenv);
456
455
 
457
456
  // Execute shell command.
458
457
  if (command)
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "bin": {
4
4
  "getdotenv": "bin/getdotenv/index.js"
5
5
  },
6
- "version": "3.1.8",
6
+ "version": "3.1.10",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },