@aws-sdk/lib-dynamodb 3.788.0 → 3.796.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 CHANGED
@@ -137,16 +137,10 @@ var unmarshallOutput = /* @__PURE__ */ __name((obj, keyNodes, options) => {
137
137
  }, "unmarshallOutput");
138
138
 
139
139
  // src/baseCommand/DynamoDBDocumentClientCommand.ts
140
- var DynamoDBDocumentClientCommand = class _DynamoDBDocumentClientCommand extends import_smithy_client.Command {
140
+ var DynamoDBDocumentClientCommand = class extends import_smithy_client.Command {
141
141
  static {
142
142
  __name(this, "DynamoDBDocumentClientCommand");
143
143
  }
144
- static defaultLogFilterOverrides = {
145
- overrideInputFilterSensitiveLog(...args) {
146
- },
147
- overrideOutputFilterSensitiveLog(...args) {
148
- }
149
- };
150
144
  addMarshallingMiddleware(configuration) {
151
145
  const { marshallOptions: marshallOptions3 = {}, unmarshallOptions: unmarshallOptions3 = {} } = configuration.translateConfig || {};
152
146
  marshallOptions3.convertTopLevelContainer = marshallOptions3.convertTopLevelContainer ?? true;
@@ -155,11 +149,6 @@ var DynamoDBDocumentClientCommand = class _DynamoDBDocumentClientCommand extends
155
149
  (next, context) => async (args) => {
156
150
  (0, import_core.setFeature)(context, "DDB_MAPPER", "d");
157
151
  args.input = marshallInput(args.input, this.inputKeyNodes, marshallOptions3);
158
- context.dynamoDbDocumentClientOptions = context.dynamoDbDocumentClientOptions || _DynamoDBDocumentClientCommand.defaultLogFilterOverrides;
159
- const input = args.input;
160
- context.dynamoDbDocumentClientOptions.overrideInputFilterSensitiveLog = () => {
161
- return context.inputFilterSensitiveLog?.(input);
162
- };
163
152
  return next(args);
164
153
  },
165
154
  {
@@ -172,11 +161,6 @@ var DynamoDBDocumentClientCommand = class _DynamoDBDocumentClientCommand extends
172
161
  this.clientCommand.middlewareStack.addRelativeTo(
173
162
  (next, context) => async (args) => {
174
163
  const deserialized = await next(args);
175
- const output = deserialized.output;
176
- context.dynamoDbDocumentClientOptions = context.dynamoDbDocumentClientOptions || _DynamoDBDocumentClientCommand.defaultLogFilterOverrides;
177
- context.dynamoDbDocumentClientOptions.overrideOutputFilterSensitiveLog = () => {
178
- return context.outputFilterSensitiveLog?.(output);
179
- };
180
164
  deserialized.output = unmarshallOutput(deserialized.output, this.outputKeyNodes, unmarshallOptions3);
181
165
  return deserialized;
182
166
  },
@@ -2,10 +2,6 @@ import { setFeature } from "@aws-sdk/core";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { marshallInput, unmarshallOutput } from "../commands/utils";
4
4
  export class DynamoDBDocumentClientCommand extends $Command {
5
- static defaultLogFilterOverrides = {
6
- overrideInputFilterSensitiveLog(...args) { },
7
- overrideOutputFilterSensitiveLog(...args) { },
8
- };
9
5
  addMarshallingMiddleware(configuration) {
10
6
  const { marshallOptions = {}, unmarshallOptions = {} } = configuration.translateConfig || {};
11
7
  marshallOptions.convertTopLevelContainer = marshallOptions.convertTopLevelContainer ?? true;
@@ -13,12 +9,6 @@ export class DynamoDBDocumentClientCommand extends $Command {
13
9
  this.clientCommand.middlewareStack.addRelativeTo((next, context) => async (args) => {
14
10
  setFeature(context, "DDB_MAPPER", "d");
15
11
  args.input = marshallInput(args.input, this.inputKeyNodes, marshallOptions);
16
- context.dynamoDbDocumentClientOptions =
17
- context.dynamoDbDocumentClientOptions || DynamoDBDocumentClientCommand.defaultLogFilterOverrides;
18
- const input = args.input;
19
- context.dynamoDbDocumentClientOptions.overrideInputFilterSensitiveLog = () => {
20
- return context.inputFilterSensitiveLog?.(input);
21
- };
22
12
  return next(args);
23
13
  }, {
24
14
  name: "DocumentMarshall",
@@ -28,12 +18,6 @@ export class DynamoDBDocumentClientCommand extends $Command {
28
18
  });
29
19
  this.clientCommand.middlewareStack.addRelativeTo((next, context) => async (args) => {
30
20
  const deserialized = await next(args);
31
- const output = deserialized.output;
32
- context.dynamoDbDocumentClientOptions =
33
- context.dynamoDbDocumentClientOptions || DynamoDBDocumentClientCommand.defaultLogFilterOverrides;
34
- context.dynamoDbDocumentClientOptions.overrideOutputFilterSensitiveLog = () => {
35
- return context.outputFilterSensitiveLog?.(output);
36
- };
37
21
  deserialized.output = unmarshallOutput(deserialized.output, this.outputKeyNodes, unmarshallOptions);
38
22
  return deserialized;
39
23
  }, {
@@ -13,6 +13,5 @@ export declare abstract class DynamoDBDocumentClientCommand<Input extends object
13
13
  protected abstract readonly outputKeyNodes: KeyNodeChildren;
14
14
  protected abstract clientCommand: $Command<Input | BaseInput, Output | BaseOutput, ResolvedClientConfiguration>;
15
15
  abstract middlewareStack: MiddlewareStack<Input | BaseInput, Output | BaseOutput>;
16
- private static defaultLogFilterOverrides;
17
16
  protected addMarshallingMiddleware(configuration: DynamoDBDocumentClientResolvedConfig): void;
18
17
  }
@@ -24,7 +24,6 @@ export declare abstract class DynamoDBDocumentClientCommand<
24
24
  Input | BaseInput,
25
25
  Output | BaseOutput
26
26
  >;
27
- private static defaultLogFilterOverrides;
28
27
  protected addMarshallingMiddleware(
29
28
  configuration: DynamoDBDocumentClientResolvedConfig
30
29
  ): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/lib-dynamodb",
3
- "version": "3.788.0",
3
+ "version": "3.796.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",
@@ -28,18 +28,18 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "3.775.0",
32
- "@aws-sdk/util-dynamodb": "3.788.0",
31
+ "@aws-sdk/core": "3.796.0",
32
+ "@aws-sdk/util-dynamodb": "3.796.0",
33
33
  "@smithy/core": "^3.2.0",
34
34
  "@smithy/smithy-client": "^4.2.0",
35
35
  "@smithy/types": "^4.2.0",
36
36
  "tslib": "^2.6.2"
37
37
  },
38
38
  "peerDependencies": {
39
- "@aws-sdk/client-dynamodb": "^3.788.0"
39
+ "@aws-sdk/client-dynamodb": "^3.796.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@aws-sdk/client-dynamodb": "3.788.0",
42
+ "@aws-sdk/client-dynamodb": "3.796.0",
43
43
  "@tsconfig/recommended": "1.0.1",
44
44
  "@types/node": "^18.19.69",
45
45
  "concurrently": "7.0.0",