@nyssance/tauri-hasgard 0.6.0-alpha.4 → 0.6.1

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/index.js CHANGED
@@ -152,7 +152,9 @@ class HasgardProcess {
152
152
  try {
153
153
  await this.stopChild();
154
154
  } catch (cleanupError) {
155
- throw new AggregateError([error, cleanupError], "Hasgard launch failed and process cleanup failed");
155
+ throw new AggregateError([error, cleanupError], "Hasgard launch failed and process cleanup failed", {
156
+ cause: cleanupError
157
+ });
156
158
  }
157
159
  throw error;
158
160
  }
@@ -206,7 +208,9 @@ class HasgardProcess {
206
208
  try {
207
209
  await this.stopChild();
208
210
  } catch (cleanupError) {
209
- throw new AggregateError([error, cleanupError], "Hasgard launch failed and process cleanup failed");
211
+ throw new AggregateError([error, cleanupError], "Hasgard launch failed and process cleanup failed", {
212
+ cause: cleanupError
213
+ });
210
214
  }
211
215
  throw error;
212
216
  }
@@ -1067,9 +1071,8 @@ class HasgardWindow {
1067
1071
  };
1068
1072
  }
1069
1073
  async screenshotNative(options) {
1070
- const windowId = options.windowId ?? await this.nativeId();
1071
1074
  const value = expectRecord(await this.rpc.call("screenshot_native", {
1072
- window_id: windowId,
1075
+ ...options.windowId === undefined ? {} : { window_id: options.windowId },
1073
1076
  output_path: options.outputPath
1074
1077
  }), "screenshot_native result");
1075
1078
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyssance/tauri-hasgard",
3
- "version": "0.6.0-alpha.4",
3
+ "version": "0.6.1",
4
4
  "description": "Playwright Test fixtures for native Tauri Hasgard automation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,14 +18,14 @@
18
18
  "NOTICE.md"
19
19
  ],
20
20
  "scripts": {
21
- "build": "bun run clean && bun build src/index.ts src/process-supervisor.js --target node --format esm --outdir dist --packages external && bun node_modules/typescript/bin/tsc -p tsconfig.json --noEmit false --emitDeclarationOnly --declaration true",
21
+ "build": "bun run clean && bun build src/index.ts src/process-supervisor.js --target node --format esm --outdir dist --packages external && bun node_modules/typescript/bin/tsc -p tsconfig.build.json --noEmit false --emitDeclarationOnly --declaration true",
22
22
  "dev": "bun run --parallel dev:js dev:types",
23
23
  "test": "vitest run",
24
24
  "test:watch": "vitest",
25
25
  "typecheck": "bun check --no-script",
26
26
  "clean": "rm -rf dist",
27
27
  "dev:js": "bun build src/index.ts src/process-supervisor.js --target node --format esm --outdir dist --packages external --watch",
28
- "dev:types": "tsc -p tsconfig.json --noEmit false --emitDeclarationOnly --declaration true --watch"
28
+ "dev:types": "tsc -p tsconfig.build.json --noEmit false --emitDeclarationOnly --declaration true --watch"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@playwright/test": ">=1.61.1 <2"
@@ -51,6 +51,6 @@
51
51
  "url": "git+https://github.com/nyssance/tauri-hasgard.git"
52
52
  },
53
53
  "engines": {
54
- "node": ">=20"
54
+ "node": ">=24"
55
55
  }
56
56
  }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};