@arcaelas/whatsapp 7.3.0 → 7.4.0

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.
@@ -22,12 +22,14 @@ interface Options {
22
22
  /** Descargar el historial de mensajes al vincular; contactos, credenciales, LID mappings y tctokens se sincronizan siempre. / Download the message history on link; contacts, credentials, LID mappings and tctokens always sync. */
23
23
  sync?: boolean;
24
24
  /**
25
- * Nombre con el que esta sesión aparece en «Dispositivos vinculados» del teléfono. Cuando
26
- * una cuenta tiene varias sesiones, es lo ÚNICO que permite distinguirlas para cerrar la
27
- * correcta: sin él todas se ven iguales y no hay forma de saber cuál sobra.
28
- * Name this session shows under the phone's «Linked devices». When an account holds several
29
- * sessions it is the ONLY thing telling them apart to close the right one: without it they
30
- * all look alike and there is no way to know which one is spare.
25
+ * Nombre con el que esta sesión aparece en «Dispositivos vinculados» del teléfono; por
26
+ * defecto `Chrome`. Cuando una cuenta tiene varias sesiones es lo ÚNICO que permite
27
+ * distinguirlas para cerrar la correcta: con el valor por defecto todas se ven iguales
28
+ * —y iguales a un navegador real—, así que quien abra más de una debería nombrarlas.
29
+ * Name this session shows under the phone's «Linked devices»; defaults to `Chrome`. When an
30
+ * account holds several sessions it is the ONLY thing telling them apart to close the right
31
+ * one: with the default they all look alike —and alike to a real browser—, so whoever opens
32
+ * more than one should name them.
31
33
  */
32
34
  device?: string;
33
35
  }
@@ -126,7 +126,7 @@ class WhatsApp {
126
126
  },
127
127
  },
128
128
  },
129
- browser: baileys_1.Browsers.appropriate(device ?? 'Orchestrator'),
129
+ browser: baileys_1.Browsers.windows(device ?? 'Chrome'),
130
130
  logger: (0, pino_1.default)({ level: 'silent' }),
131
131
  syncFullHistory: sync,
132
132
  shouldSyncHistoryMessage: ({ syncType }) => sync || syncType !== baileys_1.proto.HistorySync.HistorySyncType.FULL,
@@ -22,12 +22,14 @@ interface Options {
22
22
  /** Descargar el historial de mensajes al vincular; contactos, credenciales, LID mappings y tctokens se sincronizan siempre. / Download the message history on link; contacts, credentials, LID mappings and tctokens always sync. */
23
23
  sync?: boolean;
24
24
  /**
25
- * Nombre con el que esta sesión aparece en «Dispositivos vinculados» del teléfono. Cuando
26
- * una cuenta tiene varias sesiones, es lo ÚNICO que permite distinguirlas para cerrar la
27
- * correcta: sin él todas se ven iguales y no hay forma de saber cuál sobra.
28
- * Name this session shows under the phone's «Linked devices». When an account holds several
29
- * sessions it is the ONLY thing telling them apart to close the right one: without it they
30
- * all look alike and there is no way to know which one is spare.
25
+ * Nombre con el que esta sesión aparece en «Dispositivos vinculados» del teléfono; por
26
+ * defecto `Chrome`. Cuando una cuenta tiene varias sesiones es lo ÚNICO que permite
27
+ * distinguirlas para cerrar la correcta: con el valor por defecto todas se ven iguales
28
+ * —y iguales a un navegador real—, así que quien abra más de una debería nombrarlas.
29
+ * Name this session shows under the phone's «Linked devices»; defaults to `Chrome`. When an
30
+ * account holds several sessions it is the ONLY thing telling them apart to close the right
31
+ * one: with the default they all look alike —and alike to a real browser—, so whoever opens
32
+ * more than one should name them.
31
33
  */
32
34
  device?: string;
33
35
  }
@@ -88,7 +88,7 @@ export default class WhatsApp {
88
88
  },
89
89
  },
90
90
  },
91
- browser: Browsers.appropriate(device ?? 'Orchestrator'),
91
+ browser: Browsers.windows(device ?? 'Chrome'),
92
92
  logger: pino({ level: 'silent' }),
93
93
  syncFullHistory: sync,
94
94
  shouldSyncHistoryMessage: ({ syncType }) => sync || syncType !== proto.HistorySync.HistorySyncType.FULL,
package/package.json CHANGED
@@ -72,7 +72,7 @@
72
72
  "release": "npm publish --access public"
73
73
  },
74
74
  "types": "./build/esm/index.d.ts",
75
- "version": "7.3.0",
75
+ "version": "7.4.0",
76
76
  "engines": {
77
77
  "node": ">=20"
78
78
  },