@aws-sdk/lib-dynamodb 3.540.0 → 3.552.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 +1 -1
- package/dist-cjs/index.js +13 -6
- package/dist-types/index.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ both input and output:
|
|
|
50
50
|
|
|
51
51
|
## Usage
|
|
52
52
|
|
|
53
|
-
To create document client you need to create DynamoDB client first as follows:
|
|
53
|
+
To create document client, you need to create DynamoDB client first as follows:
|
|
54
54
|
|
|
55
55
|
```js
|
|
56
56
|
import { DynamoDBClient } from "@aws-sdk/client-dynamodb"; // ES6 import
|
package/dist-cjs/index.js
CHANGED
|
@@ -30,6 +30,9 @@ __export(src_exports, {
|
|
|
30
30
|
ExecuteStatementCommand: () => ExecuteStatementCommand,
|
|
31
31
|
ExecuteTransactionCommand: () => ExecuteTransactionCommand,
|
|
32
32
|
GetCommand: () => GetCommand,
|
|
33
|
+
NativeAttributeBinary: () => import_util_dynamodb.NativeAttributeBinary,
|
|
34
|
+
NativeAttributeValue: () => import_util_dynamodb.NativeAttributeValue,
|
|
35
|
+
NativeScalarAttributeValue: () => import_util_dynamodb.NativeScalarAttributeValue,
|
|
33
36
|
NumberValue: () => import_util_dynamodb.NumberValueImpl,
|
|
34
37
|
PaginationConfiguration: () => import_types.PaginationConfiguration,
|
|
35
38
|
PutCommand: () => PutCommand,
|
|
@@ -39,8 +42,10 @@ __export(src_exports, {
|
|
|
39
42
|
TransactWriteCommand: () => TransactWriteCommand,
|
|
40
43
|
UpdateCommand: () => UpdateCommand,
|
|
41
44
|
__Client: () => import_smithy_client.Client,
|
|
45
|
+
marshallOptions: () => import_util_dynamodb.marshallOptions,
|
|
42
46
|
paginateQuery: () => paginateQuery,
|
|
43
|
-
paginateScan: () => paginateScan
|
|
47
|
+
paginateScan: () => paginateScan,
|
|
48
|
+
unmarshallOptions: () => import_util_dynamodb.unmarshallOptions
|
|
44
49
|
});
|
|
45
50
|
module.exports = __toCommonJS(src_exports);
|
|
46
51
|
|
|
@@ -132,12 +137,12 @@ var unmarshallOutput = /* @__PURE__ */ __name((obj, keyNodes, options) => {
|
|
|
132
137
|
// src/baseCommand/DynamoDBDocumentClientCommand.ts
|
|
133
138
|
var _DynamoDBDocumentClientCommand = class _DynamoDBDocumentClientCommand extends import_smithy_client.Command {
|
|
134
139
|
addMarshallingMiddleware(configuration) {
|
|
135
|
-
const { marshallOptions:
|
|
136
|
-
|
|
137
|
-
|
|
140
|
+
const { marshallOptions: marshallOptions3 = {}, unmarshallOptions: unmarshallOptions3 = {} } = configuration.translateConfig || {};
|
|
141
|
+
marshallOptions3.convertTopLevelContainer = marshallOptions3.convertTopLevelContainer ?? true;
|
|
142
|
+
unmarshallOptions3.convertWithoutMapWrapper = unmarshallOptions3.convertWithoutMapWrapper ?? true;
|
|
138
143
|
this.clientCommand.middlewareStack.addRelativeTo(
|
|
139
144
|
(next, context) => async (args) => {
|
|
140
|
-
args.input = marshallInput(this.input, this.inputKeyNodes,
|
|
145
|
+
args.input = marshallInput(this.input, this.inputKeyNodes, marshallOptions3);
|
|
141
146
|
context.dynamoDbDocumentClientOptions = context.dynamoDbDocumentClientOptions || _DynamoDBDocumentClientCommand.defaultLogFilterOverrides;
|
|
142
147
|
const input = args.input;
|
|
143
148
|
context.dynamoDbDocumentClientOptions.overrideInputFilterSensitiveLog = () => {
|
|
@@ -162,7 +167,7 @@ var _DynamoDBDocumentClientCommand = class _DynamoDBDocumentClientCommand extend
|
|
|
162
167
|
var _a;
|
|
163
168
|
return (_a = context.outputFilterSensitiveLog) == null ? void 0 : _a.call(context, output);
|
|
164
169
|
};
|
|
165
|
-
deserialized.output = unmarshallOutput(deserialized.output, this.outputKeyNodes,
|
|
170
|
+
deserialized.output = unmarshallOutput(deserialized.output, this.outputKeyNodes, unmarshallOptions3);
|
|
166
171
|
return deserialized;
|
|
167
172
|
},
|
|
168
173
|
{
|
|
@@ -1025,6 +1030,8 @@ __name(paginateScan, "paginateScan");
|
|
|
1025
1030
|
|
|
1026
1031
|
// src/index.ts
|
|
1027
1032
|
|
|
1033
|
+
|
|
1034
|
+
|
|
1028
1035
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1029
1036
|
|
|
1030
1037
|
0 && (module.exports = {
|
package/dist-types/index.d.ts
CHANGED
|
@@ -3,3 +3,5 @@ export * from "./DynamoDBDocumentClient";
|
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./pagination";
|
|
5
5
|
export { NumberValueImpl as NumberValue } from "@aws-sdk/util-dynamodb";
|
|
6
|
+
export { marshallOptions, unmarshallOptions } from "@aws-sdk/util-dynamodb";
|
|
7
|
+
export { NativeAttributeValue, NativeAttributeBinary, NativeScalarAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
@@ -3,3 +3,9 @@ export * from "./DynamoDBDocumentClient";
|
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./pagination";
|
|
5
5
|
export { NumberValueImpl as NumberValue } from "@aws-sdk/util-dynamodb";
|
|
6
|
+
export { marshallOptions, unmarshallOptions } from "@aws-sdk/util-dynamodb";
|
|
7
|
+
export {
|
|
8
|
+
NativeAttributeValue,
|
|
9
|
+
NativeAttributeBinary,
|
|
10
|
+
NativeScalarAttributeValue,
|
|
11
|
+
} from "@aws-sdk/util-dynamodb";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/lib-dynamodb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.552.0",
|
|
4
4
|
"description": "The document client simplifies working with items in Amazon DynamoDB by abstracting away the notion of attribute values.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/util-dynamodb": "3.
|
|
30
|
-
"@smithy/smithy-client": "^2.5.
|
|
29
|
+
"@aws-sdk/util-dynamodb": "3.552.0",
|
|
30
|
+
"@smithy/smithy-client": "^2.5.1",
|
|
31
31
|
"@smithy/types": "^2.12.0",
|
|
32
32
|
"tslib": "^2.6.2"
|
|
33
33
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@aws-sdk/client-dynamodb": "^3.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
38
|
+
"@aws-sdk/client-dynamodb": "3.552.0",
|
|
39
39
|
"@tsconfig/recommended": "1.0.1",
|
|
40
40
|
"@types/node": "^14.14.31",
|
|
41
41
|
"concurrently": "7.0.0",
|