@aws-sdk/lib-dynamodb 3.648.0 → 3.649.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
|
@@ -784,10 +784,16 @@ var UpdateCommand = _UpdateCommand;
|
|
|
784
784
|
|
|
785
785
|
var _DynamoDBDocumentClient = class _DynamoDBDocumentClient extends import_smithy_client.Client {
|
|
786
786
|
constructor(client, translateConfig) {
|
|
787
|
+
var _a;
|
|
787
788
|
super(client.config);
|
|
788
789
|
this.config = client.config;
|
|
789
790
|
this.config.translateConfig = translateConfig;
|
|
790
791
|
this.middlewareStack = client.middlewareStack;
|
|
792
|
+
if ((_a = this.config) == null ? void 0 : _a.cacheMiddleware) {
|
|
793
|
+
throw new Error(
|
|
794
|
+
"@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocument client. This option must be set to false."
|
|
795
|
+
);
|
|
796
|
+
}
|
|
791
797
|
}
|
|
792
798
|
static from(client, translateConfig) {
|
|
793
799
|
return new _DynamoDBDocumentClient(client, translateConfig);
|
|
@@ -6,6 +6,9 @@ export class DynamoDBDocumentClient extends __Client {
|
|
|
6
6
|
this.config = client.config;
|
|
7
7
|
this.config.translateConfig = translateConfig;
|
|
8
8
|
this.middlewareStack = client.middlewareStack;
|
|
9
|
+
if (this.config?.cacheMiddleware) {
|
|
10
|
+
throw new Error("@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocument client. This option must be set to false.");
|
|
11
|
+
}
|
|
9
12
|
}
|
|
10
13
|
static from(client, translateConfig) {
|
|
11
14
|
return new DynamoDBDocumentClient(client, translateConfig);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/lib-dynamodb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.649.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,17 +26,17 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/util-dynamodb": "3.
|
|
30
|
-
"@smithy/core": "^2.4.
|
|
31
|
-
"@smithy/smithy-client": "^3.
|
|
32
|
-
"@smithy/types": "^3.
|
|
29
|
+
"@aws-sdk/util-dynamodb": "3.649.0",
|
|
30
|
+
"@smithy/core": "^2.4.1",
|
|
31
|
+
"@smithy/smithy-client": "^3.3.0",
|
|
32
|
+
"@smithy/types": "^3.4.0",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
36
|
+
"@aws-sdk/client-dynamodb": "^3.649.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
39
|
+
"@aws-sdk/client-dynamodb": "3.649.0",
|
|
40
40
|
"@tsconfig/recommended": "1.0.1",
|
|
41
41
|
"@types/node": "^16.18.96",
|
|
42
42
|
"concurrently": "7.0.0",
|