@social-mail/social-mail-web-server 1.7.63 → 1.7.65

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.7.63",
3
+ "version": "1.7.65",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -3,7 +3,7 @@ import semver from "semver";
3
3
 
4
4
  export default async function seedUI(config: DBConfig) {
5
5
 
6
- const version = "1.4.80";
6
+ const version = "1.4.79";
7
7
 
8
8
  const existing = await config.getValue(UIPackageConfig, false);
9
9
  if (existing) {
@@ -38,8 +38,16 @@ const loadScanner = async () => {
38
38
  // socket exists... try to connect...
39
39
  // console.log(`Waiting for clamd to start... at port ${socket}`);
40
40
  try {
41
- using s = await SocketClient.connect({ port: socket });
42
- break;
41
+
42
+ const { default: NodeClam } = await import("clamscan");
43
+ const nc = new NodeClam();
44
+ return await nc.init({
45
+ debugMode,
46
+ clamdscan: {
47
+ socket,
48
+ host
49
+ }
50
+ });
43
51
  } catch (error) {
44
52
  console.error(error);
45
53
  await sleep(2000);
@@ -48,16 +56,6 @@ const loadScanner = async () => {
48
56
  throw new Error(`could not connect to socket at ${socket}.`);
49
57
  }
50
58
  }
51
-
52
- const { default: NodeClam } = await import("clamscan");
53
- const nc = new NodeClam();
54
- return await nc.init({
55
- debugMode,
56
- clamdscan: {
57
- socket,
58
- host
59
- }
60
- });
61
59
  };
62
60
 
63
61
  export default class AVService {