*Update dist

This commit is contained in:
Derrick Hammer 2022-09-21 16:38:11 -04:00
parent c98b544689
commit fcc3c40ba1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 1 deletions

4
dist/index.js vendored
View File

@ -137,7 +137,9 @@ class Config {
saveConfigJson(file, data) { saveConfigJson(file, data) {
(0, bsert_1.default)(typeof data === "object"); (0, bsert_1.default)(typeof data === "object");
(0, bsert_1.default)(!Array.isArray(data)); (0, bsert_1.default)(!Array.isArray(data));
fs_1.default.writeFileSync(path_1.default.join(this.str("configdir"), file), JSON.stringify(data)); const fullPath = path_1.default.join(this.str("configdir"), file);
fs_1.default.writeFileSync(fullPath, JSON.stringify(data));
this.openJson(fullPath);
} }
filter(name) { filter(name) {
(0, bsert_1.default)(typeof name === "string"); (0, bsert_1.default)(typeof name === "string");