core-3nweb-client-lib 0.41.13 → 0.41.14

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.
Files changed (28) hide show
  1. package/build/core/index.d.ts +2 -0
  2. package/build/core/index.js +2 -0
  3. package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
  4. package/build/lib-client/cryptor/cryptor.wasm +0 -0
  5. package/build/lib-client/server-events.js +4 -6
  6. package/build/lib-common/ipc/ws-ipc.js +2 -2
  7. package/package.json +1 -1
  8. package/test-data-1-1759456500985/util/logs/2025-10-03.log.txt +7 -0
  9. package/{test-data-10-1759442625007/util/logs/2025-10-02.log.txt → test-data-10-1759456540615/util/logs/2025-10-03.log.txt} +10 -7
  10. package/test-data-11-1759456540616/util/logs/2025-10-03.log.txt +7 -0
  11. package/test-data-12-1759456544627/util/logs/2025-10-03.log.txt +7 -0
  12. package/{test-data-13-1759442629512/util/logs/2025-10-02.log.txt → test-data-13-1759456545560/util/logs/2025-10-03.log.txt} +10 -7
  13. package/test-data-2-1759456500988/util/logs/2025-10-03.log.txt +7 -0
  14. package/{test-data-9-1759442621732/util/logs/2025-10-02.log.txt → test-data-3-1759456506409/util/logs/2025-10-03.log.txt} +10 -7
  15. package/{test-data-3-1759442593521/util/logs/2025-10-02.log.txt → test-data-4-1759456512650/util/logs/2025-10-03.log.txt} +10 -7
  16. package/test-data-5-1759456522373/util/logs/2025-10-03.log.txt +7 -0
  17. package/test-data-6-1759456524407/util/logs/2025-10-03.log.txt +7 -0
  18. package/test-data-7-1759456526517/util/logs/2025-10-03.log.txt +7 -0
  19. package/test-data-8-1759456536045/util/logs/2025-10-03.log.txt +7 -0
  20. package/{test-data-4-1759442599428/util/logs/2025-10-02.log.txt → test-data-9-1759456536980/util/logs/2025-10-03.log.txt} +10 -7
  21. package/test-data-1-1759442588983/util/logs/2025-10-02.log.txt +0 -6
  22. package/test-data-11-1759442625008/util/logs/2025-10-02.log.txt +0 -6
  23. package/test-data-12-1759442628713/util/logs/2025-10-02.log.txt +0 -6
  24. package/test-data-2-1759442588985/util/logs/2025-10-02.log.txt +0 -6
  25. package/test-data-5-1759442608549/util/logs/2025-10-02.log.txt +0 -6
  26. package/test-data-6-1759442610426/util/logs/2025-10-02.log.txt +0 -6
  27. package/test-data-7-1759442612369/util/logs/2025-10-02.log.txt +0 -6
  28. package/test-data-8-1759442620927/util/logs/2025-10-02.log.txt +0 -6
@@ -21,7 +21,6 @@ const rxjs_1 = require("rxjs");
21
21
  const synced_1 = require("../lib-common/processes/synced");
22
22
  const sleep_1 = require("../lib-common/processes/sleep");
23
23
  const operators_1 = require("rxjs/operators");
