@open-wa/wa-automate 4.23.17 → 4.23.18

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.
@@ -157,11 +157,11 @@ function create(config = {}) {
157
157
  /**
158
158
  * Check if the IGNORE folder exists, therefore, assume that the session is MD.
159
159
  */
160
- const mdDir = config["userDataDir"] || `${(config === null || config === void 0 ? void 0 : config.inDocker) ? '/sessions' : (config === null || config === void 0 ? void 0 : config.sessionDataPath) || '.'}/_IGNORE_${(config === null || config === void 0 ? void 0 : config.sessionId) || 'session'}`;
161
- if (fs.existsSync(mdDir) && !(config === null || config === void 0 ? void 0 : config.multiDevice)) {
162
- spinner.info(`Multi-Device directory detected. multiDevice set to true.`);
163
- config.multiDevice = true;
164
- }
160
+ // const mdDir = config["userDataDir"] || `${config?.inDocker ? '/sessions' : config?.sessionDataPath || '.' }/_IGNORE_${config?.sessionId || 'session'}`
161
+ // if(fs.existsSync(mdDir) && !config?.multiDevice) {
162
+ // spinner.info(`Multi-Device directory detected. multiDevice set to true.`);
163
+ // config.multiDevice = true;
164
+ // }
165
165
  if ((config === null || config === void 0 ? void 0 : config.multiDevice) && (config === null || config === void 0 ? void 0 : config.chromiumArgs))
166
166
  spinner.info(`Using custom chromium args with multi device will cause issues! Please remove themm`);
167
167
  if ((config === null || config === void 0 ? void 0 : config.multiDevice) && !(config === null || config === void 0 ? void 0 : config.useChrome))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.23.17",
3
+ "version": "4.23.18",
4
4
  "licenseCheckUrl": "https://openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",