Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@incanta/config

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@incanta/config - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

6

lib/config.js

@@ -18,3 +18,7 @@ "use strict";

this.customValues = {};
this.configDir = options?.configDir || path_1.default.join(process.cwd(), "config");
this.configDir =
options?.configDir ||
(process.env["NODE_CONFIG_DIR"] &&
path_1.default.relative(process.cwd(), process.env["NODE_CONFIG_DIR"])) ||
path_1.default.join(process.cwd(), "config");
const defaultValues = loader_1.Loader.load(path_1.default.join(this.configDir, "default"));

@@ -21,0 +25,0 @@ let envValues = {};

2

package.json
{
"name": "@incanta/config",
"version": "0.1.1",
"version": "0.1.2",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "exports": {

@@ -21,3 +21,7 @@ import merge from "lodash.merge";

this.configDir = options?.configDir || path.join(process.cwd(), "config");
this.configDir =
options?.configDir ||
(process.env["NODE_CONFIG_DIR"] &&
path.relative(process.cwd(), process.env["NODE_CONFIG_DIR"])) ||
path.join(process.cwd(), "config");

@@ -24,0 +28,0 @@ const defaultValues = Loader.load(path.join(this.configDir, "default"));

Sorry, the diff of this file is not supported yet

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