@karmaniverous/get-dotenv 4.2.3 → 4.2.4
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/getdotenv.cli.mjs +6 -7
- package/dist/index.cjs +4 -5
- package/dist/index.mjs +6 -7
- package/package.json +1 -1
package/dist/getdotenv.cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import require$$0 from 'events';
|
|
3
3
|
import require$$1 from 'child_process';
|
|
4
|
-
import require$$0$1 from 'path';
|
|
4
|
+
import require$$0$1, { join } from 'path';
|
|
5
5
|
import require$$0$2 from 'fs';
|
|
6
6
|
import require$$4$1 from 'process';
|
|
7
7
|
import { fileURLToPath } from 'node:url';
|
|
@@ -23,7 +23,7 @@ import require$$0$4 from 'stream';
|
|
|
23
23
|
import require$$0$5 from 'util';
|
|
24
24
|
import require$$5 from 'assert';
|
|
25
25
|
import { webcrypto } from 'node:crypto';
|
|
26
|
-
import url, {
|
|
26
|
+
import url, { fileURLToPath as fileURLToPath$1 } from 'url';
|
|
27
27
|
import fsPromises from 'node:fs/promises';
|
|
28
28
|
import require$$2 from 'os';
|
|
29
29
|
import require$$3 from 'crypto';
|
|
@@ -30905,7 +30905,7 @@ const getDotenvCliOptions2Options = ({ paths, pathsDelimiter, pathsDelimiterPatt
|
|
|
30905
30905
|
const resolveGetDotenvOptions = async (customOptions) => {
|
|
30906
30906
|
const localPkgDir = await packageDirectory();
|
|
30907
30907
|
const localOptionsPath = localPkgDir
|
|
30908
|
-
?
|
|
30908
|
+
? join(localPkgDir, getDotenvOptionsFilename)
|
|
30909
30909
|
: undefined;
|
|
30910
30910
|
const localOptions = (localOptionsPath && (await fs$a.exists(localOptionsPath))
|
|
30911
30911
|
? JSON.parse((await fs$a.readFile(localOptionsPath)).toString())
|
|
@@ -39227,7 +39227,6 @@ const execShellCommandBatch = async ({ command, globs, ignoreErrors, list, logge
|
|
|
39227
39227
|
logger.info(headerRootPath);
|
|
39228
39228
|
logger.info(headerGlobs);
|
|
39229
39229
|
logger.info(headerCommand);
|
|
39230
|
-
logger.info('');
|
|
39231
39230
|
for (const path of paths) {
|
|
39232
39231
|
// Write path and command to console.
|
|
39233
39232
|
const pathLabel = `CWD: ${path}`;
|
|
@@ -39238,7 +39237,7 @@ const execShellCommandBatch = async ({ command, globs, ignoreErrors, list, logge
|
|
|
39238
39237
|
logger.info('');
|
|
39239
39238
|
logger.info('*'.repeat(pathLabel.length));
|
|
39240
39239
|
logger.info(pathLabel);
|
|
39241
|
-
logger.info(
|
|
39240
|
+
logger.info(headerCommand);
|
|
39242
39241
|
// Execute shell command.
|
|
39243
39242
|
try {
|
|
39244
39243
|
await execaCommand(command, {
|
|
@@ -39354,14 +39353,14 @@ const resolveGetDotenvCliGenerateOptions = async ({ importMetaUrl, ...customOpti
|
|
|
39354
39353
|
})
|
|
39355
39354
|
: undefined;
|
|
39356
39355
|
const globalOptionsPath = globalPkgDir
|
|
39357
|
-
?
|
|
39356
|
+
? join(globalPkgDir, getDotenvOptionsFilename)
|
|
39358
39357
|
: undefined;
|
|
39359
39358
|
const globalOptions = (globalOptionsPath && (await fs$a.exists(globalOptionsPath))
|
|
39360
39359
|
? JSON.parse((await fs$a.readFile(globalOptionsPath)).toString())
|
|
39361
39360
|
: {});
|
|
39362
39361
|
const localPkgDir = await packageDirectory();
|
|
39363
39362
|
const localOptionsPath = localPkgDir
|
|
39364
|
-
?
|
|
39363
|
+
? join(localPkgDir, getDotenvOptionsFilename)
|
|
39365
39364
|
: undefined;
|
|
39366
39365
|
const localOptions = (localOptionsPath &&
|
|
39367
39366
|
localOptionsPath !== globalOptionsPath &&
|
package/dist/index.cjs
CHANGED
|
@@ -30906,7 +30906,7 @@ const getDotenvCliOptions2Options = ({ paths, pathsDelimiter, pathsDelimiterPatt
|
|
|
30906
30906
|
const resolveGetDotenvOptions = async (customOptions) => {
|
|
30907
30907
|
const localPkgDir = await packageDirectory();
|
|
30908
30908
|
const localOptionsPath = localPkgDir
|
|
30909
|
-
?
|
|
30909
|
+
? require$$0$1.join(localPkgDir, getDotenvOptionsFilename)
|
|
30910
30910
|
: undefined;
|
|
30911
30911
|
const localOptions = (localOptionsPath && (await fs$a.exists(localOptionsPath))
|
|
30912
30912
|
? JSON.parse((await fs$a.readFile(localOptionsPath)).toString())
|
|
@@ -39228,7 +39228,6 @@ const execShellCommandBatch = async ({ command, globs, ignoreErrors, list, logge
|
|
|
39228
39228
|
logger.info(headerRootPath);
|
|
39229
39229
|
logger.info(headerGlobs);
|
|
39230
39230
|
logger.info(headerCommand);
|
|
39231
|
-
logger.info('');
|
|
39232
39231
|
for (const path of paths) {
|
|
39233
39232
|
// Write path and command to console.
|
|
39234
39233
|
const pathLabel = `CWD: ${path}`;
|
|
@@ -39239,7 +39238,7 @@ const execShellCommandBatch = async ({ command, globs, ignoreErrors, list, logge
|
|
|
39239
39238
|
logger.info('');
|
|
39240
39239
|
logger.info('*'.repeat(pathLabel.length));
|
|
39241
39240
|
logger.info(pathLabel);
|
|
39242
|
-
logger.info(
|
|
39241
|
+
logger.info(headerCommand);
|
|
39243
39242
|
// Execute shell command.
|
|
39244
39243
|
try {
|
|
39245
39244
|
await execaCommand(command, {
|
|
@@ -39355,14 +39354,14 @@ const resolveGetDotenvCliGenerateOptions = async ({ importMetaUrl, ...customOpti
|
|
|
39355
39354
|
})
|
|
39356
39355
|
: undefined;
|
|
39357
39356
|
const globalOptionsPath = globalPkgDir
|
|
39358
|
-
?
|
|
39357
|
+
? require$$0$1.join(globalPkgDir, getDotenvOptionsFilename)
|
|
39359
39358
|
: undefined;
|
|
39360
39359
|
const globalOptions = (globalOptionsPath && (await fs$a.exists(globalOptionsPath))
|
|
39361
39360
|
? JSON.parse((await fs$a.readFile(globalOptionsPath)).toString())
|
|
39362
39361
|
: {});
|
|
39363
39362
|
const localPkgDir = await packageDirectory();
|
|
39364
39363
|
const localOptionsPath = localPkgDir
|
|
39365
|
-
?
|
|
39364
|
+
? require$$0$1.join(localPkgDir, getDotenvOptionsFilename)
|
|
39366
39365
|
: undefined;
|
|
39367
39366
|
const localOptions = (localOptionsPath &&
|
|
39368
39367
|
localOptionsPath !== globalOptionsPath &&
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import require$$0 from 'events';
|
|
2
2
|
import require$$1 from 'child_process';
|
|
3
|
-
import require$$0$1 from 'path';
|
|
3
|
+
import require$$0$1, { join } from 'path';
|
|
4
4
|
import require$$0$2 from 'fs';
|
|
5
5
|
import require$$4$1 from 'process';
|
|
6
6
|
import { fileURLToPath } from 'node:url';
|
|
@@ -22,7 +22,7 @@ import require$$0$4 from 'stream';
|
|
|
22
22
|
import require$$0$5 from 'util';
|
|
23
23
|
import require$$5 from 'assert';
|
|
24
24
|
import { webcrypto } from 'node:crypto';
|
|
25
|
-
import url, {
|
|
25
|
+
import url, { fileURLToPath as fileURLToPath$1 } from 'url';
|
|
26
26
|
import fsPromises from 'node:fs/promises';
|
|
27
27
|
import require$$2 from 'os';
|
|
28
28
|
import require$$3 from 'crypto';
|
|
@@ -30904,7 +30904,7 @@ const getDotenvCliOptions2Options = ({ paths, pathsDelimiter, pathsDelimiterPatt
|
|
|
30904
30904
|
const resolveGetDotenvOptions = async (customOptions) => {
|
|
30905
30905
|
const localPkgDir = await packageDirectory();
|
|
30906
30906
|
const localOptionsPath = localPkgDir
|
|
30907
|
-
?
|
|
30907
|
+
? join(localPkgDir, getDotenvOptionsFilename)
|
|
30908
30908
|
: undefined;
|
|
30909
30909
|
const localOptions = (localOptionsPath && (await fs$a.exists(localOptionsPath))
|
|
30910
30910
|
? JSON.parse((await fs$a.readFile(localOptionsPath)).toString())
|
|
@@ -39226,7 +39226,6 @@ const execShellCommandBatch = async ({ command, globs, ignoreErrors, list, logge
|
|
|
39226
39226
|
logger.info(headerRootPath);
|
|
39227
39227
|
logger.info(headerGlobs);
|
|
39228
39228
|
logger.info(headerCommand);
|
|
39229
|
-
logger.info('');
|
|
39230
39229
|
for (const path of paths) {
|
|
39231
39230
|
// Write path and command to console.
|
|
39232
39231
|
const pathLabel = `CWD: ${path}`;
|
|
@@ -39237,7 +39236,7 @@ const execShellCommandBatch = async ({ command, globs, ignoreErrors, list, logge
|
|
|
39237
39236
|
logger.info('');
|
|
39238
39237
|
logger.info('*'.repeat(pathLabel.length));
|
|
39239
39238
|
logger.info(pathLabel);
|
|
39240
|
-
logger.info(
|
|
39239
|
+
logger.info(headerCommand);
|
|
39241
39240
|
// Execute shell command.
|
|
39242
39241
|
try {
|
|
39243
39242
|
await execaCommand(command, {
|
|
@@ -39353,14 +39352,14 @@ const resolveGetDotenvCliGenerateOptions = async ({ importMetaUrl, ...customOpti
|
|
|
39353
39352
|
})
|
|
39354
39353
|
: undefined;
|
|
39355
39354
|
const globalOptionsPath = globalPkgDir
|
|
39356
|
-
?
|
|
39355
|
+
? join(globalPkgDir, getDotenvOptionsFilename)
|
|
39357
39356
|
: undefined;
|
|
39358
39357
|
const globalOptions = (globalOptionsPath && (await fs$a.exists(globalOptionsPath))
|
|
39359
39358
|
? JSON.parse((await fs$a.readFile(globalOptionsPath)).toString())
|
|
39360
39359
|
: {});
|
|
39361
39360
|
const localPkgDir = await packageDirectory();
|
|
39362
39361
|
const localOptionsPath = localPkgDir
|
|
39363
|
-
?
|
|
39362
|
+
? join(localPkgDir, getDotenvOptionsFilename)
|
|
39364
39363
|
: undefined;
|
|
39365
39364
|
const localOptions = (localOptionsPath &&
|
|
39366
39365
|
localOptionsPath !== globalOptionsPath &&
|
package/package.json
CHANGED