@aws-sdk/lib-dynamodb 3.54.1 → 3.58.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/CHANGELOG.md +24 -0
- package/dist-cjs/commands/BatchExecuteStatementCommand.js +2 -2
- package/dist-cjs/commands/BatchGetCommand.js +2 -2
- package/dist-cjs/commands/BatchWriteCommand.js +2 -2
- package/dist-cjs/commands/DeleteCommand.js +2 -2
- package/dist-cjs/commands/ExecuteStatementCommand.js +2 -2
- package/dist-cjs/commands/ExecuteTransactionCommand.js +2 -2
- package/dist-cjs/commands/GetCommand.js +2 -2
- package/dist-cjs/commands/PutCommand.js +2 -2
- package/dist-cjs/commands/QueryCommand.js +2 -2
- package/dist-cjs/commands/ScanCommand.js +2 -2
- package/dist-cjs/commands/TransactGetCommand.js +2 -2
- package/dist-cjs/commands/TransactWriteCommand.js +2 -2
- package/dist-cjs/commands/UpdateCommand.js +2 -2
- package/dist-cjs/commands/utils.js +2 -2
- package/dist-es/DynamoDBDocument.js +13 -13
- package/dist-es/pagination/QueryPaginator.js +4 -4
- package/dist-es/pagination/ScanPaginator.js +4 -4
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.58.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.57.0...v3.58.0) (2022-03-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/lib-dynamodb
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/lib-dynamodb
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/lib-dynamodb
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @aws-sdk/lib-dynamodb
|
|
@@ -13,13 +13,13 @@ class BatchExecuteStatementCommand extends smithy_client_1.Command {
|
|
|
13
13
|
}
|
|
14
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
15
15
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
16
|
-
const command = new client_dynamodb_1.BatchExecuteStatementCommand(utils_1.marshallInput(this.input, this.inputKeyNodes, marshallOptions));
|
|
16
|
+
const command = new client_dynamodb_1.BatchExecuteStatementCommand((0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions));
|
|
17
17
|
const handler = command.resolveMiddleware(clientStack, configuration, options);
|
|
18
18
|
return async () => {
|
|
19
19
|
const data = await handler(command);
|
|
20
20
|
return {
|
|
21
21
|
...data,
|
|
22
|
-
output: utils_1.unmarshallOutput(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
22
|
+
output: (0, utils_1.unmarshallOutput)(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
}
|
|
@@ -28,13 +28,13 @@ class BatchGetCommand extends smithy_client_1.Command {
|
|
|
28
28
|
}
|
|
29
29
|
resolveMiddleware(clientStack, configuration, options) {
|
|
30
30
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
31
|
-
const command = new client_dynamodb_1.BatchGetItemCommand(utils_1.marshallInput(this.input, this.inputKeyNodes, marshallOptions));
|
|
31
|
+
const command = new client_dynamodb_1.BatchGetItemCommand((0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions));
|
|
32
32
|
const handler = command.resolveMiddleware(clientStack, configuration, options);
|
|
33
33
|
return async () => {
|
|
34
34
|
const data = await handler(command);
|
|
35
35
|
return {
|
|
36
36
|
...data,
|
|
37
|
-
output: utils_1.unmarshallOutput(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
37
|
+
output: (0, utils_1.unmarshallOutput)(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -39,13 +39,13 @@ class BatchWriteCommand extends smithy_client_1.Command {
|
|
|
39
39
|
}
|
|
40
40
|
resolveMiddleware(clientStack, configuration, options) {
|
|
41
41
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
42
|
-
const command = new client_dynamodb_1.BatchWriteItemCommand(utils_1.marshallInput(this.input, this.inputKeyNodes, marshallOptions));
|
|
42
|
+
const command = new client_dynamodb_1.BatchWriteItemCommand((0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions));
|
|
43
43
|
const handler = command.resolveMiddleware(clientStack, configuration, options);
|
|
44
44
|
return async () => {
|
|
45
45
|
const data = await handler(command);
|
|
46
46
|
return {
|
|
47
47
|
...data,
|
|
48
|
-
output: utils_1.unmarshallOutput(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
48
|
+
output: (0, utils_1.unmarshallOutput)(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
}
|
|
@@ -25,13 +25,13 @@ class DeleteCommand extends smithy_client_1.Command {
|
|
|
25
25
|
}
|
|
26
26
|
resolveMiddleware(clientStack, configuration, options) {
|
|
27
27
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
28
|
-
const command = new client_dynamodb_1.DeleteItemCommand(utils_1.marshallInput(this.input, this.inputKeyNodes, marshallOptions));
|
|
28
|
+
const command = new client_dynamodb_1.DeleteItemCommand((0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions));
|
|
29
29
|
const handler = command.resolveMiddleware(clientStack, configuration, options);
|
|
30
30
|
return async () => {
|
|
31
31
|
const data = await handler(command);
|
|
32
32
|
return {
|
|
33
33
|
...data,
|
|
34
|
-
output: utils_1.unmarshallOutput(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
34
|
+
output: (0, utils_1.unmarshallOutput)(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
}
|
|
@@ -13,13 +13,13 @@ class ExecuteStatementCommand extends smithy_client_1.Command {
|
|
|
13
13
|
}
|
|
14
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
15
15
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
16
|
-
const command = new client_dynamodb_1.ExecuteStatementCommand(utils_1.marshallInput(this.input, this.inputKeyNodes, marshallOptions));
|
|
16
|
+
const command = new client_dynamodb_1.ExecuteStatementCommand((0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions));
|
|
17
17
|
const handler = command.resolveMiddleware(clientStack, configuration, options);
|
|
18
18
|
return async () => {
|
|
19
19
|
const data = await handler(command);
|
|
20
20
|
return {
|
|
21
21
|
...data,
|
|
22
|
-
output: utils_1.unmarshallOutput(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
22
|
+
output: (0, utils_1.unmarshallOutput)(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
}
|
|
@@ -13,13 +13,13 @@ class ExecuteTransactionCommand extends smithy_client_1.Command {
|
|
|
13
13
|
}
|
|
14
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
15
15
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
16
|
-
const command = new client_dynamodb_1.ExecuteTransactionCommand(utils_1.marshallInput(this.input, this.inputKeyNodes, marshallOptions));
|
|
16
|
+
const command = new client_dynamodb_1.ExecuteTransactionCommand((0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions));
|
|
17
17
|
const handler = command.resolveMiddleware(clientStack, configuration, options);
|
|
18
18
|
return async () => {
|
|
19
19
|
const data = await handler(command);
|
|
20
20
|
return {
|
|
21
21
|
...data,
|
|
22
|
-
output: utils_1.unmarshallOutput(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
22
|
+
output: (0, utils_1.unmarshallOutput)(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
}
|
|
@@ -13,13 +13,13 @@ class GetCommand extends smithy_client_1.Command {
|
|
|
13
13
|
}
|
|
14
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
15
15
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
16
|
-
const command = new client_dynamodb_1.GetItemCommand(utils_1.marshallInput(this.input, this.inputKeyNodes, marshallOptions));
|
|
16
|
+
const command = new client_dynamodb_1.GetItemCommand((0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions));
|
|
17
17
|
const handler = command.resolveMiddleware(clientStack, configuration, options);
|
|
18
18
|
return async () => {
|
|
19
19
|
const data = await handler(command);
|
|
20
20
|
return {
|
|
21
21
|
...data,
|
|
22
|
-
output: utils_1.unmarshallOutput(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
22
|
+
output: (0, utils_1.unmarshallOutput)(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
}
|
|
@@ -25,13 +25,13 @@ class PutCommand extends smithy_client_1.Command {
|
|
|
25
25
|
}
|
|
26
26
|
resolveMiddleware(clientStack, configuration, options) {
|
|
27
27
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
28
|
-
const command = new client_dynamodb_1.PutItemCommand(utils_1.marshallInput(this.input, this.inputKeyNodes, marshallOptions));
|
|
28
|
+
const command = new client_dynamodb_1.PutItemCommand((0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions));
|
|
29
29
|
const handler = command.resolveMiddleware(clientStack, configuration, options);
|
|
30
30
|
return async () => {
|
|
31
31
|
const data = await handler(command);
|
|
32
32
|
return {
|
|
33
33
|
...data,
|
|
34
|
-
output: utils_1.unmarshallOutput(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
34
|
+
output: (0, utils_1.unmarshallOutput)(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
}
|
|
@@ -28,13 +28,13 @@ class QueryCommand extends smithy_client_1.Command {
|
|
|
28
28
|
}
|
|
29
29
|
resolveMiddleware(clientStack, configuration, options) {
|
|
30
30
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
31
|
-
const command = new client_dynamodb_1.QueryCommand(utils_1.marshallInput(this.input, this.inputKeyNodes, marshallOptions));
|
|
31
|
+
const command = new client_dynamodb_1.QueryCommand((0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions));
|
|
32
32
|
const handler = command.resolveMiddleware(clientStack, configuration, options);
|
|
33
33
|
return async () => {
|
|
34
34
|
const data = await handler(command);
|
|
35
35
|
return {
|
|
36
36
|
...data,
|
|
37
|
-
output: utils_1.unmarshallOutput(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
37
|
+
output: (0, utils_1.unmarshallOutput)(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -22,13 +22,13 @@ class ScanCommand extends smithy_client_1.Command {
|
|
|
22
22
|
}
|
|
23
23
|
resolveMiddleware(clientStack, configuration, options) {
|
|
24
24
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
25
|
-
const command = new client_dynamodb_1.ScanCommand(utils_1.marshallInput(this.input, this.inputKeyNodes, marshallOptions));
|
|
25
|
+
const command = new client_dynamodb_1.ScanCommand((0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions));
|
|
26
26
|
const handler = command.resolveMiddleware(clientStack, configuration, options);
|
|
27
27
|
return async () => {
|
|
28
28
|
const data = await handler(command);
|
|
29
29
|
return {
|
|
30
30
|
...data,
|
|
31
|
-
output: utils_1.unmarshallOutput(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
31
|
+
output: (0, utils_1.unmarshallOutput)(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
}
|
|
@@ -13,13 +13,13 @@ class TransactGetCommand extends smithy_client_1.Command {
|
|
|
13
13
|
}
|
|
14
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
15
15
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
16
|
-
const command = new client_dynamodb_1.TransactGetItemsCommand(utils_1.marshallInput(this.input, this.inputKeyNodes, marshallOptions));
|
|
16
|
+
const command = new client_dynamodb_1.TransactGetItemsCommand((0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions));
|
|
17
17
|
const handler = command.resolveMiddleware(clientStack, configuration, options);
|
|
18
18
|
return async () => {
|
|
19
19
|
const data = await handler(command);
|
|
20
20
|
return {
|
|
21
21
|
...data,
|
|
22
|
-
output: utils_1.unmarshallOutput(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
22
|
+
output: (0, utils_1.unmarshallOutput)(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
}
|
|
@@ -30,13 +30,13 @@ class TransactWriteCommand extends smithy_client_1.Command {
|
|
|
30
30
|
}
|
|
31
31
|
resolveMiddleware(clientStack, configuration, options) {
|
|
32
32
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
33
|
-
const command = new client_dynamodb_1.TransactWriteItemsCommand(utils_1.marshallInput(this.input, this.inputKeyNodes, marshallOptions));
|
|
33
|
+
const command = new client_dynamodb_1.TransactWriteItemsCommand((0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions));
|
|
34
34
|
const handler = command.resolveMiddleware(clientStack, configuration, options);
|
|
35
35
|
return async () => {
|
|
36
36
|
const data = await handler(command);
|
|
37
37
|
return {
|
|
38
38
|
...data,
|
|
39
|
-
output: utils_1.unmarshallOutput(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
39
|
+
output: (0, utils_1.unmarshallOutput)(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -31,13 +31,13 @@ class UpdateCommand extends smithy_client_1.Command {
|
|
|
31
31
|
}
|
|
32
32
|
resolveMiddleware(clientStack, configuration, options) {
|
|
33
33
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
34
|
-
const command = new client_dynamodb_1.UpdateItemCommand(utils_1.marshallInput(this.input, this.inputKeyNodes, marshallOptions));
|
|
34
|
+
const command = new client_dynamodb_1.UpdateItemCommand((0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions));
|
|
35
35
|
const handler = command.resolveMiddleware(clientStack, configuration, options);
|
|
36
36
|
return async () => {
|
|
37
37
|
const data = await handler(command);
|
|
38
38
|
return {
|
|
39
39
|
...data,
|
|
40
|
-
output: utils_1.unmarshallOutput(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
40
|
+
output: (0, utils_1.unmarshallOutput)(data.output, this.outputKeyNodes, unmarshallOptions),
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -33,12 +33,12 @@ const processAllKeysInObj = (obj, processFunc, children) => Object.entries(obj).
|
|
|
33
33
|
[key]: processKeyInObj(value, processFunc, children),
|
|
34
34
|
}), {});
|
|
35
35
|
const marshallInput = (obj, keyNodes, options) => {
|
|
36
|
-
const marshallFunc = (toMarshall) => util_dynamodb_1.marshall(toMarshall, options);
|
|
36
|
+
const marshallFunc = (toMarshall) => (0, util_dynamodb_1.marshall)(toMarshall, options);
|
|
37
37
|
return processKeysInObj(obj, marshallFunc, keyNodes);
|
|
38
38
|
};
|
|
39
39
|
exports.marshallInput = marshallInput;
|
|
40
40
|
const unmarshallOutput = (obj, keyNodes, options) => {
|
|
41
|
-
const unmarshallFunc = (toMarshall) => util_dynamodb_1.unmarshall(toMarshall, options);
|
|
41
|
+
const unmarshallFunc = (toMarshall) => (0, util_dynamodb_1.unmarshall)(toMarshall, options);
|
|
42
42
|
return processKeysInObj(obj, unmarshallFunc, keyNodes);
|
|
43
43
|
};
|
|
44
44
|
exports.unmarshallOutput = unmarshallOutput;
|
|
@@ -28,7 +28,7 @@ var DynamoDBDocument = (function (_super) {
|
|
|
28
28
|
}
|
|
29
29
|
else if (typeof cb === "function") {
|
|
30
30
|
if (typeof optionsOrCb !== "object")
|
|
31
|
-
throw new Error("Expect http options but get "
|
|
31
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
32
32
|
this.send(command, optionsOrCb || {}, cb);
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
@@ -42,7 +42,7 @@ var DynamoDBDocument = (function (_super) {
|
|
|
42
42
|
}
|
|
43
43
|
else if (typeof cb === "function") {
|
|
44
44
|
if (typeof optionsOrCb !== "object")
|
|
45
|
-
throw new Error("Expect http options but get "
|
|
45
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
46
46
|
this.send(command, optionsOrCb || {}, cb);
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
@@ -56,7 +56,7 @@ var DynamoDBDocument = (function (_super) {
|
|
|
56
56
|
}
|
|
57
57
|
else if (typeof cb === "function") {
|
|
58
58
|
if (typeof optionsOrCb !== "object")
|
|
59
|
-
throw new Error("Expect http options but get "
|
|
59
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
60
60
|
this.send(command, optionsOrCb || {}, cb);
|
|
61
61
|
}
|
|
62
62
|
else {
|
|
@@ -70,7 +70,7 @@ var DynamoDBDocument = (function (_super) {
|
|
|
70
70
|
}
|
|
71
71
|
else if (typeof cb === "function") {
|
|
72
72
|
if (typeof optionsOrCb !== "object")
|
|
73
|
-
throw new Error("Expect http options but get "
|
|
73
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
74
74
|
this.send(command, optionsOrCb || {}, cb);
|
|
75
75
|
}
|
|
76
76
|
else {
|
|
@@ -84,7 +84,7 @@ var DynamoDBDocument = (function (_super) {
|
|
|
84
84
|
}
|
|
85
85
|
else if (typeof cb === "function") {
|
|
86
86
|
if (typeof optionsOrCb !== "object")
|
|
87
|
-
throw new Error("Expect http options but get "
|
|
87
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
88
88
|
this.send(command, optionsOrCb || {}, cb);
|
|
89
89
|
}
|
|
90
90
|
else {
|
|
@@ -98,7 +98,7 @@ var DynamoDBDocument = (function (_super) {
|
|
|
98
98
|
}
|
|
99
99
|
else if (typeof cb === "function") {
|
|
100
100
|
if (typeof optionsOrCb !== "object")
|
|
101
|
-
throw new Error("Expect http options but get "
|
|
101
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
102
102
|
this.send(command, optionsOrCb || {}, cb);
|
|
103
103
|
}
|
|
104
104
|
else {
|
|
@@ -112,7 +112,7 @@ var DynamoDBDocument = (function (_super) {
|
|
|
112
112
|
}
|
|
113
113
|
else if (typeof cb === "function") {
|
|
114
114
|
if (typeof optionsOrCb !== "object")
|
|
115
|
-
throw new Error("Expect http options but get "
|
|
115
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
116
116
|
this.send(command, optionsOrCb || {}, cb);
|
|
117
117
|
}
|
|
118
118
|
else {
|
|
@@ -126,7 +126,7 @@ var DynamoDBDocument = (function (_super) {
|
|
|
126
126
|
}
|
|
127
127
|
else if (typeof cb === "function") {
|
|
128
128
|
if (typeof optionsOrCb !== "object")
|
|
129
|
-
throw new Error("Expect http options but get "
|
|
129
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
130
130
|
this.send(command, optionsOrCb || {}, cb);
|
|
131
131
|
}
|
|
132
132
|
else {
|
|
@@ -140,7 +140,7 @@ var DynamoDBDocument = (function (_super) {
|
|
|
140
140
|
}
|
|
141
141
|
else if (typeof cb === "function") {
|
|
142
142
|
if (typeof optionsOrCb !== "object")
|
|
143
|
-
throw new Error("Expect http options but get "
|
|
143
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
144
144
|
this.send(command, optionsOrCb || {}, cb);
|
|
145
145
|
}
|
|
146
146
|
else {
|
|
@@ -154,7 +154,7 @@ var DynamoDBDocument = (function (_super) {
|
|
|
154
154
|
}
|
|
155
155
|
else if (typeof cb === "function") {
|
|
156
156
|
if (typeof optionsOrCb !== "object")
|
|
157
|
-
throw new Error("Expect http options but get "
|
|
157
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
158
158
|
this.send(command, optionsOrCb || {}, cb);
|
|
159
159
|
}
|
|
160
160
|
else {
|
|
@@ -168,7 +168,7 @@ var DynamoDBDocument = (function (_super) {
|
|
|
168
168
|
}
|
|
169
169
|
else if (typeof cb === "function") {
|
|
170
170
|
if (typeof optionsOrCb !== "object")
|
|
171
|
-
throw new Error("Expect http options but get "
|
|
171
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
172
172
|
this.send(command, optionsOrCb || {}, cb);
|
|
173
173
|
}
|
|
174
174
|
else {
|
|
@@ -182,7 +182,7 @@ var DynamoDBDocument = (function (_super) {
|
|
|
182
182
|
}
|
|
183
183
|
else if (typeof cb === "function") {
|
|
184
184
|
if (typeof optionsOrCb !== "object")
|
|
185
|
-
throw new Error("Expect http options but get "
|
|
185
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
186
186
|
this.send(command, optionsOrCb || {}, cb);
|
|
187
187
|
}
|
|
188
188
|
else {
|
|
@@ -196,7 +196,7 @@ var DynamoDBDocument = (function (_super) {
|
|
|
196
196
|
}
|
|
197
197
|
else if (typeof cb === "function") {
|
|
198
198
|
if (typeof optionsOrCb !== "object")
|
|
199
|
-
throw new Error("Expect http options but get "
|
|
199
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
200
200
|
this.send(command, optionsOrCb || {}, cb);
|
|
201
201
|
}
|
|
202
202
|
else {
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new QueryCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new QueryCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.query.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.query.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateQuery(config, input) {
|
|
|
48
48
|
input.ExclusiveStartKey = token;
|
|
49
49
|
input["Limit"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof DynamoDBDocument)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof DynamoDBDocumentClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ScanCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ScanCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.scan.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.scan.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateScan(config, input) {
|
|
|
48
48
|
input.ExclusiveStartKey = token;
|
|
49
49
|
input["Limit"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof DynamoDBDocument)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof DynamoDBDocumentClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/lib-dynamodb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.58.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",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/util-dynamodb": "3.
|
|
27
|
-
"tslib": "^2.3.
|
|
26
|
+
"@aws-sdk/util-dynamodb": "3.58.0",
|
|
27
|
+
"tslib": "^2.3.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@aws-sdk/client-dynamodb": "^3.0.0",
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"@aws-sdk/types": "^3.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
36
|
-
"@aws-sdk/smithy-client": "3.
|
|
37
|
-
"@aws-sdk/types": "3.
|
|
35
|
+
"@aws-sdk/client-dynamodb": "3.58.0",
|
|
36
|
+
"@aws-sdk/smithy-client": "3.55.0",
|
|
37
|
+
"@aws-sdk/types": "3.55.0",
|
|
38
38
|
"@tsconfig/recommended": "1.0.1",
|
|
39
39
|
"@types/node": "^14.11.2",
|
|
40
40
|
"concurrently": "7.0.0",
|
|
41
41
|
"downlevel-dts": "0.7.0",
|
|
42
42
|
"rimraf": "3.0.2",
|
|
43
43
|
"typedoc": "0.19.2",
|
|
44
|
-
"typescript": "~4.
|
|
44
|
+
"typescript": "~4.6.2"
|
|
45
45
|
},
|
|
46
46
|
"typesVersions": {
|
|
47
47
|
"<4.0": {
|