@aws-sdk/lib-dynamodb 3.490.0 → 3.495.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/DynamoDBDocument.js +1 -205
- package/dist-cjs/DynamoDBDocumentClient.js +1 -19
- package/dist-cjs/baseCommand/DynamoDBDocumentClientCommand.js +1 -51
- package/dist-cjs/commands/BatchExecuteStatementCommand.js +1 -41
- package/dist-cjs/commands/BatchGetCommand.js +1 -47
- package/dist-cjs/commands/BatchWriteCommand.js +1 -59
- package/dist-cjs/commands/DeleteCommand.js +1 -40
- package/dist-cjs/commands/ExecuteStatementCommand.js +1 -33
- package/dist-cjs/commands/ExecuteTransactionCommand.js +1 -38
- package/dist-cjs/commands/GetCommand.js +1 -30
- package/dist-cjs/commands/PutCommand.js +1 -40
- package/dist-cjs/commands/QueryCommand.js +1 -44
- package/dist-cjs/commands/ScanCommand.js +1 -39
- package/dist-cjs/commands/TransactGetCommand.js +1 -40
- package/dist-cjs/commands/TransactWriteCommand.js +1 -55
- package/dist-cjs/commands/UpdateCommand.js +1 -45
- package/dist-cjs/commands/index.js +1 -16
- package/dist-cjs/commands/utils.js +1 -72
- package/dist-cjs/index.js +1025 -10
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/QueryPaginator.js +1 -28
- package/dist-cjs/pagination/ScanPaginator.js +1 -28
- package/dist-cjs/pagination/index.js +1 -6
- package/package.json +6 -6
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateQuery = void 0;
|
|
4
|
-
const QueryCommand_1 = require("../commands/QueryCommand");
|
|
5
|
-
const DynamoDBDocumentClient_1 = require("../DynamoDBDocumentClient");
|
|
6
|
-
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
-
return await client.send(new QueryCommand_1.QueryCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateQuery(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.ExclusiveStartKey = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof DynamoDBDocumentClient_1.DynamoDBDocumentClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
token = page.LastEvaluatedKey;
|
|
24
|
-
hasNext = !!token;
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateQuery = paginateQuery;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateScan = void 0;
|
|
4
|
-
const ScanCommand_1 = require("../commands/ScanCommand");
|
|
5
|
-
const DynamoDBDocumentClient_1 = require("../DynamoDBDocumentClient");
|
|
6
|
-
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
-
return await client.send(new ScanCommand_1.ScanCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateScan(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.ExclusiveStartKey = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof DynamoDBDocumentClient_1.DynamoDBDocumentClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
token = page.LastEvaluatedKey;
|
|
24
|
-
hasNext = !!token;
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateScan = paginateScan;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./QueryPaginator"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./ScanPaginator"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/lib-dynamodb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.495.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",
|
|
7
7
|
"types": "./dist-types/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
10
|
-
"build:cjs": "
|
|
10
|
+
"build:cjs": "node ../../scripts/compilation/inline lib-dynamodb",
|
|
11
11
|
"build:es": "tsc -p tsconfig.es.json",
|
|
12
12
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
13
13
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/util-dynamodb": "3.
|
|
30
|
-
"@smithy/smithy-client": "^2.
|
|
31
|
-
"@smithy/types": "^2.
|
|
29
|
+
"@aws-sdk/util-dynamodb": "3.495.0",
|
|
30
|
+
"@smithy/smithy-client": "^2.3.0",
|
|
31
|
+
"@smithy/types": "^2.9.0",
|
|
32
32
|
"tslib": "^2.5.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
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.495.0",
|
|
39
39
|
"@tsconfig/recommended": "1.0.1",
|
|
40
40
|
"@types/node": "^14.14.31",
|
|
41
41
|
"concurrently": "7.0.0",
|