lyxe-baileys 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/README.md +6322 -6322
- package/engine-requirements.js +1 -1
- package/package.json +1 -1
- package/src/Defaults/index.js +1 -1
- package/src/MessageBuilder/index.js +1 -1
- package/src/Utils/useNekoDBAuth.js +1 -1
- package/src/Voip/wasm-engine.js +1 -1
- package/src/Voip/worker-bootstrap.js +1 -1
package/engine-requirements.js
CHANGED
package/package.json
CHANGED
package/src/Defaults/index.js
CHANGED
|
@@ -61,7 +61,7 @@ export const DEFAULT_CONNECTION_CONFIG = {
|
|
|
61
61
|
waWebSocketUrl: 'wss://web.whatsapp.com/ws/chat',
|
|
62
62
|
connectTimeoutMs: 20000,
|
|
63
63
|
keepAliveIntervalMs: 15000,
|
|
64
|
-
logger: logger.child({ class: '
|
|
64
|
+
logger: logger.child({ class: 'lyxe' }),
|
|
65
65
|
emitOwnEvents: true,
|
|
66
66
|
AnchorGuard: false,
|
|
67
67
|
AnchorGuardConfig: {},
|
|
@@ -2,7 +2,7 @@ import { proto } from '../../WAProto/index.js'
|
|
|
2
2
|
import { initAuthCreds } from './auth-utils.js'
|
|
3
3
|
import { BufferJSON } from './generics.js'
|
|
4
4
|
|
|
5
|
-
export async function useNekoDBAuth(db, collectionName = '
|
|
5
|
+
export async function useNekoDBAuth(db, collectionName = 'baileys_lyxe_auth') {
|
|
6
6
|
if (!db || typeof db.collection !== 'function') {
|
|
7
7
|
throw new Error(
|
|
8
8
|
'useNekoDBAuth: argumen pertama harus instance NekoDB yang terkoneksi'
|
package/src/Voip/wasm-engine.js
CHANGED
|
@@ -243,7 +243,7 @@ export class WasmEngine {
|
|
|
243
243
|
...config,
|
|
244
244
|
storageDir: config.storageDir
|
|
245
245
|
? (path.isAbsolute(config.storageDir) ? config.storageDir : path.resolve(process.cwd(), config.storageDir))
|
|
246
|
-
: path.join(tmpdir(), "
|
|
246
|
+
: path.join(tmpdir(), "lyxe-voip"),
|
|
247
247
|
wasmPath,
|
|
248
248
|
resourcesPath: basePath,
|
|
249
249
|
enableLogs: config.enableLogs ?? true,
|
|
@@ -518,7 +518,7 @@ class Sha256HMacBuilder {
|
|
|
518
518
|
}
|
|
519
519
|
const WAWebVoipPersistentFS = {
|
|
520
520
|
getVoipPersistentDirectoryPath: function () {
|
|
521
|
-
return typedWorkerData?.storageDir || path.join(os.tmpdir(), "
|
|
521
|
+
return typedWorkerData?.storageDir || path.join(os.tmpdir(), "lyxe-voip");
|
|
522
522
|
},
|
|
523
523
|
initPersistentFS: async function (_module) {
|
|
524
524
|
return Promise.resolve();
|