@sigil-dev/plugin-namepool 0.9.3 → 0.9.5

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