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

lagash-config

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lagash-config - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

1

js/index.d.ts
export default class Config {
private static config;
static tryLoadEnvFromFile(filename: string): boolean;
static tryLoadEnvAtRootOrParent(filename: string): void;
static initConfig(): void;

@@ -5,0 +6,0 @@ static get(key: string): string;

15

js/index.js

@@ -45,7 +45,14 @@ /*********************************************************************************

}
static tryLoadEnvAtRootOrParent(filename) {
if (!this.tryLoadEnvFromFile(`./${filename}`)) {
this.tryLoadEnvFromFile(`../${filename}`);
}
}
static initConfig() {
if (!Config.tryLoadEnvFromFile("./config.env")) {
Config.tryLoadEnvFromFile("../config.env");
}
Config.config = NConf.argv()
this.tryLoadEnvAtRootOrParent("config.env");
this.tryLoadEnvAtRootOrParent("config.local.env");
this.tryLoadEnvAtRootOrParent("config.test.env");
this.tryLoadEnvAtRootOrParent("config.latest.env");
this.tryLoadEnvAtRootOrParent("config.stable.env");
this.config = NConf.argv()
.env()

@@ -52,0 +59,0 @@ .file("default", "./config.json");

{
"name": "lagash-config",
"version": "0.1.1",
"version": "0.1.2",
"description": "Lagash simple nconf wrapper.",

@@ -5,0 +5,0 @@ "main": "js/index.js",

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