@ryuu-reinzz/haruka-lib 1.0.0 → 1.0.2

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.
package/main/socket.js CHANGED
@@ -14,7 +14,7 @@ const __dirname = dirname(__filename);
14
14
  */
15
15
 
16
16
  export default function addProperty(socket, store, smsg, baileys) {
17
- const {
17
+ const {
18
18
  proto,
19
19
  generateWAMessageFromContent,
20
20
  jidDecode,
@@ -10,7 +10,7 @@ import Database from "better-sqlite3";
10
10
  * Membuat atau mengambil auth state dari SQLite
11
11
  * @param {string} dbPath - Lokasi file SQLite (contoh: "./auth.db")
12
12
  */
13
- export async function useSQLiteAuthState(dbPath = "./auth.db", baileys) {
13
+ export default async function useSQLiteAuthState(dbPath = "./auth.db", baileys) {
14
14
  const { proto, BufferJSON, initAuthCreds } = baileys;
15
15
  const db = new Database(dbPath);
16
16
  db.pragma("journal_mode = WAL");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryuu-reinzz/haruka-lib",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Library extra for bot WhatsApp",
5
5
  "main": "main/index.js",
6
6
  "type": "module",