desktopr 2.0.3 → 2.1.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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "appUrl": "http://blank.html",
3
- "apiVersion": "2.0.3",
3
+ "apiVersion": "2.1.0",
4
4
  "companionWindowLabelPrefix": "dtr-cache-only-window-"
5
5
  }
@@ -40,7 +40,7 @@ function buildDiagnosticsTestFunctions(core) {
40
40
  throw new Error("DEV: test JS error");
41
41
  },
42
42
  testPanicRust: () => core.invoke("dtr_logs_test_panic", {}),
43
- testExportZip: (path) => core.invoke("dtr_logs_export_zip", { target_zip_path: path }),
43
+ testExportZip: () => core.invoke("dtr_logs_export_zip", {}),
44
44
  testForceRetention: (area) => core.invoke("dtr_logs_test_force_retention", { area }),
45
45
  };
46
46
  }
@@ -38,7 +38,7 @@ function buildDiagnostics(core) {
38
38
  // qui avevi chiamato dtr_logs_read_file: correggo su dtr_logs_list_files
39
39
  listRecordsFiles: (area) => core.invoke("dtr_logs_list_files", { area }),
40
40
  runRetention: () => core.invoke("dtr_logs_run_retention", {}),
41
- export: (targetZipPath) => core.invoke("dtr_logs_export_zip", { targetZipPath }),
41
+ export: () => core.invoke("dtr_logs_export_zip", {}),
42
42
  test: (0, _helpers_1.buildDiagnosticsTestFunctions)(core),
43
43
  };
44
44
  }
@@ -13,7 +13,7 @@ export interface DiagnosticsInterface {
13
13
  readRecordsFile: (relPath: string) => Promise<string>;
14
14
  listRecordsFiles: (area: DiagnosticsArea) => Promise<ListedFile[]>;
15
15
  runRetention: () => Promise<void>;
16
- export: (targetZipPath: string) => Promise<void>;
16
+ export: () => Promise<string>;
17
17
  test: DiagnosticsTestFunctions;
18
18
  }
19
19
  export type DiagnosticsArea = "logs" | "crashes" | "runtime";
@@ -21,7 +21,7 @@ export type DiagnosticsTestFunctions = {
21
21
  testGenerateRecords: (n?: number) => Promise<void>;
22
22
  testThrowJsError: () => Promise<never>;
23
23
  testPanicRust: () => Promise<void>;
24
- testExportZip: (path: string) => Promise<void>;
24
+ testExportZip: () => Promise<string>;
25
25
  testForceRetention: (area: DiagnosticsArea) => Promise<void>;
26
26
  };
27
27
  export type ErrorPayload = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "desktopr",
3
- "version": "2.0.3",
3
+ "version": "2.1.0",
4
4
  "description": "Official JS/TS SDK for the Desktopr native bridge",
5
5
  "main": "dist-sdk/sdk/index.js",
6
6
  "types": "dist-sdk/sdk/index.d.ts",