From 17a434f400f6425b854a8c1ff28af47e44b557f5 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 21 Dec 2022 15:16:14 -0500 Subject: [PATCH] *Update dist --- dist/index.d.ts | 1 + dist/index.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/dist/index.d.ts b/dist/index.d.ts index a101a14..614583f 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -17,6 +17,7 @@ export default class Config { openDir(dir: string): void; open(file: string): void; save(file: string, data: object): void; + savePath(file: string, path: string): void; set(key: string, value: any): void; has(key: string): any; private normalize; diff --git a/dist/index.js b/dist/index.js index 0df6ad2..6081b67 100644 --- a/dist/index.js +++ b/dist/index.js @@ -89,6 +89,9 @@ class Config { fs_1.default.writeFileSync(fullPath, JSON.stringify(data)); this.open(fullPath); } + savePath(file, path) { + this.save(file, this.get(path)); + } set(key, value) { (0, bsert_1.default)(typeof key === "string", "Key must be a string."); if (value == null) {