Socket
Socket
Sign inDemoInstall

oci-common

Package Overview
Dependencies
Maintainers
2
Versions
192
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oci-common - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

8

lib/config-file-reader.js

@@ -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);

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc