core-3nweb-client-lib 0.42.7 → 0.42.9

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.
@@ -60,7 +60,8 @@ class Delivery {
60
60
  }
61
61
  static async makeAndStart(fs, r) {
62
62
  const delivery = new Delivery(fs, r);
63
- await delivery.restartDeliveryOfMsgsAtStartup();
63
+ delivery.restartDeliveryOfMsgsAtStartup()
64
+ .catch(err => delivery.r.logError(err));
64
65
  return delivery;
65
66
  }
66
67
  makeCAP() {
@@ -42,7 +42,8 @@ class ASMail {
42
42
  async init(address, getSigner, syncedFS, localFS, getStorages, makeResolver, config, keyring) {
43
43
  try {
44
44
  this.address = address;
45
- await (0, fs_sync_utils_1.getRemoteFolderChanges)(syncedFS);
45
+ // XXX this should be part of proper syncing logic
46
+ // await getRemoteFolderChanges(syncedFS);
46
47
  this.config = config;
47
48
  this.keyring = keyring;
48
49
  await this.setupSendingParams(syncedFS);
@@ -31,8 +31,9 @@ class AnonymousInvites {
31
31
  static async makeAndInit(file, anonInvitesOnServer) {
32
32
  const anonInvites = new AnonymousInvites(anonInvitesOnServer);
33
33
  await anonInvites.fileProc.start(file, () => anonInvites.toFileJSON());
34
- await anonInvites.absorbRemoteChanges();
35
- await anonInvites.syncServiceSetting();
34
+ // XXX these are part of proper syncing logic
35
+ // await anonInvites.absorbRemoteChanges();
36
+ // await anonInvites.syncServiceSetting();
36
37
  return anonInvites;
37
38
  }
38
39
  async onFileEvent(ev) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- Copyright (C) 2015 - 2017, 2020 - 2021, 2024 3NSoft Inc.
3
+ Copyright (C) 2015 - 2017, 2020 - 2021, 2024 - 2025 3NSoft Inc.
4
4
 
5
5
  This program is free software: you can redistribute it and/or modify it under
6
6
  the terms of the GNU General Public License as published by the Free Software
@@ -223,7 +223,8 @@ function getRecordAtStartOf(txt) {
223
223
  const DNS_ERR_CODE = {
224
224
  NODATA: 'ENODATA',
225
225
  NOTFOUND: 'ENOTFOUND',
226
- ESERVFAIL: 'ESERVFAIL'
226
+ ESERVFAIL: 'ESERVFAIL',
227
+ ECONNREFUSED: 'ECONNREFUSED'
227
228
  };
228
229
  Object.freeze(DNS_ERR_CODE);
229
230
  function makeServiceLocator(resolver) {
@@ -243,7 +244,7 @@ function makeServiceLocator(resolver) {
243
244
  if (code === DNS_ERR_CODE.NODATA) {
244
245
  throw noServiceRecordExc(address);
245
246
  }
246
- else if (code === DNS_ERR_CODE.ESERVFAIL) {
247
+ else if ((code === DNS_ERR_CODE.ESERVFAIL) || (code === DNS_ERR_CODE.ECONNREFUSED)) {
247
248
  throw noConnectionExc({ code, hostname, message });
248
249
  }
249
250
  else if (hostname) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-3nweb-client-lib",
3
- "version": "0.42.7",
3
+ "version": "0.42.9",
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",