@factorearth/recordmiddleware-dataaccesslayer 0.0.1-y.17 → 0.0.1-y.19
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/batchDeleteItems.d.ts +1 -1
- package/dist/batchDeleteItems.js +2 -2
- package/dist/batchGetItems.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/lib/batchDeleteItems.ts +2 -2
- package/lib/batchGetItems.ts +1 -1
- package/lib/index.ts +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BatchInput } from "index";
|
|
1
|
+
import { BatchInput } from "./index.js";
|
|
2
2
|
export declare function batchDeleteItems(items: BatchInput[], tableName: string): Promise<void>;
|
package/dist/batchDeleteItems.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BatchWriteCommand } from "@aws-sdk/lib-dynamodb";
|
|
2
2
|
import { dynamoDbDocClient } from "./aws-services.js";
|
|
3
|
-
import chunkBatch from "chunkBatch";
|
|
4
|
-
import { MAX_ITEMS_BATCH_OPERATIONS } from "index";
|
|
3
|
+
import chunkBatch from "./chunkBatch.js";
|
|
4
|
+
import { MAX_ITEMS_BATCH_OPERATIONS } from "./index.js";
|
|
5
5
|
export async function batchDeleteItems(items, tableName) {
|
|
6
6
|
const chunks = chunkBatch(items, MAX_ITEMS_BATCH_OPERATIONS);
|
|
7
7
|
for (const chunk of chunks) {
|
package/dist/batchGetItems.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BatchInput } from "index";
|
|
1
|
+
import { BatchInput } from "./index.js";
|
|
2
2
|
export declare function batchGetItems(ids: BatchInput[], tableName: string): Promise<Record<string, any>[]>;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/lib/batchDeleteItems.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BatchWriteCommand, BatchWriteCommandInput } from "@aws-sdk/lib-dynamodb";
|
|
2
2
|
import { dynamoDbDocClient } from "./aws-services.js";
|
|
3
|
-
import chunkBatch from "chunkBatch";
|
|
4
|
-
import { BatchInput, MAX_ITEMS_BATCH_OPERATIONS } from "index";
|
|
3
|
+
import chunkBatch from "./chunkBatch.js";
|
|
4
|
+
import { BatchInput, MAX_ITEMS_BATCH_OPERATIONS } from "./index.js";
|
|
5
5
|
|
|
6
6
|
export async function batchDeleteItems(items: BatchInput[], tableName: string) {
|
|
7
7
|
const chunks = chunkBatch(items, MAX_ITEMS_BATCH_OPERATIONS);
|
package/lib/batchGetItems.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BatchGetCommand, BatchGetCommandInput } from "@aws-sdk/lib-dynamodb";
|
|
2
2
|
import { dynamoDbDocClient } from "./aws-services.js";
|
|
3
|
-
import { BatchInput } from "index";
|
|
3
|
+
import { BatchInput } from "./index.js";
|
|
4
4
|
|
|
5
5
|
export async function batchGetItems(ids: BatchInput[], tableName: string) {
|
|
6
6
|
const commandInput: BatchGetCommandInput = {
|
package/lib/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factorearth/recordmiddleware-dataaccesslayer",
|
|
3
|
-
"version": "0.0.1-y.
|
|
3
|
+
"version": "0.0.1-y.19",
|
|
4
4
|
"description": "A module for accessing dynamdb efficiently",
|
|
5
5
|
"author": "madtrx <marlin.makori@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/FactorEarth/RecordMiddleware#readme",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"access": "public",
|
|
30
30
|
"registry": "https://registry.npmjs.org/"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "38435138f26dde9174b2a4a3a7cf63fcb515b742"
|
|
33
33
|
}
|