stardust-parallel-js 1.0.2 → 1.0.4

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/dist/Thread.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Worker } from "node:worker_threads";
2
- import { createWorker } from "@/utils/workerFactory.js";
2
+ import { createWorker } from "./utils/workerFactory.js";
3
3
  class Thread {
4
4
  worker;
5
5
  promise;
@@ -1,5 +1,5 @@
1
1
  import { Worker } from "node:worker_threads";
2
- import { createWorker } from "@/utils/workerFactory.js";
2
+ import { createWorker } from "./utils/workerFactory.js";
3
3
  import { Queue } from "@datastructures-js/queue";
4
4
  export class ThreadPool {
5
5
  size;
@@ -1,4 +1,4 @@
1
- import { Thread } from "@/Thread.js";
1
+ import { Thread } from "../Thread.js";
2
2
  async function main() {
3
3
  console.log("🚀 Запуск примера с потоками...\n");
4
4
  // Создаем поток для выполнения тяжелых вычислений
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { ThreadPool } from "@/primitives/ThreadPool.js";
2
- export { Thread } from "@/primitives/Thread.js";
1
+ export { ThreadPool } from "./primitives/ThreadPool.js";
2
+ export { Thread } from "./primitives/Thread.js";
3
3
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { ThreadPool } from "@/primitives/ThreadPool.js";
2
- export { Thread } from "@/primitives/Thread.js";
1
+ export { ThreadPool } from "./primitives/ThreadPool.js";
2
+ export { Thread } from "./primitives/Thread.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { Worker } from "node:worker_threads";
2
- import { createWorker } from "@/utils/workerFactory.js";
2
+ import { createWorker } from "../utils/workerFactory.js";
3
3
  class Thread {
4
4
  worker;
5
5
  promise;
@@ -1,5 +1,5 @@
1
1
  import { Worker } from "node:worker_threads";
2
- import { createWorker } from "@/utils/workerFactory.js";
2
+ import { createWorker } from "../utils/workerFactory.js";
3
3
  import { Queue } from "@datastructures-js/queue";
4
4
  export class ThreadPool {
5
5
  size;
package/package.json CHANGED
@@ -1,55 +1,55 @@
1
- {
2
- "name": "stardust-parallel-js",
3
- "version": "1.0.2",
4
- "description": "Simple parallel execution library for Node.js using Worker Threads. Execute CPU-intensive tasks with thread pools and isolated workers. Supports both regular and arrow functions.",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "files": [
8
- "dist",
9
- "README.md"
10
- ],
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/b1411/parallel.js.git"
14
- },
15
- "engines": {
16
- "node": ">=14.0.0"
17
- },
18
- "type": "module",
19
- "scripts": {
20
- "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
21
- "test:coverage": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage",
22
- "build": "tsc -p ."
23
- },
24
- "keywords": [
25
- "parallel",
26
- "worker",
27
- "threads",
28
- "worker-threads",
29
- "pool",
30
- "threadpool",
31
- "async",
32
- "concurrent",
33
- "cpu",
34
- "performance",
35
- "multithread",
36
- "typescript"
37
- ],
38
- "author": "b1411",
39
- "license": "MIT",
40
- "packageManager": "pnpm@10.23.0",
41
- "devDependencies": {
42
- "@eslint/js": "^9.39.2",
43
- "@types/jest": "^30.0.0",
44
- "@types/node": "^25.0.8",
45
- "eslint": "^9.39.2",
46
- "jest": "^30.2.0",
47
- "ts-jest": "^29.4.6",
48
- "tsx": "^4.21.0",
49
- "typescript": "^5.9.3",
50
- "typescript-eslint": "^8.53.0"
51
- },
52
- "dependencies": {
53
- "@datastructures-js/queue": "^4.3.0"
54
- }
55
- }
1
+ {
2
+ "name": "stardust-parallel-js",
3
+ "version": "1.0.4",
4
+ "description": "Simple parallel execution library for Node.js using Worker Threads. Execute CPU-intensive tasks with thread pools and isolated workers. Supports both regular and arrow functions.",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "README.md"
10
+ ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/b1411/parallel.js.git"
14
+ },
15
+ "engines": {
16
+ "node": ">=14.0.0"
17
+ },
18
+ "type": "module",
19
+ "keywords": [
20
+ "parallel",
21
+ "worker",
22
+ "threads",
23
+ "worker-threads",
24
+ "pool",
25
+ "threadpool",
26
+ "async",
27
+ "concurrent",
28
+ "cpu",
29
+ "performance",
30
+ "multithread",
31
+ "typescript"
32
+ ],
33
+ "author": "b1411",
34
+ "license": "MIT",
35
+ "devDependencies": {
36
+ "@eslint/js": "^9.39.2",
37
+ "@types/jest": "^30.0.0",
38
+ "@types/node": "^25.0.8",
39
+ "eslint": "^9.39.2",
40
+ "jest": "^30.2.0",
41
+ "ts-jest": "^29.4.6",
42
+ "tsc-alias": "^1.8.16",
43
+ "tsx": "^4.21.0",
44
+ "typescript": "^5.9.3",
45
+ "typescript-eslint": "^8.53.0"
46
+ },
47
+ "dependencies": {
48
+ "@datastructures-js/queue": "^4.3.0"
49
+ },
50
+ "scripts": {
51
+ "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
52
+ "test:coverage": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage",
53
+ "build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json"
54
+ }
55
+ }