@stamprally/server 0.21.0 → 0.22.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @stamprally/server v0.21.0
1
+ # @stamprally/server v0.22.0
2
2
 
3
3
  Web Standard `Request` / `Response` handlers for server-authoritative check-ins and reward claims.
4
4
 
package/dist/index.cjs CHANGED
@@ -1298,8 +1298,12 @@ var StampRallyServer = class {
1298
1298
  );
1299
1299
  const results = [];
1300
1300
  const rejectedCheckIns = /* @__PURE__ */ new Set();
1301
- const operations = [...request.operations ?? []].map((operation, index) => ({ operation, index })).sort(
1302
- (left, right) => operationTimestamp(left.operation) - operationTimestamp(right.operation) || left.index - right.index
1301
+ const operations = core.sortOperationsDeterministically(
1302
+ [...request.operations ?? []].map((operation) => ({
1303
+ operation,
1304
+ operationId: syncOperationId(operation, directRequest.userId),
1305
+ timestamp: operationTimestamp(operation)
1306
+ }))
1303
1307
  ).map(({ operation }) => operation);
1304
1308
  for (const operation of operations) {
1305
1309
  try {