core-3nweb-client-lib 0.41.1 → 0.41.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.
@@ -27,7 +27,8 @@ function userIdToFolderName(userId) {
27
27
  return buffer_utils_1.base64urlSafe.pack(buffer_utils_1.utf8.pack(userId));
28
28
  }
29
29
  function folderNameToUserId(folderName) {
30
- return buffer_utils_1.utf8.open(buffer_utils_1.base64urlSafe.open(folderName));
30
+ const str = buffer_utils_1.utf8.open(buffer_utils_1.base64urlSafe.open(folderName));
31
+ return (str.includes('@') ? str : undefined);
31
32
  }
32
33
  exports.UTIL_DIR = 'util';
33
34
  const INBOX_DIR = 'inbox';
@@ -70,7 +71,10 @@ function appDirs(appDir) {
70
71
  continue;
71
72
  }
72
73
  try {
73
- users.push(folderNameToUserId(entry.name));
74
+ const userId = folderNameToUserId(entry.name);
75
+ if (userId) {
76
+ users.push(userId);
77
+ }
74
78
  }
75
79
  catch (e) {
76
80
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-3nweb-client-lib",
3
- "version": "0.41.1",
3
+ "version": "0.41.2",
4
4
  "description": "3NWeb client core library, embeddable into different environments",
5
5
  "main": "build/lib-index.js",
6
6
  "types": "build/lib-index.d.ts",