@xylabs/threads 4.11.10 → 4.11.11

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.
@@ -6,11 +6,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
6
6
  });
7
7
 
8
8
  // src/master/implementation.node.ts
9
- import { EventEmitter } from "node:events";
10
- import { cpus } from "node:os";
11
- import path from "node:path";
12
- import { cwd } from "node:process";
13
- import { Worker as NativeWorker } from "node:worker_threads";
9
+ import { EventEmitter } from "events";
10
+ import { cpus } from "os";
11
+ import path from "path";
12
+ import { cwd } from "process";
13
+ import { Worker as NativeWorker } from "worker_threads";
14
14
  var defaultPoolSize = cpus().length;
15
15
  function resolveScriptPath(scriptPath, baseURL) {
16
16
  const makeAbsolute = (filePath) => {
@@ -57,11 +57,11 @@ function serialize(input) {
57
57
  }
58
58
 
59
59
  // src/master/implementation.node.ts
60
- import { EventEmitter } from "node:events";
61
- import { cpus } from "node:os";
62
- import path from "node:path";
63
- import { cwd } from "node:process";
64
- import { Worker as NativeWorker } from "node:worker_threads";
60
+ import { EventEmitter } from "events";
61
+ import { cpus } from "os";
62
+ import path from "path";
63
+ import { cwd } from "process";
64
+ import { Worker as NativeWorker } from "worker_threads";
65
65
  var defaultPoolSize = cpus().length;
66
66
  function resolveScriptPath(scriptPath, baseURL) {
67
67
  const makeAbsolute = (filePath) => {
@@ -6,11 +6,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
6
6
  });
7
7
 
8
8
  // src/master/implementation.node.ts
9
- import { EventEmitter } from "node:events";
10
- import { cpus } from "node:os";
11
- import path from "node:path";
12
- import { cwd } from "node:process";
13
- import { Worker as NativeWorker } from "node:worker_threads";
9
+ import { EventEmitter } from "events";
10
+ import { cpus } from "os";
11
+ import path from "path";
12
+ import { cwd } from "process";
13
+ import { Worker as NativeWorker } from "worker_threads";
14
14
  var defaultPoolSize = cpus().length;
15
15
  function resolveScriptPath(scriptPath, baseURL) {
16
16
  const makeAbsolute = (filePath) => {
@@ -6,11 +6,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
6
6
  });
7
7
 
8
8
  // src/master/implementation.node.ts
9
- import { EventEmitter } from "node:events";
10
- import { cpus } from "node:os";
11
- import path from "node:path";
12
- import { cwd } from "node:process";
13
- import { Worker as NativeWorker } from "node:worker_threads";
9
+ import { EventEmitter } from "events";
10
+ import { cpus } from "os";
11
+ import path from "path";
12
+ import { cwd } from "process";
13
+ import { Worker as NativeWorker } from "worker_threads";
14
14
  var defaultPoolSize = cpus().length;
15
15
  function resolveScriptPath(scriptPath, baseURL) {
16
16
  const makeAbsolute = (filePath) => {
@@ -14,11 +14,11 @@ import {
14
14
  } from "observable-fns";
15
15
 
16
16
  // src/master/implementation.node.ts
17
- import { EventEmitter } from "node:events";
18
- import { cpus } from "node:os";
19
- import path from "node:path";
20
- import { cwd } from "node:process";
21
- import { Worker as NativeWorker } from "node:worker_threads";
17
+ import { EventEmitter } from "events";
18
+ import { cpus } from "os";
19
+ import path from "path";
20
+ import { cwd } from "process";
21
+ import { Worker as NativeWorker } from "worker_threads";
22
22
  var defaultPoolSize = cpus().length;
23
23
  function resolveScriptPath(scriptPath, baseURL) {
24
24
  const makeAbsolute = (filePath) => {
@@ -1,5 +1,5 @@
1
1
  // src/worker/worker.node.ts
2
- import { parentPort as optionalParentPort } from "node:worker_threads";
2
+ import { parentPort as optionalParentPort } from "worker_threads";
3
3
  import { assertEx } from "@xylabs/assert";
4
4
 
5
5
  // src/worker/expose.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/threads",
3
- "version": "4.11.10",
3
+ "version": "4.11.11",
4
4
  "description": "Web workers & worker threads as simple as a function call",
5
5
  "keywords": [
6
6
  "thread",
@@ -109,7 +109,7 @@
109
109
  "LICENSE"
110
110
  ],
111
111
  "dependencies": {
112
- "@xylabs/assert": "^4.11.10",
112
+ "@xylabs/assert": "^4.11.11",
113
113
  "debug": "^4.4.1",
114
114
  "is-observable-2-1-0": "npm:is-observable@2.1.0",
115
115
  "observable-fns": "^0.6.1"
@@ -117,8 +117,8 @@
117
117
  "devDependencies": {
118
118
  "@types/debug": "^4.1.12",
119
119
  "@types/node": "^22.15.29",
120
- "@xylabs/eslint-config-flat": "^6.5.7",
121
- "@xylabs/ts-scripts-yarn3": "^6.5.7",
120
+ "@xylabs/eslint-config-flat": "^6.5.8",
121
+ "@xylabs/ts-scripts-yarn3": "^6.5.8",
122
122
  "typescript": "^5.8.3"
123
123
  },
124
124
  "publishConfig": {