@incanta/config
Advanced tools
Comparing version 0.2.3 to 0.3.0
@@ -11,2 +11,3 @@ export interface IConfigOptions { | ||
constructor(options?: IConfigOptions); | ||
init(options?: IConfigOptions): void; | ||
dir(): string; | ||
@@ -13,0 +14,0 @@ getConfiguredEnv(): any; |
@@ -11,3 +11,3 @@ "use strict"; | ||
class Config { | ||
configDir; | ||
configDir = ""; | ||
values; | ||
@@ -17,2 +17,5 @@ customValues; | ||
constructor(options) { | ||
this.init(options); | ||
} | ||
init(options) { | ||
this.values = {}; | ||
@@ -19,0 +22,0 @@ this.customValues = {}; |
{ | ||
"name": "@incanta/config", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -12,3 +12,3 @@ import merge from "lodash.merge"; | ||
export default class Config { | ||
private configDir: string; | ||
private configDir: string = ""; | ||
@@ -21,2 +21,6 @@ private values: any; | ||
public constructor(options?: IConfigOptions) { | ||
this.init(options); | ||
} | ||
public init(options?: IConfigOptions): void { | ||
this.values = {}; | ||
@@ -23,0 +27,0 @@ this.customValues = {}; |
Sorry, the diff of this file is not supported yet
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
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
41616
750