24
- const error_1 = require("../lib-common/exceptions/error");
25
24
  class ServerEvents {
26
25
  constructor(subscribeToServer, restartWaitSecs, logError) {
27
26
  this.subscribeToServer = subscribeToServer;
@@ -76,12 +75,11 @@ class ServerEvents {
76
75
  .pipe(
77
76
  // XXX tap to log more details
78
77
  (0, operators_1.tap)({
79
- complete: () => this.logError({}, `ServerEvents.observe stream completes`),
80
- error: err => this.logError(err, `ServerEvents.observe stream has error,
81
- ${(0, error_1.stringifyErr)(err)}`)
78
+ complete: () => this.logError(null, `ServerEvents.observe('${event}') stream completes`),
79
+ error: err => this.logError(err, `ServerEvents.observe('${event}') stream has error`)
82
80
  }), (0, operators_1.catchError)(err => {
83
81
  if (this.shouldRestartAfterErr(err)) {
84
- console.error((0, error_1.stringifyErr)(err));
82
+ // console.error(stringifyErr(err));
85
83
  return this.restartObservation(event);
86
84
  }
87
85
  else {
@@ -120,7 +118,7 @@ ${(0, error_1.stringifyErr)(err)}`)
120
118
  .pipe(
121
119
  // XXX tap to log more details
122
120
  (0, operators_1.tap)({
123
- next: () => this.logError({}, `ServerEvents.restartObservation of ${event} events`)
121
+ next: () => this.logError(null, `ServerEvents.restartObservation of ${event} events`)
124
122
  }), (0, operators_1.mergeMap)(() => this.observe(event)));
125
123
  }
126
124
  }
@@ -132,10 +132,10 @@ function makeSignalsTimeObserver(url, log) {
132
132
  return (done, err) => {
133
133
  if (done) {
134
134
  if (err) {
135
- log(`WebSocket to ${url} closed with error`, err);
135
+ log(err, `WebSocket to ${url} closed with error`);
136
136
  }
137
137
  else {
138
- log(`WebSocket to ${url} closed`);
138
+ log(null, `WebSocket to ${url} closed`);
139
139
  }
140
140
  resetWait(false);
141
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-3nweb-client-lib",
3
- "version": "0.41.13",
3
+ "version": "0.41.14",
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",
@@ -0,0 +1,7 @@
1
+
2
+ Thu Oct 02 2025 21:55:20 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
+ Core version 0.41.14
4
+ Log level: error.
5
+ WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
6
+
7
+ Error message: undefined
@@ -1,11 +1,14 @@
1
1
 
2
- Thu Oct 02 2025 18:03:48 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
- Core version 0.41.13
2
+ Thu Oct 02 2025 21:55:44 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
+ Core version 0.41.14
4
4
  Log level: error.
5
- [object Object]
6
5
  WebSocket to wss://localhost:8088/asmail/retrieval/events closed with error
7
- Thu Oct 02 2025 18:03:48 GMT-0400 (Eastern Daylight Saving Time) ==================================
8
- Core version 0.41.13
6
+
7
+ Error message: undefined
8
+
9
+ Thu Oct 02 2025 21:55:44 GMT-0400 (Eastern Daylight Saving Time) ==================================
10
+ Core version 0.41.14
9
11
  Log level: error.
10
- [object Object]
11
- WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
12
+ WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
13
+
14
+ Error message: undefined
@@ -0,0 +1,7 @@
1
+
2
+ Thu Oct 02 2025 21:55:44 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
+ Core version 0.41.14
4
+ Log level: error.
5
+ WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
6
+
7
+ Error message: undefined
@@ -0,0 +1,7 @@
1
+
2
+ Thu Oct 02 2025 21:55:48 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
+ Core version 0.41.14
4
+ Log level: error.
5
+ WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
6
+
7
+ Error message: undefined
@@ -1,11 +1,14 @@
1
1
 
2
- Thu Oct 02 2025 18:03:51 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
- Core version 0.41.13
2
+ Thu Oct 02 2025 21:55:48 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
+ Core version 0.41.14
4
4
  Log level: error.
5
- [object Object]
6
5
  WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
7
- Thu Oct 02 2025 18:03:51 GMT-0400 (Eastern Daylight Saving Time) ==================================
8
- Core version 0.41.13
6
+
7
+ Error message: undefined
8
+
9
+ Thu Oct 02 2025 21:55:48 GMT-0400 (Eastern Daylight Saving Time) ==================================
10
+ Core version 0.41.14
9
11
  Log level: error.
10
- [object Object]
11
- WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
12
+ WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
13
+
14
+ Error message: undefined
@@ -0,0 +1,7 @@
1
+
2
+ Thu Oct 02 2025 21:55:22 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
+ Core version 0.41.14
4
+ Log level: error.
5
+ WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
6
+
7
+ Error message: undefined
@@ -1,11 +1,14 @@
1
1
 
2
- Thu Oct 02 2025 18:03:44 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
- Core version 0.41.13
2
+ Thu Oct 02 2025 21:55:12 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
+ Core version 0.41.14
4
4
  Log level: error.
5
- [object Object]
6
5
  WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
7
- Thu Oct 02 2025 18:03:44 GMT-0400 (Eastern Daylight Saving Time) ==================================
8
- Core version 0.41.13
6
+
7
+ Error message: undefined
8
+
9
+ Thu Oct 02 2025 21:55:12 GMT-0400 (Eastern Daylight Saving Time) ==================================
10
+ Core version 0.41.14
9
11
  Log level: error.
10
- [object Object]
11
- WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
12
+ WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
13
+
14
+ Error message: undefined
@@ -1,11 +1,14 @@
1
1
 
2
- Thu Oct 02 2025 18:03:19 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
- Core version 0.41.13
2
+ Thu Oct 02 2025 21:55:18 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
+ Core version 0.41.14
4
4
  Log level: error.
5
- [object Object]
6
5
  WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
7
- Thu Oct 02 2025 18:03:19 GMT-0400 (Eastern Daylight Saving Time) ==================================
8
- Core version 0.41.13
6
+
7
+ Error message: undefined
8
+
9
+ Thu Oct 02 2025 21:55:18 GMT-0400 (Eastern Daylight Saving Time) ==================================
10
+ Core version 0.41.14
9
11
  Log level: error.
10
- [object Object]
11
- WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
12
+ WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
13
+
14
+ Error message: undefined
@@ -0,0 +1,7 @@
1
+
2
+ Thu Oct 02 2025 21:55:24 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
+ Core version 0.41.14
4
+ Log level: error.
5
+ WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
6
+
7
+ Error message: undefined
@@ -0,0 +1,7 @@
1
+
2
+ Thu Oct 02 2025 21:55:26 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
+ Core version 0.41.14
4
+ Log level: error.
5
+ WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
6
+
7
+ Error message: undefined
@@ -0,0 +1,7 @@
1
+
2
+ Thu Oct 02 2025 21:55:36 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
+ Core version 0.41.14
4
+ Log level: error.
5
+ WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
6
+
7
+ Error message: undefined
@@ -0,0 +1,7 @@
1
+
2
+ Thu Oct 02 2025 21:55:40 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
+ Core version 0.41.14
4
+ Log level: error.
5
+ WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
6
+
7
+ Error message: undefined
@@ -1,11 +1,14 @@
1
1
 
2
- Thu Oct 02 2025 18:03:24 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
- Core version 0.41.13
2
+ Thu Oct 02 2025 21:55:40 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
+ Core version 0.41.14
4
4
  Log level: error.
5
- [object Object]
6
5
  WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
7
- Thu Oct 02 2025 18:03:24 GMT-0400 (Eastern Daylight Saving Time) ==================================
8
- Core version 0.41.13
6
+
7
+ Error message: undefined
8
+
9
+ Thu Oct 02 2025 21:55:40 GMT-0400 (Eastern Daylight Saving Time) ==================================
10
+ Core version 0.41.14
9
11
  Log level: error.
10
- [object Object]
11
- WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
12
+ WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
13
+
14
+ Error message: undefined
@@ -1,6 +0,0 @@
1
-
2
- Thu Oct 02 2025 18:03:26 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
- Core version 0.41.13
4
- Log level: error.
5
- [object Object]
6
- WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
@@ -1,6 +0,0 @@
1
-
2
- Thu Oct 02 2025 18:03:48 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
- Core version 0.41.13
4
- Log level: error.
5
- [object Object]
6
- WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
@@ -1,6 +0,0 @@
1
-
2
- Thu Oct 02 2025 18:03:51 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
- Core version 0.41.13
4
- Log level: error.
5
- [object Object]
6
- WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
@@ -1,6 +0,0 @@
1
-
2
- Thu Oct 02 2025 18:03:28 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
- Core version 0.41.13
4
- Log level: error.
5
- [object Object]
6
- WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
@@ -1,6 +0,0 @@
1
-
2
- Thu Oct 02 2025 18:03:30 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
- Core version 0.41.13
4
- Log level: error.
5
- [object Object]
6
- WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
@@ -1,6 +0,0 @@
1
-
2
- Thu Oct 02 2025 18:03:32 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
- Core version 0.41.13
4
- Log level: error.
5
- [object Object]
6
- WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
@@ -1,6 +0,0 @@
1
-
2
- Thu Oct 02 2025 18:03:40 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
- Core version 0.41.13
4
- Log level: error.
5
- [object Object]
6
- WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error
@@ -1,6 +0,0 @@
1
-
2
- Thu Oct 02 2025 18:03:44 GMT-0400 (Eastern Daylight Saving Time) ==================================
3
- Core version 0.41.13
4
- Log level: error.
5
- [object Object]
6
- WebSocket to wss://localhost:8088/3nstorage/owner/events closed with error