@aws-sdk/lib-dynamodb 3.223.0 → 3.224.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/baseCommand/DynamoDBDocumentClientCommand.js +24 -4
- package/dist-es/baseCommand/DynamoDBDocumentClientCommand.js +22 -4
- package/dist-types/baseCommand/DynamoDBDocumentClientCommand.d.ts +1 -0
- package/dist-types/ts3.4/baseCommand/DynamoDBDocumentClientCommand.d.ts +1 -0
- package/package.json +5 -5
|
@@ -6,23 +6,43 @@ const utils_1 = require("../commands/utils");
|
|
|
6
6
|
class DynamoDBDocumentClientCommand extends smithy_client_1.Command {
|
|
7
7
|
addMarshallingMiddleware(configuration) {
|
|
8
8
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
9
|
-
this.clientCommand.middlewareStack.
|
|
9
|
+
this.clientCommand.middlewareStack.addRelativeTo((next, context) => async (args) => {
|
|
10
10
|
args.input = (0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions);
|
|
11
|
+
context.dynamoDbDocumentClientOptions =
|
|
12
|
+
context.dynamoDbDocumentClientOptions || DynamoDBDocumentClientCommand.defaultLogFilterOverrides;
|
|
13
|
+
const input = args.input;
|
|
14
|
+
context.dynamoDbDocumentClientOptions.overrideInputFilterSensitiveLog = () => {
|
|
15
|
+
var _a;
|
|
16
|
+
return (_a = context.inputFilterSensitiveLog) === null || _a === void 0 ? void 0 : _a.call(context, input);
|
|
17
|
+
};
|
|
11
18
|
return next(args);
|
|
12
19
|
}, {
|
|
13
20
|
name: "DocumentMarshall",
|
|
14
|
-
|
|
21
|
+
relation: "before",
|
|
22
|
+
toMiddleware: "serializerMiddleware",
|
|
15
23
|
override: true,
|
|
16
24
|
});
|
|
17
|
-
this.clientCommand.middlewareStack.
|
|
25
|
+
this.clientCommand.middlewareStack.addRelativeTo((next, context) => async (args) => {
|
|
18
26
|
const deserialized = await next(args);
|
|
27
|
+
const output = deserialized.output;
|
|
28
|
+
context.dynamoDbDocumentClientOptions =
|
|
29
|
+
context.dynamoDbDocumentClientOptions || DynamoDBDocumentClientCommand.defaultLogFilterOverrides;
|
|
30
|
+
context.dynamoDbDocumentClientOptions.overrideOutputFilterSensitiveLog = () => {
|
|
31
|
+
var _a;
|
|
32
|
+
return (_a = context.outputFilterSensitiveLog) === null || _a === void 0 ? void 0 : _a.call(context, output);
|
|
33
|
+
};
|
|
19
34
|
deserialized.output = (0, utils_1.unmarshallOutput)(deserialized.output, this.outputKeyNodes, unmarshallOptions);
|
|
20
35
|
return deserialized;
|
|
21
36
|
}, {
|
|
22
37
|
name: "DocumentUnmarshall",
|
|
23
|
-
|
|
38
|
+
relation: "before",
|
|
39
|
+
toMiddleware: "deserializerMiddleware",
|
|
24
40
|
override: true,
|
|
25
41
|
});
|
|
26
42
|
}
|
|
27
43
|
}
|
|
28
44
|
exports.DynamoDBDocumentClientCommand = DynamoDBDocumentClientCommand;
|
|
45
|
+
DynamoDBDocumentClientCommand.defaultLogFilterOverrides = {
|
|
46
|
+
overrideInputFilterSensitiveLog(...args) { },
|
|
47
|
+
overrideOutputFilterSensitiveLog(...args) { },
|
|
48
|
+
};
|
|
@@ -3,22 +3,40 @@ import { marshallInput, unmarshallOutput } from "../commands/utils";
|
|
|
3
3
|
export class DynamoDBDocumentClientCommand extends $Command {
|
|
4
4
|
addMarshallingMiddleware(configuration) {
|
|
5
5
|
const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
|
|
6
|
-
this.clientCommand.middlewareStack.
|
|
6
|
+
this.clientCommand.middlewareStack.addRelativeTo((next, context) => async (args) => {
|
|
7
7
|
args.input = marshallInput(this.input, this.inputKeyNodes, marshallOptions);
|
|
8
|
+
context.dynamoDbDocumentClientOptions =
|
|
9
|
+
context.dynamoDbDocumentClientOptions || DynamoDBDocumentClientCommand.defaultLogFilterOverrides;
|
|
10
|
+
const input = args.input;
|
|
11
|
+
context.dynamoDbDocumentClientOptions.overrideInputFilterSensitiveLog = () => {
|
|
12
|
+
return context.inputFilterSensitiveLog?.(input);
|
|
13
|
+
};
|
|
8
14
|
return next(args);
|
|
9
15
|
}, {
|
|
10
16
|
name: "DocumentMarshall",
|
|
11
|
-
|
|
17
|
+
relation: "before",
|
|
18
|
+
toMiddleware: "serializerMiddleware",
|
|
12
19
|
override: true,
|
|
13
20
|
});
|
|
14
|
-
this.clientCommand.middlewareStack.
|
|
21
|
+
this.clientCommand.middlewareStack.addRelativeTo((next, context) => async (args) => {
|
|
15
22
|
const deserialized = await next(args);
|
|
23
|
+
const output = deserialized.output;
|
|
24
|
+
context.dynamoDbDocumentClientOptions =
|
|
25
|
+
context.dynamoDbDocumentClientOptions || DynamoDBDocumentClientCommand.defaultLogFilterOverrides;
|
|
26
|
+
context.dynamoDbDocumentClientOptions.overrideOutputFilterSensitiveLog = () => {
|
|
27
|
+
return context.outputFilterSensitiveLog?.(output);
|
|
28
|
+
};
|
|
16
29
|
deserialized.output = unmarshallOutput(deserialized.output, this.outputKeyNodes, unmarshallOptions);
|
|
17
30
|
return deserialized;
|
|
18
31
|
}, {
|
|
19
32
|
name: "DocumentUnmarshall",
|
|
20
|
-
|
|
33
|
+
relation: "before",
|
|
34
|
+
toMiddleware: "deserializerMiddleware",
|
|
21
35
|
override: true,
|
|
22
36
|
});
|
|
23
37
|
}
|
|
24
38
|
}
|
|
39
|
+
DynamoDBDocumentClientCommand.defaultLogFilterOverrides = {
|
|
40
|
+
overrideInputFilterSensitiveLog(...args) { },
|
|
41
|
+
overrideOutputFilterSensitiveLog(...args) { },
|
|
42
|
+
};
|
|
@@ -11,5 +11,6 @@ export declare abstract class DynamoDBDocumentClientCommand<Input extends object
|
|
|
11
11
|
protected abstract readonly outputKeyNodes: KeyNode[];
|
|
12
12
|
protected abstract clientCommand: $Command<Input | BaseInput, Output | BaseOutput, ResolvedClientConfiguration>;
|
|
13
13
|
abstract middlewareStack: MiddlewareStack<Input | BaseInput, Output | BaseOutput>;
|
|
14
|
+
private static defaultLogFilterOverrides;
|
|
14
15
|
protected addMarshallingMiddleware(configuration: DynamoDBDocumentClientResolvedConfig): void;
|
|
15
16
|
}
|
|
@@ -24,6 +24,7 @@ export declare abstract class DynamoDBDocumentClientCommand<
|
|
|
24
24
|
Input | BaseInput,
|
|
25
25
|
Output | BaseOutput
|
|
26
26
|
>;
|
|
27
|
+
private static defaultLogFilterOverrides;
|
|
27
28
|
protected addMarshallingMiddleware(
|
|
28
29
|
configuration: DynamoDBDocumentClientResolvedConfig
|
|
29
30
|
): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/lib-dynamodb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.224.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",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/util-dynamodb": "3.
|
|
27
|
+
"@aws-sdk/util-dynamodb": "3.224.0",
|
|
28
28
|
"tslib": "^2.3.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"@aws-sdk/types": "^3.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
37
|
-
"@aws-sdk/smithy-client": "3.
|
|
38
|
-
"@aws-sdk/types": "3.
|
|
36
|
+
"@aws-sdk/client-dynamodb": "3.224.0",
|
|
37
|
+
"@aws-sdk/smithy-client": "3.224.0",
|
|
38
|
+
"@aws-sdk/types": "3.224.0",
|
|
39
39
|
"@tsconfig/recommended": "1.0.1",
|
|
40
40
|
"@types/node": "^14.11.2",
|
|
41
41
|
"concurrently": "7.0.0",
|