@lmzhen/dsh-evolution-state 0.3.61 → 0.3.62
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/lib/index.js +2 -2
- package/lib/types/index.d.ts +1 -1
- package/package.json +6 -6
package/lib/index.js
CHANGED
|
@@ -45,8 +45,8 @@ var EvolutionState = class extends Service {
|
|
|
45
45
|
savePending(record) {
|
|
46
46
|
return this.storage().savePending(record);
|
|
47
47
|
}
|
|
48
|
-
tryResolvePending(id, status) {
|
|
49
|
-
return this.storage().tryResolvePending(id, status);
|
|
48
|
+
tryResolvePending(id, status, expectedClaimId) {
|
|
49
|
+
return this.storage().tryResolvePending(id, status, expectedClaimId);
|
|
50
50
|
}
|
|
51
51
|
claimPending(id, claimId) {
|
|
52
52
|
return this.storage().claimPending(id, claimId);
|
package/lib/types/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare class EvolutionState extends Service {
|
|
|
35
35
|
transactCuratorState(task: (current: CuratorStateRecord | null) => CuratorStateRecord | null): Promise<void>;
|
|
36
36
|
listPending(status?: PendingStatus): Promise<PendingRecord[]>;
|
|
37
37
|
savePending(record: PendingRecord): Promise<void>;
|
|
38
|
-
tryResolvePending(id: string, status: 'approved' | 'rejected'): Promise<import("@lmzhen/dsh-evolution-state-storage").PendingResolution>;
|
|
38
|
+
tryResolvePending(id: string, status: 'approved' | 'rejected', expectedClaimId?: string): Promise<import("@lmzhen/dsh-evolution-state-storage").PendingResolution>;
|
|
39
39
|
claimPending(id: string, claimId: string): Promise<PendingRecord | null>;
|
|
40
40
|
releasePendingClaim(id: string, claimId: string): Promise<void>;
|
|
41
41
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-state",
|
|
3
3
|
"description": "Durable evolution state consumer over pluggable storage providers (community build)",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.62",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
37
37
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
38
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.3.
|
|
38
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.3.62"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
42
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.3.
|
|
43
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
44
|
-
"@lmzhen/dsh-evolution-io-node": "^0.3.
|
|
45
|
-
"@lmzhen/dsh-evolution-state-json": "^0.3.
|
|
42
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.3.62",
|
|
43
|
+
"@lmzhen/dsh-evolution-io": "^0.3.62",
|
|
44
|
+
"@lmzhen/dsh-evolution-io-node": "^0.3.62",
|
|
45
|
+
"@lmzhen/dsh-evolution-state-json": "^0.3.62"
|
|
46
46
|
}
|
|
47
47
|
}
|