dataunlocker
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -16,3 +16,3 @@ import { getEnv, getRelativeFileToCwd, isFileExists } from '../../lib/utils/index.js'; | ||
const id = args.id || getEnv('DATAUNLOCKER_ID'); | ||
const env = getEnv('DATAUNLOCKER_ENV').toLowerCase(); | ||
const env = getEnv('DATAUNLOCKER_ENV')?.toLowerCase() || ''; | ||
if (!file.endsWith('.js')) { | ||
@@ -19,0 +19,0 @@ return warnAndExit(`Only .js files are supported. Provided file not supported: ${file}`); |
@@ -1,1 +0,1 @@ | ||
export declare const getEnv: (name: string) => string; | ||
export declare const getEnv: (name: string) => string | undefined; |
@@ -1,1 +0,1 @@ | ||
export const getEnv = (name) => process.env[name] || process.env[`npm_config_${name.toLowerCase()}`] || ''; | ||
export const getEnv = (name) => process.env[name] || process.env[`npm_config_${name.toLowerCase()}`]; |
{ | ||
"name": "dataunlocker", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "DataUnlocker's command line interface utilities", | ||
@@ -5,0 +5,0 @@ "type": "module", |
9529