@ryuu-reinzz/haruka-lib 1.2.15 → 1.2.16
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/index.js +6 -5
- package/main/socket.js +1 -3
- package/package.json +1 -1
package/main/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import addProperty from
|
|
2
|
-
import useSQLiteAuthState from
|
|
1
|
+
import { addProperty } from "./socket.js";
|
|
2
|
+
import useSQLiteAuthState from "./sqliteAuth.js";
|
|
3
3
|
|
|
4
|
-
const haruka =
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const haruka = {
|
|
5
|
+
addProperty,
|
|
6
|
+
useSQLiteAuthState
|
|
7
|
+
};
|
|
7
8
|
|
|
8
9
|
export default haruka;
|
package/main/socket.js
CHANGED
|
@@ -53,8 +53,7 @@ Examples:
|
|
|
53
53
|
const useSQLiteAuthState = haruka.useSQLiteAuthState;
|
|
54
54
|
const { state, saveCreds } = await useSQLiteAuthState(sessionPath + \"auth.db\");
|
|
55
55
|
|
|
56
|
-
Made by Ryuu`;
|
|
57
|
-
global.Haruka = () => {
|
|
56
|
+
> Made by Ryuu`;
|
|
58
57
|
socket.sendMessage(
|
|
59
58
|
socket.user.jid,
|
|
60
59
|
{
|
|
@@ -77,7 +76,6 @@ Made by Ryuu`;
|
|
|
77
76
|
},
|
|
78
77
|
}
|
|
79
78
|
);
|
|
80
|
-
}
|
|
81
79
|
const {
|
|
82
80
|
proto,
|
|
83
81
|
generateWAMessageFromContent,
|