@aws-sdk/util-dynamodb 3.521.0 → 3.523.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/dist-cjs/index.js +3 -1
- package/dist-es/convertToAttr.js +2 -1
- package/package.json +2 -2
package/dist-cjs/index.js
CHANGED
|
@@ -134,7 +134,9 @@ var convertToAttr = /* @__PURE__ */ __name((data, options) => {
|
|
|
134
134
|
);
|
|
135
135
|
}, "convertToAttr");
|
|
136
136
|
var convertToListAttr = /* @__PURE__ */ __name((data, options) => ({
|
|
137
|
-
L: data.filter(
|
|
137
|
+
L: data.filter(
|
|
138
|
+
(item) => typeof item !== "function" && (!(options == null ? void 0 : options.removeUndefinedValues) || (options == null ? void 0 : options.removeUndefinedValues) && item !== void 0)
|
|
139
|
+
).map((item) => convertToAttr(item, options))
|
|
138
140
|
}), "convertToListAttr");
|
|
139
141
|
var convertToSetAttr = /* @__PURE__ */ __name((set, options) => {
|
|
140
142
|
const setToOperate = (options == null ? void 0 : options.removeUndefinedValues) ? new Set([...set].filter((value) => value !== void 0)) : set;
|
package/dist-es/convertToAttr.js
CHANGED
|
@@ -50,7 +50,8 @@ export const convertToAttr = (data, options) => {
|
|
|
50
50
|
};
|
|
51
51
|
const convertToListAttr = (data, options) => ({
|
|
52
52
|
L: data
|
|
53
|
-
.filter((item) =>
|
|
53
|
+
.filter((item) => typeof item !== "function" &&
|
|
54
|
+
(!options?.removeUndefinedValues || (options?.removeUndefinedValues && item !== undefined)))
|
|
54
55
|
.map((item) => convertToAttr(item, options)),
|
|
55
56
|
});
|
|
56
57
|
const convertToSetAttr = (set, options) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-dynamodb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.523.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-dynamodb",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"tslib": "^2.5.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
27
|
+
"@aws-sdk/client-dynamodb": "3.523.0",
|
|
28
28
|
"@tsconfig/recommended": "1.0.1",
|
|
29
29
|
"concurrently": "7.0.0",
|
|
30
30
|
"downlevel-dts": "0.10.1",
|