oci-common
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -18,5 +18,10 @@ "use strict"; | ||
static parseDefault(profile) { | ||
const envVarConfigFile = process.env.OCI_CONFIG_FILE; | ||
// Check if file exists in the location | ||
const defaultExists = ConfigFileReader.fileExists(ConfigFileReader.DEFAULT_FILE_PATH); | ||
const fallbackExists = ConfigFileReader.fileExists(ConfigFileReader.FALLBACK_DEFAULT_FILE_PATH); | ||
let configFileFromEnvVarExists = false; | ||
if (envVarConfigFile) { | ||
configFileFromEnvVarExists = ConfigFileReader.fileExists(envVarConfigFile); | ||
} | ||
// If default file exists, assign effecive file as default file, else fallback as effective file | ||
@@ -26,2 +31,5 @@ if (defaultExists) { | ||
} | ||
else if (configFileFromEnvVarExists) { | ||
return ConfigFileReader.parseFileFromPath(envVarConfigFile, profile); | ||
} | ||
else if (fallbackExists) { | ||
@@ -28,0 +36,0 @@ return ConfigFileReader.parseFileFromPath(ConfigFileReader.FALLBACK_DEFAULT_FILE_PATH, profile); |
{ | ||
"name": "oci-common", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "OCI Common module for NodeJS", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
195922
2156
3
3