Comparing version 1.0.1 to 1.0.2
@@ -50,5 +50,3 @@ import { readFileSync, promises, writeFileSync } from 'fs'; | ||
} | ||
if (this.config.hasOwnProperty(key)) | ||
this.config[key] = value; | ||
else if (key.indexOf(".") != -1) { | ||
if (key.indexOf(".") != -1) { | ||
const tree = key.split("."); | ||
@@ -63,2 +61,5 @@ let newKey = tree[0]; | ||
} | ||
else { | ||
this.config[key] = value; | ||
} | ||
return this; | ||
@@ -65,0 +66,0 @@ } |
{ | ||
"name": "simcfg", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A simple module for managing configuration files", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
271
16188