@sigil-dev/plugin-namepool 0.8.5 → 0.9.0

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.
Files changed (2) hide show
  1. package/index.ts +10 -11
  2. package/package.json +2 -2
package/index.ts CHANGED
@@ -1,18 +1,17 @@
1
- // packages/grimoire/src/plugins/namepool.ts
2
1
  import type {
3
2
  GrimoirePlugin,
4
3
  WorkerDescriptor,
5
4
  WorkerEnv,
6
- //@ts-expect-error kill yourself
5
+ //@ts-expect-error the import is there, and tests pass, but fucking LSP cries and bitches
7
6
  } from "@sigil/grimoire";
8
7
 
9
8
  export function namepool(options: { names: string[] }): GrimoirePlugin {
10
- return {
11
- name: "namepool",
12
- onWorkerSpawn(worker: WorkerDescriptor): WorkerEnv {
13
- const name =
14
- options.names[worker.globalIndex] ?? `${worker.mode}-${worker.index}`;
15
- return { name };
16
- },
17
- };
18
- }
9
+ return {
10
+ name: "namepool",
11
+ names: options.names,
12
+ onWorkerSpawn(worker: WorkerDescriptor): WorkerEnv {
13
+ const name = options.names[worker.globalIndex] ?? `${worker.mode}-${worker.index}`;
14
+ return { name };
15
+ },
16
+ };
17
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sigil-dev/plugin-namepool",
3
3
  "module": "index.ts",
4
- "version": "0.8.5",
4
+ "version": "0.9.0",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "devDependencies": {
@@ -9,6 +9,6 @@
9
9
  },
10
10
  "peerDependencies": {
11
11
  "typescript": "^5",
12
- "@sigil-dev/grimoire": "0.8.5"
12
+ "@sigil-dev/grimoire": "0.9.0"
13
13
  }
14
14
  }