@deathnaitsa/wa-api 1.0.35 → 1.0.37

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.
@@ -292,7 +292,7 @@ const getAllSessionData = () => {
292
292
  exports.getAllSessionData = getAllSessionData;
293
293
 
294
294
  async function loadSessionsFromStorage() {
295
- const dirPath = path_1.default.resolveresolve(Defaults_1.CREDENTIALS.DIR_NAME);
295
+ const dirPath = path_1.default.resolve(Defaults_1.CREDENTIALS.DIR_NAME);
296
296
  const loadedSessions = [];
297
297
 
298
298
  // Ordner anlegen, falls nicht existiert
@@ -304,7 +304,7 @@ async function loadSessionsFromStorage() {
304
304
  const entries = await fs_1.default.promises.readdir(dirPath);
305
305
 
306
306
  for (const entry of entries) {
307
- const fullPath = path_1.default.resolve.join(dirPath, entry);
307
+ const fullPath = path_1.default.join(dirPath, entry);
308
308
  let stat;
309
309
  try {
310
310
  stat = await fs_1.default.promises.stat(fullPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deathnaitsa/wa-api",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "Multi Session Whatsapp Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",