core-3nweb-client-lib 0.53.22 → 0.53.24

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.
@@ -112,9 +112,9 @@ class InboxEvents {
112
112
  this.listening.stop();
113
113
  }
114
114
  resumeNetworkActivity() {
115
- if (this.listening.proc) {
116
- this.listening.stop();
117
- this.listening.startWith(this.listening.proc.completion.then(() => this.subscribeToEventSrcAndPassHeartbeats()));
115
+ const completion = this.listening.stop();
116
+ if (completion) {
117
+ this.listening.startWith(completion.then(() => this.subscribeToEventSrcAndPassHeartbeats()));
118
118
  }
119
119
  else {
120
120
  this.listening.startWith(this.subscribeToEventSrcAndPassHeartbeats());
@@ -151,9 +151,9 @@ class RemoteEvents {
151
151
  this.listening.stop();
152
152
  }
153
153
  resumeNetworkActivity() {
154
- if (this.listening.proc) {
155
- this.listening.stop();
156
- this.listening.startWith(this.listening.proc.completion.then(() => this.subscribeToEventSrcAndPassHeartbeats()));
154
+ const completion = this.listening.stop();
155
+ if (completion) {
156
+ this.listening.startWith(completion.then(() => this.subscribeToEventSrcAndPassHeartbeats()));
157
157
  }
158
158
  else {
159
159
  this.listening.startWith(this.subscribeToEventSrcAndPassHeartbeats());
@@ -219,7 +219,7 @@ class UploadTask {
219
219
  return false;
220
220
  }
221
221
  else {
222
- await this.doAtCompletion().finally(() => {
222
+ await this.doAtCompletion().then(() => {
223
223
  this.uploadCompletion.resolve();
224
224
  this.rmTask(this);
225
225
  this.emitUploadEvent('upload-done', {});
@@ -454,7 +454,7 @@ class XspFS {
454
454
  return;
455
455
  }
456
456
  if (filter && (filter.length > 0)) {
457
- for (let i = 0; i <= srcAttrs.length; i += 1) {
457
+ for (let i = 0; i < srcAttrs.length; i += 1) {
458
458
  const attr = srcAttrs[i];
459
459
  if (!filter.includes(attr)) {
460
460
  srcAttrs.splice(i, 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-3nweb-client-lib",
3
- "version": "0.53.22",
3
+ "version": "0.53.24",
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",