@drakkar.software/starfish-client 2.1.0 → 2.3.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/bindings/zustand.js +25 -1
- package/dist/bindings/zustand.js.map +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +25 -0
- package/dist/index.js.map +2 -2
- package/dist/sync.d.ts +6 -0
- package/package.json +2 -2
package/dist/sync.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ import { StarfishClient } from "./client.js";
|
|
|
4
4
|
import type { Encryptor } from "./crypto.js";
|
|
5
5
|
import type { SyncLogger } from "./logger.js";
|
|
6
6
|
import type { Validator } from "./validate.js";
|
|
7
|
+
export declare class AbortError extends Error {
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
7
10
|
export interface SyncManagerOptions {
|
|
8
11
|
client: StarfishClient;
|
|
9
12
|
pullPath: string;
|
|
@@ -42,7 +45,10 @@ export declare class SyncManager {
|
|
|
42
45
|
private lastHash;
|
|
43
46
|
private lastCheckpoint;
|
|
44
47
|
private localData;
|
|
48
|
+
private aborted;
|
|
45
49
|
constructor(options: SyncManagerOptions);
|
|
50
|
+
abort(): void;
|
|
51
|
+
get isAborted(): boolean;
|
|
46
52
|
getData(): Record<string, unknown>;
|
|
47
53
|
getHash(): string | null;
|
|
48
54
|
/** Set the last-known server hash. Used by persistence layers to restore state across restarts. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drakkar.software/starfish-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/Drakkar-Software/starfish.git",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@noble/curves": "^2.2.0",
|
|
72
|
-
"@drakkar.software/starfish-protocol": "2.
|
|
72
|
+
"@drakkar.software/starfish-protocol": "2.3.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@legendapp/state": "^2.0.0",
|