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.
@@ -1,4 +1,4 @@
1
- /* Luna Baileys maintained distribution. Upstream notices and license are preserved in LICENSE. */
1
+ /* Lyxe Baileys distribution. Upstream notices and license are preserved in LICENSE. */
2
2
  const major = parseInt(
3
3
  process.versions.node.split('.')[0],
4
4
  10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyxe-baileys",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Custom WhatsApp Multi-Device library by lyxe (forked from luna-baileys by noxXza)",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -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: 'luna' }),
64
+ logger: logger.child({ class: 'lyxe' }),
65
65
  emitOwnEvents: true,
66
66
  AnchorGuard: false,
67
67
  AnchorGuardConfig: {},
@@ -8,7 +8,7 @@
8
8
  * and scalable architecture for modern bot development.
9
9
  *
10
10
  * Runtime:
11
- * - Baileys: luna-baileys
11
+ * - Baileys: lyxe-baileys
12
12
  *
13
13
  * Created by Nixel
14
14
  * Contributors: ~ Ahmad tumbuh kembang
@@ -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 = 'baileys_luna_auth') {
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'
@@ -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(), "luna-voip"),
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(), "luna-voip");
521
+ return typedWorkerData?.storageDir || path.join(os.tmpdir(), "lyxe-voip");
522
522
  },
523
523
  initPersistentFS: async function (_module) {
524
524
  return Promise.resolve();