@exabugs/dynamodb-client 1.3.31 → 1.3.33
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/CHANGELOG.md +18 -0
- package/dist/server/handler.cjs +14 -7
- package/dist/server/handler.cjs.map +2 -2
- package/dist/server/handler.d.ts +1 -1
- package/dist/server/handler.js +1 -1
- package/dist/server/operations/parameterConverter.d.ts +1 -1
- package/dist/server/operations/parameterConverter.d.ts.map +1 -1
- package/dist/server/operations/parameterConverter.js +17 -5
- package/dist/server/operations/parameterConverter.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.3.33] - 2026-01-08
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **filterによるupdateOne修正**: `convertUpdateOneParams`が`filter.id`以外のフィールドを正しく処理するように修正
|
|
15
|
+
- ゲストユーザーのデバイス登録失敗問題を解決
|
|
16
|
+
- `updateOne({ filter: { token: 'xxx' } }, ...)`が正しく動作するように修正
|
|
17
|
+
- `filter.id`が存在する場合は従来通り`{ id, data, options }`を返す(後方互換性)
|
|
18
|
+
- `filter.id`が存在しない場合は`{ filter, data, options }`を返す(新しいfilter対応)
|
|
19
|
+
|
|
20
|
+
## [1.3.32] - 2026-01-08
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- **デバッグログ追加**: convertUpdateOneParamsにデバッグログを追加
|
|
25
|
+
- ゲストユーザーのデバイス登録失敗問題の調査のため
|
|
26
|
+
- filter.idが正しく渡されているかを確認
|
|
27
|
+
|
|
10
28
|
## [1.3.31] - 2026-01-08
|
|
11
29
|
|
|
12
30
|
### Fixed
|
package/dist/server/handler.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// @exabugs/dynamodb-client v1.3.
|
|
2
|
-
// Built: 2026-01-
|
|
1
|
+
// @exabugs/dynamodb-client v1.3.33
|
|
2
|
+
// Built: 2026-01-08T12:17:07.872Z
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -33242,13 +33242,20 @@ function convertInsertOneParams(mongoParams) {
|
|
|
33242
33242
|
}
|
|
33243
33243
|
__name(convertInsertOneParams, "convertInsertOneParams");
|
|
33244
33244
|
function convertUpdateOneParams(mongoParams) {
|
|
33245
|
-
|
|
33246
|
-
|
|
33247
|
-
throw new Error("updateOne requires filter.id");
|
|
33245
|
+
if (!mongoParams.filter) {
|
|
33246
|
+
throw new Error("updateOne requires filter");
|
|
33248
33247
|
}
|
|
33249
33248
|
const updateData = mongoParams.update && typeof mongoParams.update === "object" ? "$set" in mongoParams.update ? mongoParams.update.$set || {} : mongoParams.update : {};
|
|
33249
|
+
const id = typeof mongoParams.filter.id === "string" ? mongoParams.filter.id : void 0;
|
|
33250
|
+
if (id) {
|
|
33251
|
+
return {
|
|
33252
|
+
id,
|
|
33253
|
+
data: updateData,
|
|
33254
|
+
options: mongoParams.options
|
|
33255
|
+
};
|
|
33256
|
+
}
|
|
33250
33257
|
return {
|
|
33251
|
-
|
|
33258
|
+
filter: mongoParams.filter,
|
|
33252
33259
|
data: updateData,
|
|
33253
33260
|
options: mongoParams.options
|
|
33254
33261
|
};
|
|
@@ -34791,7 +34798,7 @@ async function handler(event) {
|
|
|
34791
34798
|
return createCorsResponse(HTTP_STATUS.OK);
|
|
34792
34799
|
}
|
|
34793
34800
|
if (event.requestContext.http.method === "GET" && event.requestContext.http.path === "/version") {
|
|
34794
|
-
const version = "1.3.
|
|
34801
|
+
const version = "1.3.33";
|
|
34795
34802
|
return createSuccessResponse({ version, timestamp: (/* @__PURE__ */ new Date()).toISOString() }, requestId);
|
|
34796
34803
|
}
|
|
34797
34804
|
if (event.requestContext.http.method !== "POST") {
|