Comparing version 1.1.5 to 1.1.6
@@ -12,2 +12,5 @@ const fs = require('fs'); | ||
if(!this.dataFolder) throw new Error("Bir database klasörü belirtmelisin") | ||
if(fs.existsSync(`./${this.dataFolder}/${this.dataName}.json`) === false) { | ||
fs.writeFileSync(`./${this.dataFolder}/${this.dataName}.json`, "{}"); | ||
} | ||
this.db = low(new FileSync(`./${this.dataFolder}/${this.dataName}` + ".json")); | ||
@@ -14,0 +17,0 @@ }; |
@@ -23,2 +23,3 @@ const adapters = [ "YamlDB", "JsonDB"] | ||
this.deleteAll = this.constructor.deleteAll; | ||
this.delete = this.constructor.delete; | ||
} | ||
@@ -49,2 +50,5 @@ static set(data, key) { | ||
} | ||
static delete(data) { | ||
return this.efdb.delete(data) | ||
} | ||
static deleteAll() { | ||
@@ -55,3 +59,3 @@ return this.efdb.deleteAll() | ||
module.exports = efDB | ||
module.exports.version = "1.1.5" | ||
module.exports.version = "1.1.6" | ||
module.exports.destek = "https://discord.gg/etqAqHFZsc" |
{ | ||
"name": "efdb", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "Türkçe basit yaml veritabanı", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,3 +8,2 @@ # EfDB | ||
- JsonDB eklendi | ||
- Ufak hata gidermeleri | ||
@@ -11,0 +10,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14774
354
1
33