@syncular/tauri 0.3.0 → 0.4.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.
package/dist/index.js CHANGED
@@ -269,7 +269,7 @@ export class TauriSyncClient {
269
269
  const result = (await this.#command('windowState', {
270
270
  base: base,
271
271
  }));
272
- return { units: result.units };
272
+ return { units: result.units, pending: result.pending };
273
273
  }
274
274
  async sync() {
275
275
  return this.#command('sync', {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncular/tauri",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Tauri integration for the Syncular client",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Benjamin Kniffler",
@@ -48,7 +48,7 @@
48
48
  "test": "bun test"
49
49
  },
50
50
  "dependencies": {
51
- "@syncular/client": "0.2.1"
51
+ "@syncular/client": "0.3.1"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@tauri-apps/api": ">=2.0.0"
@@ -59,6 +59,6 @@
59
59
  }
60
60
  },
61
61
  "devDependencies": {
62
- "@syncular/react": "0.2.1"
62
+ "@syncular/react": "0.3.1"
63
63
  }
64
64
  }
package/src/index.ts CHANGED
@@ -409,8 +409,8 @@ export class TauriSyncClient {
409
409
  async windowState(base: WindowBase): Promise<WindowState> {
410
410
  const result = (await this.#command('windowState', {
411
411
  base: base as unknown as Record<string, unknown>,
412
- })) as { units: string[] };
413
- return { units: result.units };
412
+ })) as { units: string[]; pending: string[] };
413
+ return { units: result.units, pending: result.pending };
414
414
  }
415
415
 
416
416
  async sync(): Promise<unknown> {