@altano/tiny-async-pool 3.0.0 → 3.0.2

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/doWork.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type IterableItem } from "./doWorkAndYield";
1
+ import { type IterableItem } from "./doWorkAndYield.js";
2
2
  /**
3
3
  * Process items from `iterable` in batches.
4
4
  */
package/dist/doWork.js CHANGED
@@ -1,4 +1,4 @@
1
- import { doWorkAndYield } from "./doWorkAndYield";
1
+ import { doWorkAndYield } from "./doWorkAndYield.js";
2
2
  async function doWork(concurrentCount, iterable, iteratorFn) {
3
3
  for await (const _result of doWorkAndYield(
4
4
  concurrentCount,
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./doWork";
2
- export * from "./doWorkAndYield";
1
+ export * from "./doWork.js";
2
+ export * from "./doWorkAndYield.js";
3
3
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./doWork";
2
- export * from "./doWorkAndYield";
1
+ export * from "./doWork.js";
2
+ export * from "./doWorkAndYield.js";
package/package.json CHANGED
@@ -1,21 +1,7 @@
1
1
  {
2
2
  "name": "@altano/tiny-async-pool",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Run multiple promise-returning & async functions with limited concurrency using native ES9",
5
- "types": "./dist/index.d.ts",
6
- "exports": "./dist/index.js",
7
- "type": "module",
8
- "sideEffects": false,
9
- "files": [
10
- "dist/**/*.js",
11
- "dist/**/*.d.ts"
12
- ],
13
- "repository": {
14
- "type": "git",
15
- "url": "https://github.com/altano/npm-packages",
16
- "directory": "packages/tiny-async-pool"
17
- },
18
- "homepage": "https://github.com/altano/npm-packages/tree/main/packages/tiny-async-pool",
19
5
  "keywords": [
20
6
  "race",
21
7
  "concurrency",
@@ -26,6 +12,13 @@
26
12
  "async generator",
27
13
  "es9"
28
14
  ],
15
+ "homepage": "https://github.com/altano/npm-packages/tree/main/packages/tiny-async-pool",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/altano/npm-packages",
19
+ "directory": "packages/tiny-async-pool"
20
+ },
21
+ "license": "MIT",
29
22
  "author": {
30
23
  "name": "Alan Norbauer",
31
24
  "email": "altano@gmail.com",
@@ -34,20 +27,27 @@
34
27
  "contributors": [
35
28
  "Rafael Xavier de Souza"
36
29
  ],
37
- "license": "MIT",
30
+ "sideEffects": false,
31
+ "type": "module",
32
+ "exports": "./dist/index.js",
33
+ "types": "./dist/index.d.ts",
34
+ "files": [
35
+ "dist/**/*.js",
36
+ "dist/**/*.d.ts"
37
+ ],
38
38
  "devDependencies": {
39
- "@types/node": "^20.11.25",
40
- "@vitest/coverage-v8": "^1.4.0",
41
- "@vitest/ui": "^1.3.1",
42
- "chai": "^4.4.1",
43
- "chai-as-promised": "^7.1.1",
44
- "eslint": "^8.57.0",
45
- "mocha": "^10.3.0",
46
- "prettier": "^3.2.5",
47
- "typescript": "^5.4.2",
48
- "vitest": "^1.4.0",
49
- "@altano/tsconfig": "0.0.0",
50
- "eslint-config-altano": "0.0.0"
39
+ "@arethetypeswrong/cli": "^0.15.4",
40
+ "@types/node": "^22.13.10",
41
+ "@vitest/coverage-v8": "^3.0.9",
42
+ "depcheck": "^1.4.7",
43
+ "eslint": "^9.22.0",
44
+ "prettier": "^3.3.3",
45
+ "typescript": "^5.8.2",
46
+ "vite": "^6.2.3",
47
+ "vitest": "^3.0.9",
48
+ "@altano/build-config": "0.0.0",
49
+ "@altano/testing": "0.0.0",
50
+ "@altano/tsconfig": "0.0.0"
51
51
  },
52
52
  "publishConfig": {
53
53
  "access": "public"
@@ -55,16 +55,18 @@
55
55
  "scripts": {
56
56
  "build": "tsup --config build-config/tsup.config.node.ts",
57
57
  "build:types": "tsc --project tsconfig.declarations.json",
58
+ "check:exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
59
+ "check:types:src": "tsc --noEmit",
60
+ "check:types:test": "tsc --noEmit --project ./tests/tsconfig.json",
61
+ "check:unused-dependencies": "depcheck",
58
62
  "clean": "rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist",
59
63
  "dev": "pnpm run build --watch",
60
64
  "format": "prettier --check src",
61
65
  "format:fix": "prettier --write src",
62
- "lint": "eslint package.json src/**/*.ts*",
66
+ "lint": "eslint",
63
67
  "lint:fix": "TIMING=1 pnpm lint --fix",
64
68
  "lint:timing": "TIMING=1 pnpm lint",
65
69
  "test:unit": "vitest --run",
66
- "test:unit:watch": "vitest",
67
- "typecheck:src": "tsc --noEmit",
68
- "typecheck:test": "tsc --noEmit --project ./tests/tsconfig.json"
70
+ "test:unit:watch": "vitest"
69
71
  }
70
72
  }