@akylas/nativescript-app-utils 2.2.5 → 2.2.7

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.2.7](https://github.com/akylas/nativescript-app-utils/compare/v2.2.6...v2.2.7) (2025-02-13)
7
+
8
+ **Note:** Version bump only for package @akylas/nativescript-app-utils
9
+
10
+ ## [2.2.6](https://github.com/akylas/nativescript-app-utils/compare/v2.2.5...v2.2.6) (2025-02-10)
11
+
12
+ **Note:** Version bump only for package @akylas/nativescript-app-utils
13
+
6
14
  ## [2.2.5](https://github.com/akylas/nativescript-app-utils/compare/v2.2.4...v2.2.5) (2025-02-07)
7
15
 
8
16
  **Note:** Version bump only for package @akylas/nativescript-app-utils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akylas/nativescript-app-utils",
3
- "version": "2.2.5",
3
+ "version": "2.2.7",
4
4
  "description": "Provides API for changing the styles of SystemUI (StatusBar, NavigationBar...) on iOS.",
5
5
  "main": "index",
6
6
  "sideEffects": false,
@@ -66,5 +66,5 @@
66
66
  "dependencies": {
67
67
  "@nativescript-community/ui-share-file": "1.3.3"
68
68
  },
69
- "gitHead": "9ba272e485de9d47258e9d1082967c1498cdb325"
69
+ "gitHead": "6f1e887e75287473814ddfd73dbfb8489718755a"
70
70
  }
@@ -3,7 +3,8 @@ import type { BaseWorker, WorkerEventType, WorkerPostEvent } from './BaseWorker'
3
3
  import Queue from './queue';
4
4
  export default abstract class BaseWorkerHandler<T extends BaseWorker> extends Observable {
5
5
  private createWorker;
6
- constructor(createWorker: () => Worker);
6
+ private startWorkerTimeout;
7
+ constructor(createWorker: () => Worker, startWorkerTimeout?: number);
7
8
  worker: T;
8
9
  messagePromises: {
9
10
  [key: string]: {
@@ -3,9 +3,10 @@ import { Observable } from '@nativescript/core';
3
3
  import { time } from '@nativescript/core/profiling';
4
4
  import Queue from './queue';
5
5
  export default class BaseWorkerHandler extends Observable {
6
- constructor(createWorker) {
6
+ constructor(createWorker, startWorkerTimeout = 10000) {
7
7
  super();
8
8
  this.createWorker = createWorker;
9
+ this.startWorkerTimeout = startWorkerTimeout;
9
10
  this.messagePromises = {};
10
11
  this.queue = new Queue();
11
12
  }
@@ -71,7 +72,7 @@ export default class BaseWorkerHandler extends Observable {
71
72
  };
72
73
  const timeoutTimer = setTimeout(() => {
73
74
  reject(new Error('failed_to_start_worker'));
74
- }, 2000);
75
+ }, this.startWorkerTimeout);
75
76
  });
76
77
  }
77
78
  this.worker.postMessage(data);