@xylabs/threads 3.0.11 → 3.0.13

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.
@@ -20,7 +20,7 @@ const isInitMessage = (data) => data && data.type === 'init';
20
20
  const isUncaughtErrorMessage = (data) => data && data.type === 'uncaughtError';
21
21
  const initMessageTimeout = typeof process !== 'undefined' && process.env !== undefined && process.env.THREADS_WORKER_INIT_TIMEOUT ?
22
22
  Number.parseInt(process.env.THREADS_WORKER_INIT_TIMEOUT, 10)
23
- : 10000;
23
+ : 10_000;
24
24
  async function withTimeout(promise, timeoutInMs, errorMessage) {
25
25
  let timeoutHandle;
26
26
  const timeout = new Promise((resolve, reject) => {
@@ -14,7 +14,7 @@ const isInitMessage = (data) => data && data.type === 'init';
14
14
  const isUncaughtErrorMessage = (data) => data && data.type === 'uncaughtError';
15
15
  const initMessageTimeout = typeof process !== 'undefined' && process.env !== undefined && process.env.THREADS_WORKER_INIT_TIMEOUT ?
16
16
  Number.parseInt(process.env.THREADS_WORKER_INIT_TIMEOUT, 10)
17
- : 10000;
17
+ : 10_000;
18
18
  async function withTimeout(promise, timeoutInMs, errorMessage) {
19
19
  let timeoutHandle;
20
20
  const timeout = new Promise((resolve, reject) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/threads",
3
- "version": "3.0.11",
3
+ "version": "3.0.13",
4
4
  "description": "Web workers & worker threads as simple as a function call",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -94,7 +94,7 @@
94
94
  "tiny-worker": "^2.3.0",
95
95
  "ts-loader": "^8.4.0",
96
96
  "ts-node": "^9.1.1",
97
- "typescript": "^4.9.5",
97
+ "typescript": "^5.4.2",
98
98
  "wavy": "^1.0.4",
99
99
  "webpack": "^4.47.0",
100
100
  "worker-plugin": "^5.0.1"