@onurege3467/zerohelper 6.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
package/database/mysql.js CHANGED
@@ -80,7 +80,7 @@ class MySQLDatabase extends IDatabase{
80
80
 
81
81
  async ensureTable(table, data = {}) {
82
82
  return this._queueRequest(async () => {
83
- if (!data || Object.keys(data).length === 0) return;
83
+
84
84
 
85
85
  const escapedTable = mysql.escape(table);
86
86
  const tables = await this.query(`SHOW TABLES LIKE ${escapedTable}`);
@@ -62,7 +62,7 @@ class SQLiteDatabase extends IDatabase{
62
62
  * @param {object} data - Tablo oluşturulurken sütunları belirlemek için örnek veri.
63
63
  */
64
64
  async ensureTable(table, data = {}) {
65
- if (!data || Object.keys(data).length === 0) return;
65
+
66
66
 
67
67
  try {
68
68
  await this.query(`SELECT 1 FROM \`${table}\` LIMIT 1`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onurege3467/zerohelper",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "node test.js"