@lmzhen/dsh-evolution-state-domain 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 -1
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -191,12 +191,13 @@ function apply(ctx) {
|
|
|
191
191
|
throw error;
|
|
192
192
|
}
|
|
193
193
|
},
|
|
194
|
-
async tryResolvePending(id, status) {
|
|
194
|
+
async tryResolvePending(id, status, expectedClaimId) {
|
|
195
195
|
const table = (await ensure()).table(PENDING_TABLE);
|
|
196
196
|
try {
|
|
197
197
|
const resolved = { record: null };
|
|
198
198
|
const rawRecord = await table.update(id, (current) => {
|
|
199
199
|
if (!canResolvePending(current.status)) return current;
|
|
200
|
+
if (expectedClaimId !== void 0 && current.claimedBy !== expectedClaimId) return current;
|
|
200
201
|
resolved.record = {
|
|
201
202
|
...current,
|
|
202
203
|
status,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-state-domain",
|
|
3
3
|
"description": "storage-domain provider for evolution state (community build)",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.62",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
37
37
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
38
38
|
"@deepseek-ai/dsh-storage-domain": "^0.1.1-rc.2",
|
|
39
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.3.
|
|
39
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.3.62"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
43
43
|
"@deepseek-ai/dsh-storage-domain": "^0.1.1-rc.2",
|
|
44
44
|
"@deepseek-ai/dsh-storage": "^0.1.1-rc.2",
|
|
45
45
|
"@deepseek-ai/dsh-storage-json": "^0.1.1-rc.2",
|
|
46
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.3.
|
|
46
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.3.62"
|
|
47
47
|
}
|
|
48
48
|
}
|