@exabugs/dynamodb-client 1.4.16 → 1.4.17
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/server/handler.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// @exabugs/dynamodb-client v1.4.
|
|
2
|
-
// Built: 2026-04-
|
|
1
|
+
// @exabugs/dynamodb-client v1.4.17
|
|
2
|
+
// Built: 2026-04-25T05:17:24.229Z
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -31298,7 +31298,10 @@ async function handleFind(resource, params, requestId) {
|
|
|
31298
31298
|
pagination: normalizedParams.pagination,
|
|
31299
31299
|
filterCount: normalizedParams.parsedFilters.length
|
|
31300
31300
|
});
|
|
31301
|
-
|
|
31301
|
+
const hasIdInFilter = normalizedParams.parsedFilters.some(
|
|
31302
|
+
(f4) => f4.parsed.field === "id" && f4.parsed.operator === "$in"
|
|
31303
|
+
);
|
|
31304
|
+
if (normalizedParams.sort.field === "id" || hasIdInFilter) {
|
|
31302
31305
|
return executeIdQuery(resource, normalizedParams, requestId);
|
|
31303
31306
|
}
|
|
31304
31307
|
return executeShadowQuery(resource, normalizedParams, requestId);
|
|
@@ -34556,7 +34559,7 @@ async function handler(event) {
|
|
|
34556
34559
|
return createCorsResponse(HTTP_STATUS.OK);
|
|
34557
34560
|
}
|
|
34558
34561
|
if (event.requestContext.http.method === "GET" && event.requestContext.http.path === "/version") {
|
|
34559
|
-
const version = "1.4.
|
|
34562
|
+
const version = "1.4.17";
|
|
34560
34563
|
return createSuccessResponse({ version, timestamp: (/* @__PURE__ */ new Date()).toISOString() }, requestId);
|
|
34561
34564
|
}
|
|
34562
34565
|
if (event.requestContext.http.method !== "POST") {
|